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 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    19
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question Very basic column question

    The following is a link to my student project for HTML/CSS class. For some reason, I am unable to get my body-right column to line up next to the body-left column correctly without giving it a top-margin of -425. I know that this is messy and a work-around for code, but if I don't adjust my margin this way, my column sits below the body-left div.

    If someone could point out the solution for this, I would much appreciate it.

    You can find the page here: http://student.santarosa.edu/~zmanni...es/index.shtml

    Thanks in advance.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,671
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello turningpoint,
    We use floats to put things beside each other.

    Have a look at a demo I have of a simple two column layout.

    That demo shows how you would float one column and margin the other over. Much better than the negative margin you had to use when you had no float.

    //edit - congratulations on the valid markup and CSS
    Last edited by Excavator; 12-11-2010 at 05:31 AM.
    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

  • Users who have thanked Excavator for this post:

    turningpoint (12-11-2010)

  • #3
    New Coder
    Join Date
    Jun 2010
    Posts
    19
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks for answering my post... and so quickly!

    FIXED!
    Last edited by turningpoint; 12-11-2010 at 06:24 AM.


  •  

    Posting Permissions

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