ul and li stles within .class |
ul and li stles within .class |
Dbosch |
Sep 25 2007, 04:33 PM
Post
#1
|
Member Group: Members Posts: 56 Joined: 5-June 07 Member No.: 3,000 |
iwas wandering if there is a way to embed ul style within .class
for example i have .class that i use to format my <div>'s font, alignment, margins etc. but I cant seem to figure out how to assign that class specific ul style. I am trying to increase gap between li items. I can create separate class for ul but how can i include that class within another class. do i need other class for li as well? basically I have no idea how to solve this if it's doable. thanks in advance. This post has been edited by Dbosch: Sep 25 2007, 04:55 PM |
Darin McGrew |
Sep 25 2007, 05:22 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Well, to increase space between the li elements, you need to specify margin (or possibly padding) for the li elements. But you can select based on the class of the ul element:
CODE ul.classname li { margin : ... } or you can select based on the class of an element that contains the ul element:CODE .classname ul li { margin : ... } |
Dbosch |
Sep 25 2007, 05:29 PM
Post
#3
|
Member Group: Members Posts: 56 Joined: 5-June 07 Member No.: 3,000 |
Well, to increase space between the li elements, you need to specify margin (or possibly padding) for the li elements. But you can select based on the class of the ul element: CODE ul.classname li { margin : ... } or you can select based on the class of an element that contains the ul element:CODE .classname ul li { margin : ... } thanks I'll try that. I wasnt specifying li after ul.class |
Darin McGrew |
Sep 26 2007, 08:37 AM
Post
#4
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
|
Lo-Fi Version | Time is now: 24th April 2024 - 09:09 PM |