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
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default I need help with this layout coding.

    Hi,

    I'm currently coding a Habbo Layout for one of MetiDesigns.com's customers.
    But I've got one problem which I haven't got before.
    I've added the banner, navigations and the content box. And the banner is on it's place, where I want it to be.

    But the Navigations and content box aren't right.
    It's like this:
    BANNER
    CONTENT BOX
    NAVIGATIONS

    I want the content box to be in the middle.

    Here's the CSS code:
    HTML 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>
    <title>HabSafety V1 :: </title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    <!--
    body {
      text-align: center;
      background-color: #ffffff;
      width: 800px;
      margin: auto;
    }
    #content {
      width: 390px;
      font-family: Verdana;
      font-size: 10px;
      font-weight: normal;
      color: #000000;
      margin: 0 auto;
    }
    #ctop {
      background: url(images/content_top.gif);
      height: 11px;
    }
    #cmid {
      background: url(images/content_mid.gif);
    }
    #cbot {
      background: url(images/content_bot.gif);
      height: 10px;
    }
    #nav1 {
      width: 390px;
      font-family: Verdana;
      font-size: 10px;
      font-weight: normal;
      color: #000000;
      float:left;
    }
    #top {
      background: url(images/top3.gif);
      height: 11px;
    }
    #mid {
      background: url(images/top3_mid.gif);
    }
    #bot {
      background: url(images/top2_bot.gif);
      height: 10px;
    }
    #nav2 {
      width: 390px;
      font-family: Verdana;
      font-size: 10px;
      font-weight: normal;
      color: #000000;
      float:left;
    }
    #top1 {
      background: url(images/top3.gif);
      height: 11px;
    }
    #mid1 {
      background: url(images/top3_mid.gif);
    }
    #bot1 {
      background: url(images/top2_bot.gif);
      height: 10px;
    }
    #nav3 {
      width: 390px;
      font-family: Verdana;
      font-size: 10px;
      font-weight: normal;
      color: #000000;
      float:left;
    }
    #top2 {
      background: url(images/top3.gif);
      height: 11px;
    }
    #mid2 {
      background: url(images/top3_mid.gif);
    }
    #bot2 {
      background: url(images/top2_bot.gif);
      height: 10px;
    }
    -->
    </style>
    </head>
    Here's the BODY:
    HTML Code:
    <body>
    <!-- Content Box --!>
    <div id="content" style="width: 584px; height: 53px">
      <div id="ctop" style="width: 584px; height: 26px"><br>
        <b>Add the content title here</b></div>
      <div id="cmid">And here you can add how much things you want</div>
      <div id="cbot" style="width: 588px; height: 13px"></div>
    <!-- End of Content Box --!>
    <!--- First Navigation ---!>
    <div id="nav1" style="width: 212px; height: 47px">
      <div id="top" style="width: 211px; height: 22px">&nbsp;</div>
      <div id="mid">This box is expandable</div>
      <div id="bot" style="width: 212px; height: 12px"></div>
    <!--- End of First Navigation ---!>
    <!--- Second Navigation ---!>
    <div id="nav2" style="width: 212px; height: 47px">
      <div id="top1" style="width: 211px; height: 22px">&nbsp;</div>
      <div id="mid1">This box is expandable</div>
      <div id="bot1" style="width: 212px; height: 12px"></div>
    <!--- End of Second Navigation ---!>
    <!--- Third Navigation ---!>
    <div id="nav3" style="width: 212px; height: 47px">
      <div id="top2" style="width: 211px; height: 22px">&nbsp;</div>
      <div id="mid2">This box is expandable</div>
      <div id="bot2" style="width: 212px; height: 12px"></div>
    <!--- End of Third Navigation ---!>
    
    </div>
    
    </body>
    </html>
    Can you see any errors?
    If yes, please tell me.
    Everyone who helps will recieve a +REP!

    Thanks,
    Meti

  2. #2
    Join Date
    Jun 2008
    Posts
    134
    Tokens
    0

    Default

    I can't be botherd to go though it, but as your using CSS, would be easier to have the width/height in the CSS as well. I dunno if that's a error your having becuase I havn't checked, just a suggestion.

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

    Latest Awards:

    Default

    Okay, but if there's anyone else who knows, please tell me!

  4. #4
    Join Date
    Jul 2005
    Location
    Cymru! :o Bahh
    Posts
    571
    Tokens
    0

    Default

    Code:
    </style>
    </head>
    
    <body>
    
    <div id="content" style="width: 584px; height: 53px">
      <div id="ctop" style="width: 584px; height: 26px"><br>
        <b>Add the content title here</b></div></div>
      <div id="cmid">And here you can add how much things you want</div>
      <div id="cbot" style="width: 588px; height: 13px"></div>
    
    <div id="nav1" style="width: 212px; height: 47px">
      <div id="top" style="width: 211px; height: 22px">&nbsp;</div>
      <div id="mid">This box is expandable</div>
      <div id="bot" style="width: 212px; height: 12px"></div>
    
    <div id="nav2" style="width: 212px; height: 47px">
      <div id="top1" style="width: 211px; height: 22px">&nbsp;</div>
      <div id="mid1">This box is expandable</div>
      <div id="bot1" style="width: 212px; height: 12px"></div>
    
    <div id="nav3" style="width: 212px; height: 47px">
      <div id="top2" style="width: 211px; height: 22px">&nbsp;</div>
      <div id="mid2">This box is expandable</div>
      <div id="bot2" style="width: 212px; height: 12px"></div>
    
    
    
    
    </body>
    </html>
    Is that what your trying to do?

    So A Kiss Is Out Of The Question Then..?

    ♥ My Boy <sinlge> Tbh ♥
    This love isn't good unless it's me and you
    Complicated is the whole point. x

    Theres nothing scarier than getting something you want because then you have something to lose..





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

    Latest Awards:

    Default

    Same thing.. You just removed the <!--- THOSE DON'T BOTHER ---!>

Posting Permissions

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