- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Wierd CCS problem. Part of text outside containing DIVS"
Collapse
-
Are there comments, or other non-displayed elements such as hidden <input> fields, in the page? If so it could be one of the old IE duplicate characters bugs: IE6 Duplicate Characters Bug - CSS fixes and workarounds The IE Word Wrap Doppelganger Bug - SitePoint
Try adding display: inline; to the rules for the two floated elements. This won't break anything else, but will bring older versions of IE to heel.
Leave a comment:
-
Cheers durbs. That fragment displays ok. I was trying to illustrate general problem and get general theories rather than post entire long webpage and expect somebody trawl through code. Ran page through a checker and all the previous elements open/close matched ok.
Sorted problem by sticking totally unecessary div around it. With CSS what's one more unecessary bit of stuff matter?Last edited by xoggoth; 24 January 2013, 11:20.
Leave a comment:
-
Cant replicate that here on IE 9, displays ok. What does your DOCTYPE declaration say?
So does the below display wrong in your IE:
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" dir="ltr" lang="en"> <head> <style type="text/css"> .content-last {float:left; width:992px; height:175px; margin-left:0px; background-color:Red; background-repeat:no-repeat;} .content-lastbox {float:left; width:248px; height:175px;} .content-lastbox p {float:none; padding-left:20px; font-size:16px; font-weight:normal; padding-top:5px;} </style> </head> <body> <div class="content-last"> <div class="content-lastbox"> <p>Line 1<br>garbage</p> </div> <div class="content-lastbox"> <p>Line 2<br>tripe here</p> </div> <div class="content-lastbox"> <p>Line 3<br>things</p> </div> <div class="content-lastbox"> <p>Line 4<br>Rubbish<br>More rubbish</p> </div> </div> </body> <html>
Leave a comment:
-
Wierd CCS problem. Part of text outside containing DIVS
Cut it down a bit to make it clearer but have a four column thing with a background image on an HTML page. I have cut and pasted (three times just to be sure!) the style and HTML from another page that works in all browsers.
style:
.content-last {float:left; width:992px; height:175px; margin-left:0px; background-image:url('images/main_lower.png'); background-repeat:no-repeat;}
.content-lastbox {float:left; width:248px; height:175px;}
.content-lastbox p {float:none; padding-left:20px; font-size:16px; font-weight:normal; padding-top:5px;}
HTML:
<div class="content-last">
<div class="content-lastbox">
<p>Line 1<br>garbage</p>
</div>
<div class="content-lastbox">
<p>Line 2<br>tripe here</p>
</div>
<div class="content-lastbox">
<p>Line 3<br>things</p>
</div>
<div class="content-lastbox">
<p>Line 4<br>Rubbish<br>More rubbish</p>
</div>
</div>
This page works in all browsers except IE when the last four letters "bish" also appears below the box. The last column is a line taller but the div and the containing div are of sufficient height so why would just a small part of one line somehow overflow them? Much ta for any brill ideas.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Right to Work changes from October 2026: a contractor’s explainer Today 15:46
- Data Kraken v Torry Harris: 5 lessons for software developer contractors Today 06:09
- Loan Recall Case Study: Amanda Yesterday 06:00
- How IR35 inflated an £8.5bn consultancy bill — and tests Burnham at the Budget Aug 28 07:47
- Autumn Budget 2026: FCSA’s 5 contractor asks of John Healey Aug 27 04:15
- Andy Burnham's Zoom gripe doesn’t apply to IT contractors, say recruiters Aug 26 03:41
- Check your Loan Recall paperwork for the Isle of Man: it could matter Aug 25 03:27
- Budget 2026: Contractor advisers ask for ‘IR35 reset’ Aug 24 04:57
- Why might an umbrella company fail to pay its total tax bill to HMRC? Aug 18 06:08
- Contractors, here are the late payment fixes that the Lords just turned down Aug 17 08:03

Leave a comment: