473,387 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

two col issues with float right and left in css

Does anybody know why I can't get a simple two col design to work
using the following css? At the moment my columns seem to be arranging
left and right correctly but are stacked on top of each other?

the site is : http://www.rockshore.net/html/hol2.html

div.lh-col{
width: 18%;
float:left;
border: solid #333333;
border-width: 0 0px 0 0;
background: #ffffff;
color: #333333;
margin: 0;
padding: 40px;
}

div.rh-col{
width: 78%;
float: right;
background: #c0c0c0;
color: #333333;
margin: 0;
padding: 3px;
border: solid #333333;
border-width: 0 1px 0 1px
}

tnx,
Jon
Jul 20 '05 #1
2 2368
*jon slinn* <jo******@yahoo.co.uk>:

div.lh-col{
width: 18%;
float:left;
padding: 40px;
}

div.rh-col{
width: 78%;
float: right;
padding: 3px;
border-width: 0 1px 0 1px
}


Your viewport would have to be at least 2200px wide to have 4% (= 100% -
18% - 78%) of it be greater than 88px (= 2·40px + 2·3px + 2·1px).

--
"It is impossible to enjoy idling thoroughly
unless one has plenty of work to do." Jerome K. Jerome
Jul 20 '05 #2
Hi jon.

What about this?:

http://members.rogers.com/rmacinty2/rockshor/hol2.htm

I tried to work within what I felt to be your constraints, but I think you
may need to specify a width for floats.
Anyway, I did it to learn something for myself as well. :-)

"jon slinn" <jo******@yahoo.co.uk> wrote in message
news:bd**************************@posting.google.c om...
Does anybody know why I can't get a simple two col design to work
using the following css? At the moment my columns seem to be arranging
left and right correctly but are stacked on top of each other?

the site is : http://www.rockshore.net/html/hol2.html

div.lh-col{
width: 18%;
float:left;
border: solid #333333;
border-width: 0 0px 0 0;
background: #ffffff;
color: #333333;
margin: 0;
padding: 40px;
}

div.rh-col{
width: 78%;
float: right;
background: #c0c0c0;
color: #333333;
margin: 0;
padding: 3px;
border: solid #333333;
border-width: 0 1px 0 1px
}

tnx,
Jon

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Penguinny | last post by:
Dear all, I am trying to make a relatively simple layout with two adjustment columns filled with short news pieces, but there's a catch. I cannot control the html for these news bits, so I am...
2
by: Dr. Richard E. Hawkins | last post by:
I've googled around, and asked everyone I know, but I still can't find any reference to anyone else having faced this particular IE bug with floats. I've put a page at...
0
by: listaction | last post by:
Hello All, I'm trying to avoid use of tables for layout purposes. So I have the layout positioned using css and <div>. When the browser window is resized by clicking & dragging the mouse, the text...
0
by: jonipony | last post by:
HELP: Float Left box is drifting to the right in ie! -------------------------- I need som HELP with my CSS coding! On the following web page my design falls apart at screen size 800 x 600...
3
by: hantechs | last post by:
<html> <body> <p style="width:30%;">text1</p> <p style="float:left;">text2</p> </body> </html> The effect of this html code is : text1 and text2 each is on a line. My question is: Why text2...
1
by: adz1809 | last post by:
I have a page with the following code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"...
27
by: GloStix | last post by:
WARNING VIDEO TAKES A WHILE TO LOAD http://screencast.com/t/BWQ6DNtsM I really don't know how to fix this other than putting another div. But I dont' exactly want to do that for every page....
4
by: PianoMan64 | last post by:
Hey Experts, I'm not sure how to get around this, and any help would be most greatfull. I have an issue with having a CSS menu that displays correctly in IE and not correctly in Firefox 3.0.3,...
3
by: jrod11 | last post by:
Hi everyone, I'm working on creating a company intranet or my company and having trouble with IE. I have a navigation bar at the bottom of my page that is a quick links bar and is a fixed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.