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 2 of 2

Thread: CSS Div Layouts

  1. #1
    New to the CF scene
    Join Date
    Oct 2010
    Location
    Wisconsin
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation CSS Div Layouts

    I am trying to create a template and put the content for the page into a div called container, and I want to split up the container that is filling up about half the page into two so that I can put content on the left and on the right kind of as two seperate sections. When I try to add content to the left side, it shifts the right side down thinking that the left side section is accross the whole page. How do I fix this?

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,956
    Thanks
    9
    Thanked 727 Times in 721 Posts
    You need to use the css float property. Have a look here for a two column layout.


  •  

    Posting Permissions

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