Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Div Columns

  1. #1
    New Coder
    Join Date
    May 2006
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Div Columns

    i am making a web template and i have an html/css question.

    i want to make two columns, but without using tables. only DIV's and css styles.

    here is the basic:
    Code:
                          COL1                COL2
    |side   |           |      |           |      |
    |menu   |           |      |           |      |
    |       |           |      |           |      |
    |       |           |      |           |      |
    when i try this it fails.
    the sidemenu has float:left;. how do i make two columns with only divs and css with teh sidemenu having float:left too?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Is it a fixed width layout or a fluid one?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    May 2006
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the column width is fluid, but the body width is fixed

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    If the body width is fixed then you can't have fluid columns, thats really not possible as the body will never change its width. Float all 3 elements to the left, sidebar, col1, col2. Example: http://bonrouge.com/3c-hf-fixed.php
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •