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: Aligning height

  1. #1
    New Coder
    Join Date
    Mar 2010
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Aligning height

    I have 2 content boxes side by side, the one on the right using float:right. The right box has more height due to how much stuff is in it, I was wondering if there's anyway to automatically make the left box the same exact height as the right box.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello AlCapwn,
    There are a couple tricks to getting equal height columns, faux columns is one, have a look at one I came up with too.

    Does that help?
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Mar 2010
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So do I just need to add the background: url(sidebar.jpg) repeat-y left; & background: url(sidebar.jpg) repeat-y; really? Because I added those 2 and yes I changed the image location to the one I want to use and what not, but it still stayed the same.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    So do I just need to add the background: url(sidebar.jpg) repeat-y left; & background: url(sidebar.jpg) repeat-y; really?
    No. They are applying the background image to the container element of both the columns.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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