div displaying below other rather than at side - tried a fix but won't work

Discussion in 'CSS' started by incka, Jan 30, 2008.

  1. #1
    Hello:

    Sorry about asking designing questions, I'm trying to learn CSS by taking apart an old design and recoding it for my new requirements.

    Basically I've got the design working (but with the same error/problem) in both Firefox and IE.

    The problem is the the left menu is displaying correctly, but the content is displaying below it (the right width in). It should be displaying by the side.

    I tried to fix the problem using position absolute, but this only made a different problem - making the footer ignore this section. I commented out this fix in the css just above the content class.

    HTML URL: http://www.william-shakespeare.us/new.html
    CSS URL: http://www.william-shakespeare.us/new.css


    I'd be very very very grateful to anyone who can provide me with a solution that will work for all browsers :)
     
    incka, Jan 30, 2008 IP
  2. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #2
    Should do it.
     
    soulscratch, Jan 30, 2008 IP
  3. incka

    incka Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks :)

    It didn't seem to need display:inline though... Just adding float worked. Thanks again :)
     
    incka, Jan 30, 2008 IP
  4. incka

    incka Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ah, actually this showed up another problem - or created one.

    Now the left menu is going over the footer (I changed font size to show this).
     
    incka, Jan 30, 2008 IP
  5. incka

    incka Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Managed to fix myself by putting clear div before footer.
     
    incka, Jan 30, 2008 IP
  6. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #6
    Sure, it'll work fine ( without display:inline; ) until you decide to add horizontal margins to a floated element and then get on DP and go "WTF" when the column drops right underneath in MSIE6 (if you even care about this browser - theres at least 1-2 double margin threads per day).
     
    soulscratch, Jan 30, 2008 IP