Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Having layout trouble
Old 06-16-2009, 02:59 AM Having layout trouble
Experienced Talker

Posts: 43
Name: Jon
Trades: 0
Below is my code for a simple layout I have, but I can't seem to get It just how I want it.

The div #img_logo is going to be a small image button about the size I have there now, but I can't get it to go to the right side of the top div box. It is pushed below it. I want it about 30px or so to the right of the top div box.

Any suggestions would be greatly appreciated.

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">

#layout, #top, #content { overflow: hidden; min-height: 1px; }

#layout { width: 912px; margin: 0 auto; }
#layout #top { width: 737px; height: 275px; float: left; display: block; margin-left: 83px; margin-bottom: 25px; padding: 0; border: 1px solid #0b5d8d; }
#layout #img_logo { width: 175px; height: 60px; background: #000; float: right; display: block; margin: 0; padding: 0; }

#content { float: none; clear: both; margin: 0 50px; padding: 0; }
#content #left { float: left; display: block; margin: 0 30px; padding: 0; border: 1px solid #0b5d8d; width: 357px; height: 378px; }
#content #right { float: left; display: block; margin: 0; padding: 0; border: 1px solid #0b5d8d; width: 357px; height: 378px; }

</style>
</head>
<body>

<div id="layout">

    <div id="top"></div>
    
    <div id="img_logo"></div>
    
    <div id="content">
    
        <div id="left"></div>
        
        <div id="right"></div>
    </div>

</div>


</body>
</html>
Foppa is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-16-2009, 04:32 AM Re: Having layout trouble
Super Talker

Posts: 134
Name: Larry
Trades: 0
The width of your #layout box is too narrow for your two boxes on the top plus the left margin you assign to the #top box. You need to adjust the widths and the margins by either increasing the width of the #layout box or reducing the widths of the two inner boxes and the left margin for #top.
__________________

Please login or register to view this content. Registration is FREE
| Play
Please login or register to view this content. Registration is FREE
to kill time
larryatwt is offline
Reply With Quote
View Public Profile Visit larryatwt's homepage!
 
Old 06-16-2009, 05:50 AM Re: Having layout trouble
Experienced Talker

Posts: 43
Name: Jon
Trades: 0
I see now. Thanks!
Foppa is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Having layout trouble
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47028 seconds with 12 queries