|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
Join Date: Aug 2005
Location: Vancouver, BC, Canada
Posts: 976
|
CSS div help please
I'm having trouble with padding in my div (at least i think that's the problem).
i'm getting a space around my unordered list items inside a div which i can't seem to eliminate/control. here's a sample code * how do i type code here and have it appear as text instead of being applied to the post? here's the css here's the result i've set borders so i can tell what's going on. didn't help me much because i'm still clueless. how do i control the space that's between my dashed green border and the black solid border?
__________________
If you remind me of my dog... we'll probably get along. |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Ok, first thing I noticed is that you have both a class and an ID with the name "navbar".
Note that class names can be used multiple times, and in CSS, are referenced by using: .theclassname { } The ID can only be used once per HTML document (it is unique) and is referenced by: #theclassid { } #nav ul { } is not applied to anything, since I don't see anything with the ID of "nav", just change that to #navbar ul { }
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#3 |
|
Member (10 bit)
Join Date: Aug 2005
Location: Vancouver, BC, Canada
Posts: 976
|
i think it may have been a simple case of typing "nav" instead of "navbar".
thanks. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I'm a CSS retard | sdkramer | Web Design / Development | 2 | 05-14-2007 03:40 PM |
| Yet another CSS problem (#3) | mysterio2099 | Web Design / Development | 19 | 08-10-2005 01:54 PM |
| Hopefuly easy CSS question | foolishone | Web Design / Development | 5 | 01-17-2005 01:27 PM |
| Fresh start with CSS | Force Flow | Web Design / Development | 4 | 07-23-2003 10:37 AM |
| Xml And Css Help | Colb | Web Design / Development | 2 | 05-05-2003 05:17 PM |