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 3 of 3
  1. #1
    Join Date
    Feb 2006
    Location
    USA
    Posts
    715
    Tokens
    0

    Latest Awards:

    Default Help with Divs ?!

    Ok, im trying to code a layout, but im having trouble with one small part.

    I couldent get the black part on the right to go to the right, so I set margins (which i believe are the problem). The main problem is that the TOP CONTENT area isn't showing (the bg image)!

    If it is the margins, how can i keep it to the right, without messing the other parts up?

    CODE:
    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>TOP SECRET</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" type="text/css" href="style1.css" />
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080">
    <table>
     
    <tr>
     <td>
      <div id="marquee_container">
       <div id="marquee">
        </div>
        </div>
         <div id="banner_container">
         <div id="banner_rep">BANNER</div>
         <div id="banner_bot"></div>
        </div>
     
         <div id="banner_container">
         <div id="top"></div>
         <div id="mid">
          <div id="radio_cont">RADIO CONTENT</div>
          <div id="radio_cont">Radio dets</div> 
        </div>
         <div id="bot"></div>
        </div>
      </td>
     </tr>
    </table>
    </BODY>
    </HTML>
    STYLE SHEET:


    Much Love
    ,Beatz

    P.S. Its the first layout i have coded (partially atm), so it may be a big screw up XD
    Last edited by DJ::Beatz; 08-05-2008 at 03:15 AM.

  2. #2
    Join Date
    Feb 2006
    Location
    USA
    Posts
    715
    Tokens
    0

    Latest Awards:

    Default

    Lmao, im a mess, i just encounted another problem! I have tabs open atm, and when i swich from the file to a diffrent tab, scroll, then go back, it makes this weird break thing in the banner_bot and top areas.


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

    Latest Awards:

    Default

    Add overflow-hidden to the main container and the div that has the background your trying to put it within .
    For the gap's i'm guessing it's a padding error so set it to padding: 0px;

Posting Permissions

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