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!


Results 1 to 9 of 9

Thread: CSS Help

  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default CSS Help

    Okay I am quite a newbie when it comes to CSS... But I want to get good at it, so the best way it to make a site coded in css x) I have done most of it

    www.losh.co.uk

    Where it has a image and vital hosting... It looks wrong in my default browser (Firefox) ... Images/text float over the borders. But when I use IE it looks how I want it to be.

    I am using in my css...

    Code:
    #left {
    float:left;
    }
    #right {
    float:right;
    }
    Please view source on losh.co.uk...

    Thanks,
    Luckyrare
    Last edited by Luckyrare; 21-04-2006 at 01:52 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    Newcastle
    Posts
    1,417
    Tokens
    0

    Latest Awards:

    Default

    Its maybe because you don't have it in the "body" section?

    Try this mate;

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>The tutorial site - Losh.co.uk</title>
    <link rel="stylesheet" href="style.css" type="text/css">
    </head>
    <body>
    <div id="header">
    <img src="./images/banner.gif" height="100" width="200" />
    </div>
    <div id="navig">
    <span id="navigheader">Losh</span><br />
    <img src="/images/navage.gif" /><a href="index.php" target="_self">Home</a><br />
    <span id="navigheader">Tutorials</span><br />
    <img src="/images/navage.gif" /><a href="#" target="_self">PHP</a><br />
    <img src="/images/navage.gif" /><a href="#" target="_self">CSS</a><br />
    <img src="/images/navage.gif" /><a href="#" target="_self">HTML</a><br />
    </div>
    <div id="adverts" align="center">
    <p><img src="./images/css_valid.png" /></p>
    <p><img src="./images/php_powered.png" /></p>
    </div>
    <div id="main">
    <div id="border">
    <div id="left"><img src="./images/vitalhosting.png" />
    </div>
    <div id="right">
    <a href="http://www.vitalhosting.co.uk" target="_blank">Vital Hosting</a><br />
    Need a cheap, trustworthy hosting site? Reseller plans starting from £1! We recommend Vital Hosting!
    </div>
    </div>
    </div>
    </body>
    </html>
    - Craig



  3. #3
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Woops... That won’t make any difference but thanks for pointing that out.

  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    floating something detcaches it form the fixed layout, so it wont cause a div to fill out, useing the text-align insted should fix that

  5. #5
    Join Date
    Aug 2005
    Location
    Newcastle
    Posts
    1,417
    Tokens
    0

    Latest Awards:

    Default

    I've just had a play around with it, and I think all the div's inside the div's were messing it up. I have tested it in opera, and it works fine for me;

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>The tutorial site - Losh.co.uk</title>
    <link rel="stylesheet" href="style.css" type="text/css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    </head>
    <body>
    <div id="header"><img src="./images/banner.gif" height="100" width="200" /></div>
    <div id="navig">
    <span id="navigheader">Losh</span><br />
    <img src="/images/navage.gif" /> <a href="index.php" target="_self">Home</a><br />
    <span id="navigheader">Tutorials</span><br />
    <img src="/images/navage.gif" /> <a href="#" target="_self">PHP</a><br />
    <img src="/images/navage.gif" /> <a href="#" target="_self">CSS</a><br />
    <img src="/images/navage.gif" /> <a href="#" target="_self">HTML</a><br />
    </div>
    <div id="adverts" align="center">
    <p><img src="./images/css_valid.png" /></p>
    <p><img src="./images/php_powered.png" /></p>
    </div>
    <div id="main">
    <div id="border">
    <img src="./images/vitalhosting.png" />
    <div id="right"></div>
    <a href="http://www.vitalhosting.co.uk" target="_blank">Vital Hosting</a><br />
    Need a cheap, trustworthy hosting site? Reseller plans starting from &pound;1! We recommend Vital Hosting!</div>
    </div>
    </body>
    </html>



  6. #6
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Okay I have had a play around with text-align, its just about how I want it.
    Thanks Mentor

  7. #7
    Join Date
    Feb 2006
    Location
    Coventry
    Posts
    2,096
    Tokens
    0

    Latest Awards:

    Default

    I like the domain lol its cool, and i like the buttons on vitalhosting =]

  8. #8
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    May want to keep the valid this and that buttons till it becomes true thogh

    http://jigsaw.w3.org/css-validator/v...ww.losh.co.uk/

  9. #9
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Thanks sygon my mate made them x)

    Mentor -> Thanks for the link, had one error in. Thanks dude

Posting Permissions

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