Css question

Discussion in 'CSS' started by red-x, Apr 2, 2008.

  1. #1
    Hi to all,
    How can I put one column (or i think thats the name) in top of the other. is hard to explain so i have some pictures.

    This is how i have it in my website, for some reason they stay one next to the other.
    [​IMG]
    And this is what i want one column in top of the other. (I put column 2 in top of column 1 in the picture by mistake :( i was using windows paint. ) How can i do this?
    [​IMG]



    Heres my Css code:

    And my HTML code:

    If you need to see my entired .Css sheet or my HTML just ask me. Thanks in advance :)
     
    red-x, Apr 2, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Dan Schulz, Apr 2, 2008 IP
  3. nexenator

    nexenator Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    At first you should avoid using an ID more than once. You can use classes in exchange.

    The reason your boxes apear next to each other is the .right-class that has a float:right in it.

    To solve your problem you can either use a different class or remove the "float:right;" part from the .right-class
     
    nexenator, Apr 3, 2008 IP
  4. red-x

    red-x Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks guys but i found a way to fix it, I'm just using one <div class="right"> for the two columns :)
     
    red-x, Apr 5, 2008 IP