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
  1. #1
    Join Date
    Sep 2008
    Posts
    94
    Tokens
    0

    Default Help. Centering Expandable Div Menu

    Code =

    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">


    #menu ul {floateft;list-style-type:none;margin:0px;padding:0px;width:800px;backg round:#5EBACA;}
    #menu ul li {floateft;background:url('start.gif') no-repeat;margin-right:10px;}
    #menu ul li a {floateft;background:url('end.gif') no-repeat;background-position: 100% 0%;padding-left:10px;padding-right:10px;font:12px Arial;text-decoration:none;font-weight:bold;color:#FFFFFF;line-height:30px;}
    #menu ul li a:hover {text-decoration:strike;}
    body {
    background-color: #5EBACA;
    }
    -->
    </style>
    <link href="css.css" rel="stylesheet" type="text/css" />
    </head>

    <body>


    <div align="center" id="menu">

    <div align="left">
    <ul>
    <li><a href="">Home</a></li>
    <li><a href="">News</a></li>
    <li><a href="">About</a></li>
    <li><a href="">Services</a></li>
    <li><a href="">Contact Us</a></li>
    </ul>
    </div>
    </div></body>
    </html>

  2. #2
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    margin: auto;
    Back for a while.

  3. #3
    Join Date
    Sep 2008
    Posts
    94
    Tokens
    0

    Default

    where abouts

  4. #4
    Join Date
    May 2008
    Posts
    1,160
    Tokens
    11

    Latest Awards:

    Default

    Quote Originally Posted by DANDAN View Post
    where abouts
    Up in the CSS
    Previously a Habbo fanatic, web designer/developer, fansite owner, & trusted member of the community.

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

    Latest Awards:

    Default

    Quote Originally Posted by DANDAN View Post
    where abouts
    Code:
    #menu {
      margin: auto;
    }

Posting Permissions

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