Need help getting css layout to work

Discussion in 'CSS' started by mopacfan, May 25, 2007.

  1. #1
    I've got the basic concept but the execution leaves a lot to be desired.

    I can't figure out why I cannot get a three column layout to work properly.

    Any help that can be offered will be greatly appreciated.

    This is the page I'm working on currently.

    There is definitely rep in it for helpful advice.

    Thanks
     
    mopacfan, May 25, 2007 IP
  2. HuggyCT2

    HuggyCT2 Guest

    Messages:
    222
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It would be best to use <divs> for this.

    When you setup the widths to make the colums align right and all fill up you need to work out the divison of the width by 3. Then make a id or class and set it to that value, then you can use float: left; which will tuck them all together.

    After that then you can pull them down with clear: both; id at the bottom of the colums.
     
    HuggyCT2, May 25, 2007 IP
  3. zinruss

    zinruss Notable Member

    Messages:
    3,288
    Likes Received:
    237
    Best Answers:
    0
    Trophy Points:
    270
    #3
    You can fix the width by px. :)
     
    zinruss, May 25, 2007 IP
  4. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The main problem is that the footer is getting covered. I can't figure out how to keep this from happening.
     
    mopacfan, May 26, 2007 IP
  5. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Simple fix:

    Get rid of the height: 100% in the css for your leftcatlist and rightcatlist. It stopped over lapping after I removed them.

    z-index:3; /* This allows the content to overlap the right menu in narrow windows in good browsers. */
    Code (markup):
    Might as well get rid of that too. It only works for positioned items. (check w3 if ya' want)
     
    chopsticks, May 26, 2007 IP
  6. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That worked in ie, but not in FF when sized at 800x600 :( This css stuff is very frustrating.
     
    mopacfan, May 26, 2007 IP
  7. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Try creating a new div and putting all 3 columns inside it and then close it just above your footer. Under that div put the <br style="clear: both;" />. Not sure if that'd actually work but it has worked for me before with similar problems to yours.

    Also, I changed my resolution to 800x600 and viewed the site in FF and the footer wasn't covered at all.
     
    chopsticks, May 26, 2007 IP