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 18

Thread: CSS problem

  1. #1
    Join Date
    Aug 2006
    Posts
    180
    Tokens
    0

    Default CSS problem

    Hey,

    I'm trying to get this box to reach the top and bottom of the page. It only shows when I set height: 100px; or something and not 100% which is what I have atm. I'm a bit stuck and was wondering how I can get it to reach the top and bottom with no top and bottom margins.

    this is it now (it's not showing)

    wewt.co.uk/xy/

    #box {
    margin-top: 0px;
    margin-bottom: 0px;
    width: 600px;
    background-color: #fff;
    min-height: 100%;
    margin-right: auto;
    margin-left: auto;
    }

  2. #2
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    body {
    margin 0 0 0 0px;
    }
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  3. #3
    Join Date
    Aug 2006
    Posts
    180
    Tokens
    0

    Default

    Erm, nope

    body {
    background-image: url(images/stripes.png);
    font: 10px verdana;
    color: #2e2e2e;
    height: 100%;
    margin: 0 0 0 0px;
    }

    #box {
    margin-top: 0px;
    margin-bottom: 0px;
    width: 600px;
    background-color: #fff;
    min-height: 100%;
    margin-right: auto;
    margin-left: auto;
    }

    that's my whole code, thanks for the help.

  4. #4
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    Show me the whole site.
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  5. #5
    Join Date
    Aug 2006
    Posts
    180
    Tokens
    0

    Default

    body {
    background-image: url(images/stripes.png);
    font: 10px verdana;
    color: #2e2e2e;
    height: 100%;
    margin: 0 0 0 0px;
    }

    #box {
    margin-top: 0px;
    margin-bottom: 0px;
    width: 600px;
    background-color: #fff;
    min-height: 100%;
    margin-right: auto;
    margin-left: auto;
    }

    www.wewt.co.uk/xy/

    <!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>W!</title>
    <meta name="description" content="WEWT graphic design services" />
    <meta name="keywords" content="graphic, design, web, wewt, layout, logo" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <link href="http://www.wewt.co.uk/xy/style.css" rel="stylesheet" type="text/css" />
    </head>
    <?php

    $getpage = $_GET['page'];
    $page = $getpage. '.htm';

    if (file_exists($page))
    {
    echo("<body onload=\"" .$getpage. ".src='http://www.wewt.co.uk/xy/images/" .$getpage. "_on.PNG';\">");
    }
    else
    {
    echo "<body>";
    }

    ?>
    <div id="box">
    <?php

    $getpage = $_GET['page'];
    $page = $getpage. '.htm';

    if (file_exists($page))
    {
    include($page);
    echo('<script type="text/javascript">' .$getpage. '.src="http://www.wewt.co.uk/xy/images/' .$getpage. '_on.PNG";</script>');
    }
    else if ($getpage == null)
    {
    include('blog.htm');
    }
    else
    {
    include('error.htm');
    }

    ?>
    </div>
    </body>
    </html>

  6. #6
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    I dinny see nay box on the site.

    Code:
    body {
    background-image: url(images/stripes.png);
    background-repeat: repeat;
    font-size: 10px;
    font-family: verdana;
    color: #2e2e2e;
    margin: 0 0 0 0px;
    }
    
    #box {
    width: 600px;
    background-color: #ffffff;
    }
    Anyway, change your CSS code to that and then change it to

    <div id="box" align="center">
    Last edited by Aflux; 05-09-2007 at 06:45 PM.
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  7. #7
    Join Date
    Aug 2006
    Posts
    180
    Tokens
    0

  8. #8
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    The box is at the top of the screen?
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  9. #9
    Join Date
    Aug 2006
    Posts
    180
    Tokens
    0

    Default

    yeah but not the bottom. I need it to reach both. thanks loads for the help btw.

  10. #10
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    As far as I know, that's impossible until the content fills enough to reach the bottom.

    I'm 80% sure on that.
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

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
  •