Strange look in FF

Discussion in 'CSS' started by beggar_su, May 26, 2007.

  1. #1
    Hi I made a website in .net and I am using style sheets for layout, it
    looks great in IE but in firefox all boxes are placed in what looks
    like somebody just throw them around on the screen.

    HTML
    <div class="bodywrapper"


    <div id="columnleft">
    #CONTENT
    </div>


    <div id="columnright">
    #CONTENT
    </div>


    </div>


    CSS


    #columnleft
    {
    float:left;



    }


    #columnright
    {
    float:right;
    text-align:center;
    width:100px;


    }


    .bodywrapper
    {
    margin-left: 90px;
    margin-right: 90px;
    width:900px;
    background-color: #ffffff;


    }


    Anyone got a solution to this?
    :confused:
     
    beggar_su, May 26, 2007 IP
  2. Jem

    Jem Peon

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <div class="bodywrapper" needs a '>' on the end, and you need to give #columnleft a width
     
    Jem, May 26, 2007 IP
  3. beggar_su

    beggar_su Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    the missing > is just a typo when I wrote the code here.
    I added width:auto; on the #columnleft but it didn't solve my problem with all the divs being placed in really strange locations in FF :(
     
    beggar_su, May 26, 2007 IP
  4. Jem

    Jem Peon

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It needs to be a pixel width (max of 800px), as you've used a pixel width in the right column.
     
    Jem, May 26, 2007 IP
  5. beggar_su

    beggar_su Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    that made it a lot better, but still some things that's not right but I guess it's the same error. thanks for the help, it put me one step closer to make everything right :)
     
    beggar_su, May 26, 2007 IP
  6. Jem

    Jem Peon

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I would be able to help you further if I could see the page you're working on - do you have a URL?
     
    Jem, May 26, 2007 IP
  7. beggar_su

    beggar_su Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    sure. here http://www.nutritionbars.se/default.aspx
    it's all in Swedish but I guess you don't need to understand the content to read the code ;)
    thanks again
     
    beggar_su, May 26, 2007 IP