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

Thread: CSS help

  1. #1
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:

    Default CSS help

    I have a slide down menu but i am struggling with the CSS

    here is the menu.

    I want the writing to be in the middle (down abit) and the slide option centered.

    here is the CSS file

    PHP Code:
    .mainDiv
    {
      
    width:163px;
     
    }
    .
    topItem
    {
      
    width:177px;
      
    height:22px;
      
    cursor:pointer;
      
    background-imageurl(Button copy.gif);
      
    border-top:0px solid #000000;
      
    border-left:0px solid #000000;
      
    border-right:0px solid #000000;
      
    border-bottom:0px solid #000000;
      
    text-decorationnone;
      
    text-aligncenter;
      
    colorblack
      
    font-weight:bold;
      
    font-family:"verdana";
      
    font-size'8pt';
     
    }

    .
    dropMenu
    {
      
    background:#06096a;
      
    aligncenter;
      
    border-top:0px solid #000000;
      
    border-left:1px solid #000000;
      
    border-right:1px solid #000000;
      
    border-bottom:0px solid #000000;
      
    }
    .
    subMenu
    {
       
    display:none;
    }
    .
    subItem
    {
       
    padding-left:5px;
       
    cursor:cross;
       
    font-weight:none;
       
    font-family'verdana';
       
    font-size'8pt';
       
    text-decoration:none;
       
    colorwhite;
    }
    .
    subItem a
    {
       
    text-decoration:none;
       
    font-family'verdana';
       
    colorwhite;
    }
    .
    subItemOver
    {
       
    cursor:pointer;
       
    color#c86105;
       
    text-decoration:underline;
       
    font-family'verdana';
       
    font-size'8pt';
       
    font-weight:bold;
       
    padding-left:5px;
    }
    .
    subItemOver  a
    {
       
    color#c86105;
    }

    .
    drop
    {
       
    border-left:0px solid black;
       
    border-right:0px solid black


  2. #2
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    .subItem
    {
    padding-left:5px;
    cursor:cross;
    font-weight:none;
    font-family: 'verdana';
    font-size: '8pt';
    text-decoration:none;
    color: white;
    }
    .subItem a
    {
    text-decoration:none;
    font-family: 'verdana';
    color: white;
    }

    I take it that is the font?

    Anyway, just use the aglining (Cant spell <---)

    .subItem
    {
    padding-left:5px;
    cursor:cross;
    align: center;
    font-weight:none;
    font-family: 'verdana';
    font-size: '8pt';
    text-decoration:none;
    color: white;
    }
    .subItem a
    {
    text-decoration:none;
    font-family: 'verdana';
    color: white;
    align: center;
    }

  3. #3
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:

    Default

    its not the text i want aligning its the actually blue boxes

  4. #4
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by chris2k6 View Post
    I want the writing to be in the middle (down abit) and the slide option centered.
    ??????

    And: Did you say you wanted it all centered?

    try:

    body {
    align: center;
    }
    Last edited by :Blob; 26-08-2006 at 06:27 PM.

  5. #5
    JoeComins Guest

    Default

    The main width is 163, so centered in that is fine, but the heading text is centered 172px, and the center of 172 isnt the same as 163 - make them both 172 or both 163: just make them the same

  6. #6
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:

    Default

    No the blue centered is 163 because then i comes out of the middle of the image and not the edges becuase then they dont line up.

    EDIT: when i do the

    PHP Code:
    body {aligncenter;} 
    i get this

    http://www.time4anupload.co.uk/uploads/6189af1420.jpg
    Last edited by ClubTime; 26-08-2006 at 07:01 PM.

  7. #7
    JoeComins Guest

    Default

    Type in proper english:

    .mainDiv
    {
    width:177px;

    }
    .topItem
    {
    width:177px;
    }
    The top one is the main DIV.
    The bottom one is the Title.
    The center of the title if off center with the center of the blue because teh centeres are in different places.

    FIND:
    .mainDiv
    {
    width:163px;

    }
    .topItem
    {
    width:177px;
    height:22px;
    cursor:pointer;
    background-image: url(Button copy.gif);
    border-top:0px solid #000000;
    border-left:0px solid #000000;
    border-right:0px solid #000000;
    border-bottom:0px solid #000000;
    text-decoration: none;
    text-align: center;
    color: black;
    font-weight:bold;
    font-family:"verdana";
    font-size: '8pt';

    }
    REPLCAE WITH:
    .mainDiv
    {
    width:177px;

    }
    .topItem
    {
    width:177px;
    height:22px;
    cursor:pointer;
    background-image: url(Button copy.gif);
    border-top:0px solid #000000;
    border-left:0px solid #000000;
    border-right:0px solid #000000;
    border-bottom:0px solid #000000;
    text-decoration: none;
    text-align: center;
    color: black;
    font-weight:bold;
    font-family:"verdana";
    font-size: '8pt';

    }
    Do it and get me a screenshot

    Sorry, jsut edited it.
    Jsut do it
    Last edited by JoeComins; 26-08-2006 at 07:02 PM.

  8. #8
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:


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

    Default

    Chris just make the slide down bit the same width as the images ;S

  10. #10
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:

    Default

    it will look crap then though. There must be a way to be do

Posting Permissions

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