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
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Location
    U.S.A
    Posts
    129
    Thanks
    1
    Thanked 0 Times in 0 Posts

    2 divs always same height

    Hey guys I have three different divs that will be flush up against each other floating left. Is their any way that I can get div 2 and 3 to be the same height as div 1 no matter how much content I put in, without using height. I want it to be to where all you have to do is type the content, and all three divs adjust to the height of the biggest one.

    Thanks,

    Joe
    P.S. I am really trying to stay away from tables, due to all the bad things I have heard about them. Would this be a good case to use tables though?
    Last edited by awsomejoe23; 06-03-2007 at 03:10 AM.

  • #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
    What type of layout is it? Is it a fixed width layout or a fluid layout? Either way you will have to use the faux columns technique.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Location
    U.S.A
    Posts
    129
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I'm using floats, but from what I see thats to make both divs the full length of the page. I want to make the two divs to stay the same even if they are only about a hundred pixels in height do to the amount of text.
    Example: Your box is the same as the one height as the one next to it, even though that it has more text than the one next to it. Is there a way I can use the fluax method for this in divs?

    thanks again,

    Joe
    Last edited by awsomejoe23; 06-03-2007 at 04:13 AM.

  • #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
    Its not to make them the full length of the page. The gist of that effect is you use a repeating background image on the container to make the left column appear the same height as the content.
    ||||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
    •