Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: CSS PROB [+REP]

  1. #1
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default CSS PROB [+REP]

    k, ive made a css layot (well nearly) and it works fine on IE but on firefox the box backgrounds and box fonts dont display- This is the code:

    HTML Code:
    <html>
    <head>
    <style type="text/css">
    body  {margin: 0px;
      background: #CCCCCC;
      }
    .container  {width: 840px;
      background: #FFFFFF;
      }
    .col1  {width: 410px;
      float: left;
      margin: 5px;
      }
    .col2  {width: 230px;
      float: left;
      margin: 5px;
      }
    .col3  {width: 170px;
      float: left;
      margin: 5px;
      }
    .410top  {width: 100%;
      padding: 0px;
      height: 32px;
      background-image: url('img\410top.gif');
      font-family: tahoma;
      color: #FFFFFF;
      font-size: 12pt;
      text-align: left;
      font-weight: bold;
      padding-left: 7px;
      padding-top: 3px;
      }
    .410mid  {width: 100%;
      padding: 0px;
      background-image: url('img\410mid.gif');
      font-family: tahoma;
      font-size: 10pt;
      }
    .410bottom {width: 100%;
      padding: 0px;
      height: 13px;
      font-size: 1px;
      background-image: url('img/410bottom.gif');
      margin-bottom: 10px;
      }
    .230top  {width: 100%;
      padding: 0px;
      height: 32px;
      background-image: url('img\230top.gif');
      font-family: tahoma;
      color: #FFFFFF;
      font-size: 12pt;
      text-align: left;
      font-weight: bold;
      padding-left: 7px;
      padding-top: 3px;
      }
    .230mid  {width: 100%;
      padding: 0px;
      background-image: url('img\230mid.gif');
      font-family: tahoma;
      font-size: 10pt;
      }
    .230bottom {width: 100%;
      padding: 0px;
      height: 13px;
      font-size: 1px;
      background-image: url('img/230bottom.gif');
      margin-bottom: 10px;
      }
    </style>
    </head>
    <body>
    <center>
    <div class="container">
    <div class="col1">
    <div class="410top">
    New Games!
    </div>
    <div class="410mid">
    Demo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo Dem
    Demo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo Demo
    Demo DemoDemo DemoDemo Demo
    </div>
    <div class="410bottom">
    </div>
    </div>
    <div class="col2">
    <div class="230top">
    Action Games
    </div>
    <div class="230mid">
    Demo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo Dem
    </div>
    <div class="230bottom">
    </div>
    <div class="230top">
    Shoting Games
    </div>
    <div class="230mid">
    Demo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo Dem
    </div>
    <div class="230bottom">
    </div>
    <div class="230top">
    Driving Games
    </div>
    <div class="230mid">
    Demo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo DemoDemo Dem
    </div>
    <div class="230bottom">
    </div>
    </div>
    <div class="col3">
    Hi
    </div>
    </div>
    </center>
    </body>
    </html>
    And it looks like this on IE:



    And it looks like this on Firefox:
    Lets set the stage on fire, and hollywood will be jealous.

  2. #2
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    try changing them to div id instead of class. it may help im unsure. then use like .header for the head of the box and when your writing it, put <span class="header">games</span>

    it may help


    EDIT: ids are written like this:

    HTML Code:
    #header {
         width:100%;
         attributes etc...
    }
    Last edited by kk.; 02-03-2008 at 05:15 PM.

  3. #3
    Join Date
    Jan 2008
    Location
    England
    Posts
    285
    Tokens
    0

    Default

    Firefox and IE use differnt style-sheet reading methods. Annoyingly.

    If it works on FF it'll work on IE though so if you re-design the CSS using FF it'll be fine.

  4. #4
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by JimboJosh View Post
    try changing them to div id instead of class. it may help im unsure. then use like .header for the head of the box and when your writing it, put <span class="header">games</span>

    it may help


    EDIT: ids are written like this:

    HTML Code:
    #header {
         width:100%;
         attributes etc...
    }
    Thanks, it fixed the fonts But not the background images

    +Rep

    Anyone know how to fix the images?
    Lets set the stage on fire, and hollywood will be jealous.

  5. #5
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    erm, try getting rid of the quotes around the images?

  6. #6
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Edit - Didn't read it right sorry ;P
    ALSO: Whats the color supposed to be?
    Last edited by Bojangles; 02-03-2008 at 05:32 PM.

  7. #7
    Join Date
    Dec 2006
    Posts
    7,601
    Tokens
    95

    Latest Awards:

    Default

    oh yh, add the -color to the container background
    not the body

  8. #8
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Was just about to post that lmao.
    Took my time to read the code for once

    .container {width: 840px;
    background-color: #FFFFFF;
    }

    Try that!
    Last edited by Bojangles; 02-03-2008 at 05:34 PM.

  9. #9
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    You have the background urls like
    Code:
    img\410mid.gif
    Shouldnt they be like
    img/410mid.gif

  10. #10
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by .:Jack120:. View Post
    You have the background urls like
    Code:
    img\410mid.gif
    Shouldnt they be like
    Think so but the /'s are still working in effect aren't they?

Page 1 of 2 12 LastLast

Posting Permissions

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