Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 04-23-2008, 10:03 PM   #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.
peekaboo is offline   Reply With Quote
Old 04-24-2008, 07:24 PM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
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.
Force Flow is offline   Reply With Quote
Old 04-26-2008, 11:13 PM   #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.
peekaboo is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -5. The time now is 07:36 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2