Simple horizontal menu

Discussion in 'CSS' started by le007, Oct 11, 2007.

  1. #1
    Down the bottom, the footer div - has Top Downloads, Popular Today and Most Discussed - that exact div with the titles and LI layout I need - can anyone throw some code together for me pls?

    http://templates.arcsin.se/
     
    le007, Oct 11, 2007 IP
  2. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    Really under some pressure to get this layout done - anyone help me here pls?
     
    le007, Oct 11, 2007 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    You'd probably get more help if we understood what was being asked... My initial gut reaction was "Is that a question?"
     
    deathshadow, Oct 13, 2007 IP
  4. zac-hewitt

    zac-hewitt Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if i understood what your needs were. then yeah lol.
    but i do charge ;]
     
    zac-hewitt, Oct 13, 2007 IP
  5. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    deathshadow, I was asking for someone to give me code for a 3 x 5 LI layout
     
    le007, Oct 13, 2007 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    Uhm... view source? You are linking to a page that does what you want... look at it's source.

    The way it's coded on that page is ok, but it looks to me like a list of a list, so it should be a double nested UL.

    The trick is that the outer LI's should be set to 33% width and float:left - then they'll 'stack' one atop the other.

    I tossed that together into one of my standard semi-fluid templates:

    http://battletech.hopto.org/for_others/IE007/template.html

    and the css:
    http://battletech.hopto.org/for_others/IE007/screen.css

    A few 'tricks' are things like the mouseovers which you set the anchor to display:block so it fills the wrapping LI... and the borders - set border-bottom on all the inner LI and border-top on the UL.
     
    deathshadow, Oct 13, 2007 IP
    rsuog likes this.
  7. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #7
    deathshadow - I really appreciate the code mate. Its exactly what I was looking for. Thanks for going to the trouble! You've helped me out loads here!!!
    Have a good Sunday buddy :D

    Leo [solved for me anyway!]
     
    le007, Oct 13, 2007 IP
  8. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #8
    1 last quick question for deathshadow - any idea how to get IE to have the whole hover li a link as with FF rather than just the link text a link? Its something very small and if you say "Hey Leo just leave it, too much hassle" - I will... but if theres something small I could do, I'd do that just as easy! :D

    Thanks again buddy, fantastic description and code!
    Leo
     
    le007, Oct 13, 2007 IP
  9. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #9
    oops, you are right. My bad - forgot one little tiny thing. You need to give the anchor haslayout so you can click the entire box, not just the text.

    #footer a {
    	display:block;
    	padding:2px 8px;
    	height:1%; /* haslayout 'tricks' ie into letting you click the whole link */
    	color:#DDD;
    	text-decoration:none;
    	border-bottom:1px solid #888;
    }
    
    Code (markup):
    adding that one line should fix it.
     
    deathshadow, Oct 13, 2007 IP
    tarponkeith likes this.
  10. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #10
    Absolutely perfect buddy - thanks, you're legendary!
     
    le007, Oct 14, 2007 IP
  11. rsuog

    rsuog Peon

    Messages:
    1,045
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    0
    #11
    thanks man :)
     
    rsuog, Oct 16, 2007 IP