HabboxWiki needs you!
Are you a Habbo buff? Or maybe a rare trader with a bunch of LTDs? Get involved with HabboxWiki to share your knowledge!
Join our team!
Whether you're raving for rares, excited for events or happy helping, there's something for you! Click here to apply
Need a helping hand?
Check out our guides for all things to help you make friends, make rooms, and make money!


Results 1 to 5 of 5

Thread: CSS & Stuff

  1. #1
    Join Date
    Apr 2008
    Posts
    533
    Tokens
    191

    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
  •