Reply LinkBack Thread Tools Search this Thread
Old 30-04-2008, 19:16   #1 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
empty list element causing probs

Hi all

using an empty list element as a spacer at the top of a navigation, trouble is I can't seem to get it to not use the same :hover as the active nav elements. tried using multiple class's, but no joy


Mild Fuzz - Life in Soft Focus
  Reply With Quote
Old 30-04-2008, 19:23   #2 (permalink)
RaelRode
Designers are strange :)
 
RaelRode's Avatar
 
Join Date: Jan 2007
Location: Shrewsbury, UK
Posts: 1,769
Send a message via ICQ to RaelRode Send a message via AIM to RaelRode Send a message via MSN to RaelRode Send a message via Yahoo to RaelRode Send a message via Skype™ to RaelRode
Empty list? Why not just use margins?
__________________
[ Programmers Voice - Blog about the internet, code and development ]
  Reply With Quote
Old 30-04-2008, 19:33   #3 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
its to do with the borders. it was a while ago i did it now, and can't quite remember, but I remember trying margins and padding and not getting the required effect
  Reply With Quote
Old 01-05-2008, 15:52   #4 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
no one have an answer?
  Reply With Quote
Old 01-05-2008, 15:54   #5 (permalink)
StumpyXL
Registered User
 
StumpyXL's Avatar
 
Join Date: Apr 2008
Location: Ohio
Posts: 61
Send a message via AIM to StumpyXL
If you are using borders and could not use margins, try using a border on the list not on the DIV. I did the exact same thing an was getting weird results with the class on the DIV.
  Reply With Quote
Old 02-05-2008, 20:01   #6 (permalink)
mattp
Registered User
 
Join Date: Dec 2006
Posts: 73
How about this:

Code:
li.selected { border-top: 1px dotted black; margin-top: 40px; } li.selected.non-empty { margin-top: 40px; } .emptynav{ height: 15px; display: none; } .emptysubnav{ height: 5px; display: none; }

It hides the empty li's you made, and uses margin-top along with a border for each of the newly top li's ('Home' on the left, 'About' on the right)
  Reply With Quote
Old 04-05-2008, 02:13   #7 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Why are you using :hover on the <li>s to begin with? Talk about confusing.
  Reply With Quote
Old 04-05-2008, 09:43   #8 (permalink)
LukeV
Best custom title ever.
 
LukeV's Avatar
 
Join Date: Apr 2008
Posts: 230
Give the top <li> an id, so <li id="whatever">Home</li> and add a top border to the css?
  Reply With Quote
Old 04-05-2008, 11:47   #9 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Or add the top border to the <ul> and all the <li>s have a bottom border. That works also.
  Reply With Quote
Reply



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

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8