473,395 Members | 1,532 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,395 software developers and data experts.

Text overflows column 1 of a two column CSS layout

I created a two column CSS layout by
floating the columns left and right respectively.

When I put text into the first column (via HTML) it continues in
a straight line through the second column and beyond
instead of going onto a new line within the first
column when it reaches the right hand edge of the
first column.

The code is below. Main is the name of the left hand
column and ads is the name of the right hand column.

If you've got the time, have you any idea what is
wrong.

Regards

Jim Walsh


Expand|Select|Wrap|Line Numbers
  1. body
  2. {margin:0; 
  3. padding:0; 
  4. background-color:#0000cc;
  5. min-width:750px;
  6. }
  7. div.wrap
  8. {background-color:#cc0000; 
  9. margin:0 auto; padding:0; 
  10. width:750px;
  11. }
  12. div.header
  13. {background-color:#ddd; margin:0; padding:5px;
  14. text-align:center;
  15. }
  16. div.links1{
  17. background-color:#c99; padding:5px;
  18. }
  19. div.links2{
  20. background-color:#cc9; padding:5px;
  21. }
  22.  
  23.  
  24.  
  25.  
  26. div.main{float:left;
  27. background-color:#cc0000; 
  28. width:500px;padding:0 10px;;
  29. }
  30. div.ads{
  31. background-color:#c9c; 
  32. float:right; 
  33. width:210px;padding:0 10px;
  34. }
  35.  
  36.  
  37.  
  38.  
  39.  
  40. div.links1 ul{
  41. margin:0; 
  42. padding:0; 
  43. list-style:none;
  44. }
Aug 17 '07 #1
1 1002
drhowarddrfine
7,435 Expert 4TB
Please do not post in the Articles section.
Also, please use code tags.

I don't see the problem. We need to see the html, too.
Aug 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Zak McGregor | last post by:
Hi all I have a simple 3 column css layout here: http://www.carfolio.com/newlook.dhtml However, when the centre column is wider than the screen (yes, it does happen on some pages on the site...
13
by: Will Pittenger | last post by:
I have a Control derived class. When the parent of the control changes the control's Location property, the stack overflows. I have not found a way to find out what was on the stack when it does...
14
by: Eric Lindsay | last post by:
I've seen a page using display, and especially display table that did some neat things with boxes, but basically it only worked with Mozilla browsers. Fell over fairly badly with Opera and Safari...
3
by: hikums | last post by:
I have taken a table snapshot, and noticed two tables with high overflows. What should be done, if any. Table Schema = CASTING Table Name = ABC Table Type = User Data...
5
by: Brian Henry | last post by:
I have a messaging application that has a data grid with information like an email list would have (from, subject, time sent, size) but the subject could be very long in theory, and then it would...
18
by: ~john | last post by:
Sorry if this is a dumb question buy my CSS is pretty bad... but how do I get text to center vertically within a div tag? Here's my code below... the text is displaying on the far top-right. I...
1
by: jimchapuk | last post by:
I created a two column CSS layout by floating the columns left and right respectively. When I put text into the first column (via HTML) it continues in a straight line through the second column...
2
by: TyIzaeL | last post by:
This problem I'm having has me stumped. What is happening is I have a three column layout for a clan web portal and text in the left/right columns spills out of the side if the line is long enough....
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
4
by: Jeff | last post by:
Hey I'm wondering how the Fixed-Width Text Format is What I know is that the top line in this text format will contain column names. and each row beneath the top line represent for example a...
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.