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

Problems with divs in IE and Firefox

I have a fairly simple page (attached below) with a couple of nested
divs. The issue is with the paddedtext class. If I have this set to
100% width the text hangs over the edge of the tableborder div in
Firefox. If I take the width off its fine in Firefox, but pushes
tableborder wider in IE6.

Could anyone give me a pointer on this.

Help Appreciated. Thanks.

<html>
<head>
<style>

..tableborder
{
border-right: silver 1px solid;
border-top: silver 1px solid;
border-left: silver 1px solid;
border-bottom: silver 1px solid;
}
..mainpane
{
width: 750px;
text-align: left;
height:auto;
margin: 0 auto;
position:relative;
}

..leftpane
{
left: 0px;
width: 150px;
position: absolute;
top: 0px;
}

..rptwocol
{
left: 160px;
width: 590px;
position: absolute;
top: 0px;
}

..paddedtext
{
text-align: justify;
width: 100%;
padding: 4px;
}

</style>
</head>

<body>
<div class="mainpane">
<div class="leftpane">
Stuff in the left
</div>
<div class="rptwocol">
<div class="tableborder">
<div class="paddedtext">
Hot on the heels of the Halifax's annual First Time Buyer review,
published Saturday, deputy prime minister John Prescott has announced a
series of measures to help people struggling to buy their first house.
</div>
</div>
</div>
</div>
</div>
</body>
</html>

Jul 23 '05 #1
2 2217
"Spondishy" <sp*******@tiscali.co.uk> wrote:
I have a fairly simple page (attached below) with a couple of nested
divs.
From the HTML perspective, a div element is just a meaningless (i.e.,
semantically empty) block-level container. Extremely boring, though often
useful for slapping a class attribute into it, or maybe a lang attribute,
or whatever.
The issue is with the paddedtext class.


You have a CSS problem, not an HTML problem. Please do not forget to post
the URL and drop the copy of the code when re-posting your question into
c.i.w.a.stylesheets.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #2
In article <11**********************@f14g2000cwb.googlegroups .com>
Spondishy <sp*******@tiscali.co.uk> wrote:

I have a fairly simple page (attached below) with a couple of nested
divs. The issue is with the paddedtext class. If I have this set to
100% width the text hangs over the edge of the tableborder div in
Firefox. If I take the width off its fine in Firefox, but pushes
tableborder wider in IE6.

Could anyone give me a pointer on this.
This goes back to where their parents or family are?
Help Appreciated. Thanks.
RWF1d0kyOVdySEVVb0g5YkZJVzFaVU9FRElxa0xINWdFSGdXbk tXNEhtSVdy
SEgxbzB5QUZVU1lGSmNsCnExQTZFMHVhRzI5V0dIdVVGYXlkUG FTNEJUY2ly
SElKcElJQ0ZSdGxaSmdWSHd4MkhVdGtKS09JRUhTVwpIYXhtRT FXd0gzV1lH
Mk1VWjNTY0phcVdBejk0TTBnQVowOXpFMjFDbk5jV0gxY2RGS3 lXRzBrNkJU
a1QKRndTWEZIZ0dMM09JTDNjaEd3MDk=
<html>
<head>
<style>


Html head delisle

--
Lady Chatterly

"Also, Lady Chatterly is a bot from the kook groups, and yyyiiiing is
a poster from the kook groups." -- Siteldawgnumber1

Jul 23 '05 #3

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

Similar topics

2
by: Egon Pasztor | last post by:
Hi. I'm new at CSS, so maybe this is obvious, but I've looked around quite a bit looking for a solution. I'm playing with the vertical positioning of elements in a 2-column layout. The...
26
by: Spondishy | last post by:
Hi, I have a problem with divs and padding in IE6 and Firefox. Basically my example that I have attached works exactly how I want in IE6, but padding is treated differently in Firefox. My...
5
by: gregmercer | last post by:
I have the following html sample, where I'd like to have a show and hide two divs, one replacing the other. Following these two divs is a third div (the bluediv) which I would like to have placed...
12
by: meltedown | last post by:
I would like the floating divs to float and then the header to come after them , on the left. That's what I thought clearing the floats was for, but in this example, the header is to the right of...
2
by: tasman.hayes | last post by:
I'm experimenting with converting a site from a table layout to CSS. I'm floating three DIVs in a row for the top of a website (a logo, navigation buttons and a email list signup box). The DIVs...
2
by: cbjewelz | last post by:
Hey all. So I'm having problems with cross browser alignments. I'm looking at Safari and Mozilla Firefox. I develop in Safari and so it looks perfect there however in Firefox my vertical...
0
by: atarumorooka | last post by:
Hello, yes..it must be hard to try and help someone else coding but today is a full week of sadness and stress for IE CSS rendering and I need your help. Here you have a link that looks nice with...
6
by: Liam Gibbs | last post by:
Hello everyone, I'm trying to program a church web site and I'm having a number of problems with the layout. The html is at http://www.altmarvel.net/Liam/index.html and the css is at...
2
by: Liam Gibbs | last post by:
Hello everyone, This will be my third time posting this, but for some reason, my message isn't get through to the newsgroup, even after hours of waiting. So here goes again. I'm having huge...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.