#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2009
    Posts
    12
    Rep Power
    0

    Why can't be in two columns ?


    Hello Dears
    I need help in having two columns in my website , i don't know why it can't be done
    i tried everything with table and div and css ,, but it appears on column is down and the another is up
    it's so strange !!!!!!!! i tried also valign and top in css but it doesn't work

    here is an example for my website http://videos.play35.com/funniest-security-footage-of-idiot-car-crash/

    the problem that is under the video
    i want to make the Description and the Ad 300x250 in two columns but as you see , the description is down and the ad is up !!!!!!



    I appreciate your help

    Thanks
  2. #2
  3. The Queen of Typos
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Sep 2004
    Location
    San Clemente
    Posts
    1,471
    Rep Power
    190
    The page was not found when I looked.

    What you need to do is float your containers to make the columns. In addition to floating them you will want to specify a width for the container. If the width of the containers is wider than the available space, one of them will get pushed down, like what you're describing. Things like padding and margins will affect the width due to the box model.

    A few resources for you:

    CSS Float
    CSS Float Theory: Things you should know
    The CSS Box Model

IMN logo majestic logo threadwatch logo seochat tools logo