Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1702 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Css2

Thread title: Css2
Closed Thread    
    Thread tools Search this thread Display Modes  
09-13-2005, 11:19 PM
#1
DANMCDBA is offline DANMCDBA
Status: I'm new around here
Join date: Sep 2005
Location:
Expertise:
Software:
 
Posts: 1
iTrader: 0 / 0%
 

DANMCDBA is on a distinguished road

  Old  Css2

p.ul {
font: 8pt Verdana; margin-bottom: 10px; margin-left: 0; margin-top: 0px; margin-right: 0px; padding: 0px; outline-style: solid; outline-width: medium;
}


Is the .ul listed above called a *selector*? A selector of the Paragraph tag?

Also, when I tried to update this style sheet rule with outline-style and outline-width, I did not see any changes at all in IE6 or FireFox.

Anyway to make it work?

09-14-2005, 12:16 AM
#2
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old

The p is the selector and the ul seems to be the name or class given to that selector. So you can place those properties into the p element by:

Code:
<p class="ul">text</p>
It isn't wise to name your class similarly to an HTML element. You should probably give ul a different name.

09-14-2005, 03:30 AM
#3
<Isurfr> is offline <Isurfr>
Status: Member
Join date: Aug 2005
Location: w3c
Expertise:
Software:
 
Posts: 193
iTrader: 0 / 0%
 

<Isurfr> is on a distinguished road

  Old

...

09-14-2005, 09:24 AM
#4
Julian is offline Julian
Status: Simply to simplify
Join date: Apr 2005
Location: Foxton, Manawatu, New Zealand
Expertise:
Software:
 
Posts: 5,572
iTrader: 0 / 0%
 

Julian is on a distinguished road

  Old

ul is normally used for unordered lists, not as a class attribute for paragraphs.

You should consider following dumbcoders comments.

Also think about making your css smaller by grouping things like margin like this:

margin: 0 0 10px 0;

09-15-2005, 06:40 AM
#5
lostseed is offline lostseed
lostseed's Avatar
Status: Junior Member
Join date: Sep 2005
Location: Florida
Expertise:
Software:
 
Posts: 26
iTrader: 0 / 0%
 

lostseed is on a distinguished road

  Old

ul - unordered list
ol - ordered list

display: inline; will make it in-a-line if you want your list horizontal.

quick tips, good suggestion by Julian on the margins.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed