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

Thread: Some css help?

  1. #1
    Join Date
    Jan 2006
    Location
    Kent
    Posts
    987
    Tokens
    0

    Default Some css help?

    www.joewarren.info/sri_lanka

    Right i'm trying to create this layout for my college website thing,
    anyway im trying to get the whole content section to have the same background colour,
    it works in IE but with firefox, only the divs within the main div change colour, rather than the whole thing.
    I also can't seem to change the background colour for the body. I'll admit, I'm not good at CSS, any help would be greatly appreciated.

    html:
    Code:
    <div id='content'>
    	<div id='main'>
        This is some main content
        </div>
    	<div id='nav'>
        this is some links nd stuff
        </div>
    </div>
    css:
    Code:
    #main {
    float: left;
    background-color: #303030;
    }
    #nav {
    float: right;
    background-color: #303030;
    }
    #content {
    width:950px;
    margin: 0px auto;
    background-color:#303030;
    background-repeat:repeat-y;
    color:#FFFBF0;
    }
    Last edited by Joe!; 11-11-2008 at 07:18 PM.
    This is our situation and we're happy to be here,
    I wouldn't change this place for anything.


  2. #2
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Code:
    overflow: hidden;
    to your main container.

  3. #3
    Join Date
    Jan 2006
    Location
    Kent
    Posts
    987
    Tokens
    0

    Default

    Thankyou
    edit: would give you rep but i need to spread
    This is our situation and we're happy to be here,
    I wouldn't change this place for anything.


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

    Latest Awards:

    Default

    I think the navigation images would look good with hover's

  5. #5
    Join Date
    Jan 2006
    Location
    Kent
    Posts
    987
    Tokens
    0

    Default

    There not actually images, just css :p but what colour? Just a lighter shade? Thanks for the suggestion
    edit: hows that?
    Last edited by Joe!; 11-11-2008 at 09:18 PM.
    This is our situation and we're happy to be here,
    I wouldn't change this place for anything.


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

    Latest Awards:

    Default

    I think it's:
    #cssname {
    background-color: #000000;
    width: 0px;
    height: 0px;
    }
    #cssname:hover {
    background-color: #111111;
    width: 0px;
    height: 0px;
    }
    And I thought div's had to look like <div id="cssname"></div>? Doesn't matter I think

Posting Permissions

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