Powered by:
FutureQuest Hosting


"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Web Hosting
Shared       
Reseller     
VPS             
Dedicated 
Price:   $(US)
Space:     (MB)
Transfer:(GB)
Platform:


Advertise
Advertising Opportunities
Rate Card

Sponsor
Go Back   Webmaster Forums > Code Forum > CSS Forum


Reply
 
Thread Tools Rate this Webmaster Discussion
  #1  
Old 06-30-2009, 05:21 AM
smiths11 smiths11 is offline
Junior Member
 
Join Date: Jun 2009
Webmaster Discussions: 1
Rep Power: 3
smiths11 is on a distinguished road
CSS two column problem

Hello,
I'm having problems with a two column layout. The right-hand side looks fine, but the main content area ends up being below it and to the left. Here is what I've done, can anyone tell me what the problem is...I'm pretty sure it's my calculations, but I've tried so many different combinations. Thanks for your help.

Code:
#body .content {
	border: 0px;
    float:left;
    width:550px;
    margin:10px 10px 10px 10px;
    
    min-height:500px;
    _height:500px
} 

#body .rightmenu {
    border-left: 1px dotted;
    
    width:180px;
    margin:10px 10px 10px 579px;
    padding-left:10px;
    height:350px;
	
}


Reply With Quote
  #2  
Old 09-11-2009, 05:02 AM
Bigmous Bigmous is offline
Member
 
Join Date: Dec 2008
Location: Sydney, Australia
Webmaster Discussions: 26
Rep Power: 6
Bigmous is on a distinguished road
Re: CSS two column problem

Please post html code so I can see what exactlty your talking about.
Reply With Quote
  #3  
Old 10-06-2009, 06:04 AM
sbl sbl is offline
Junior Member
 
Join Date: Oct 2009
Location: Dhaka, Bangladesh
Webmaster Discussions: 2
Rep Power: 1
sbl is on a distinguished road
Re: CSS two column problem

Hello,
You can do as follows:

HTML CODE:
Code:
<div class="main">
<div class="content">

</div>
<div class="rightmenu ">
<div class="padding">

</div>
</div>
</div>
CSS CODE

Code:
.main{
width:900px;
}

.main .content {
    float:left;
    width:600px;
    margin:10px 10px 10px 10px;
    min-height:500px;
    _height:500px
} 

.main .rightmenu {
    border-left: 1px dotted;
    width:180px;
    margin:10px 10px 10px 259px;
    height:350px;
	
}
.main .rightmenu .padding{
padding-left:10px;
}
width and padding properties don't work appropriately in a single div. if u need a div width 500px and padding 10px, then u must have to use two different div. if u want to use a single div then u have to fix width in 480px and as well as padding in 10px.

Thanks.
Reply With Quote
Reply
Sponsor

Bookmarks

Tags
css

Thread Tools
Rate This Thread
Rate This Thread:

 

Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
Can i specify field value without using column-name? ramki067 Databases 0 05-26-2008 04:52 AM
CSS Layout - 3 Column Plus chetan1 HTML Forum 3 04-29-2008 12:42 AM
Need help with Alignment problem for two column layout designkitt CSS Forum 5 09-04-2007 03:00 AM
right column shifts xXPrincessXx CSS Forum 3 07-24-2004 09:36 AM
hide column of table Bostonrose CSS Forum 2 07-01-2004 09:06 PM


All times are GMT -5. The time now is 02:14 PM.

Copyright © 1999 - 2009 Advanced HTML For Beginners and AHFB2000. All rights reserved.
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.