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 5 of 5

Thread: CSS & Stuff

  1. #1

    Default CSS & Stuff

    Hai dar,

    Basically, I have some php:


    The CSS is:


    However, the output I get is like this:
    http://habtown.net/pedmore/?part=show_messages

    Which sucks, because the main content and sidebar don't always reach the bottom.

    Any idea how I'd go about making the sidebar & main content area reach the footer at all times? Otherwise it just looks messy and they aren't the same size.

    Thanks a bunch!
    sidenote#: this is happening on google chrome & firefox for sure, not sure about other browsers.
    Last edited by Jam-ez; 28-05-2009 at 09:56 PM.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    I don't know how to mix PHP with CSS, but I'm not sure about the:
    float: clear both; ?

    Is that even a code, or have you made it up?

    Clear: both; is correct?

  3. #3
    Join Date
    May 2009
    Posts
    1,576
    Tokens
    0

    Latest Awards:

    Default

    What is the message/news systelm your useing?

  4. #4

    Default

    Quote Originally Posted by Meti View Post
    I don't know how to mix PHP with CSS, but I'm not sure about the:
    float: clear both; ?

    Is that even a code, or have you made it up?

    Clear: both; is correct?
    Oh my god! I'm an idiot, clearly.
    I'm presuming it isn't code, it sounds a bit dodgy.

    Well I'll try that quickly and edit this post, thanks a bunch.

    What is the message/news systelm your useing?
    My own.

    Edit: Clearing both seems to cause a big white space . Hmm, any ideas how I could make it join on without spacing in between plus reach the footer on both columns?
    Edit2: Meti, the HTML code would be:
    HTML Code:
    <div class="subject">Hello : Boo</div>
    <div class="sidebar">
    My name:
    <br />
    <img src=''></img>
    <br /><br />
    Some tag line.
    </div>
    <div class="main">Message thingy</div>
    <div class="footer">Footer</div>
    <br /><br />
    I believe.
    Last edited by Jam-ez; 29-05-2009 at 03:08 PM.

  5. #5

    Default

    Sorry for double post, can't edit.
    New CSS:

    Code:
    #subject {
    	padding: 5px 10px;
    	margin: auto;
    	border: 1px solid gray;
    	background-color: #FFF;
    }
    
    #sidebar {
    	float: left;
    	width: 133px;
    	padding: 10px;
    	margin: auto;
    	border-left: 1px solid gray;
    	background-color: #FFF;
    }
    
    #main {
    	float: right;
    	width: 390px;
    	padding: 10px;
    	margin: auto;
    	border-right: 1px solid gray;
    	border-left: 1px solid gray;
    	background-color: #FFF;
    }
    
    #footer {
    	clear: both;
    	width: 546px;
    	padding: 10px;
    	border: 1px solid gray;
    	margin: auto;
    }
    Still, the #main doesn't reach the footer.

Posting Permissions

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