473,387 Members | 1,502 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.

IE Problem: width, nowrap, overflow, clipping

Hi everybody,

I encounter the following layout problem in IE 6.0.28:

Even on specifying "white-space: nowrap" and "overflow: hidden" the
paragraph shoots out over the boundaries of the width restricted
containing divison. See html document later.

In Mozilla and Opera it looks fine.

When i specify the width directly on the paragraph it works also in ie
(add "width: 10em" to "nowrap". But i cannot do that for other
reasons.

Does anybody have a workaround for this?

Best regards,
Robert.

-----------CODE START-----------
<!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">
<head>
<title>IE Width Problem</title>
<style type="text/css">
body {
padding: 0;
margin: 0;
}

#container {
width: 10em;
}

.nowrap {
white-space: nowrap;
background-color: green;
color: white;
overflow: hidden;
}
</style>
</head>
<body>
<div id="container">
<p class="nowrap">This text is too long to fit in.</p>
<p class="nowrap">This fits in.</p>
</div>
</body>
</html>
----------CODE END-----------
Jul 20 '05 #1
3 8819
Did you try "width: inherit;"?

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 20 '05 #2
Philip Ronan <ph***********@virgin.net> wrote in message news:<BD65E544.20E6D%ph***********@virgin.net>...
Did you try "width: inherit;"?


Does not work.

Thanks anyway!
Jul 20 '05 #3
Hi everybody,

To close this issue: No workaround found. Specifying width now, which
brings the wanted result.

Regards,
Robert.

rc@mailinator.com (Robert Cerny) wrote in message news:<21**************************@posting.google. com>...
Philip Ronan <ph***********@virgin.net> wrote in message news:<BD65E544.20E6D%ph***********@virgin.net>...
Did you try "width: inherit;"?


Does not work.

Thanks anyway!

Jul 20 '05 #4

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

Similar topics

5
by: Jean Pion | last post by:
Dear readers, Can anyone explain how to set column width of a table in ccs. I use the following style in an external stylesheet: table.tbl { table-layout:fixed; border-top: 5px solid #333;...
10
by: Brian Henry | last post by:
Hi, I am having a problem with an attachment system I made... it works with files up to ~3MB in size then after that if you try to upload a file it just goes to a "Page can not be displayed" page...
5
by: Mark | last post by:
I am struggling with a CSS2 layout problem, I am using Visual Web Developer 2005 Express. My website needs to be constrained within the visible viewport. This means that scrollable content will...
4
by: zz | last post by:
Sorry for posting this here but unfortunatly I couldn't find any appropriate newsgroup for this and since I've been active here with .net question I figured you guys might be able to help. ...
1
by: books1999 | last post by:
Hi there, I have a problem with this css/div and i cannot work it out. I would like either container to be able to push the background box to grow but in Firefox it overflows. Can someone find a...
9
by: Andy Baxter | last post by:
hello, I'm writing a panoramic image viewer in html / javascript. The idea is I have a div with two identical panoramic photographs embedded in it. The clipping on the div is set to make it a...
1
by: shad0 | last post by:
Quick Rundown: i have a page design created in adobe cs3. we used the export feature to generate our html and image slices. i then edited the tabled to autosize for screen resolution, and started...
1
by: sravani1 | last post by:
This code runs like when i submit the form it takes the image and displayed and top of the image a map will displayed. But actually i want that when i give the image it checks the location in the map...
2
by: ATR2000 | last post by:
I have setup a Panel to have a width of 100% so that it will adjust to users screensize. Within the panel I have a table. Unfortunately the table holds a lot of data and exceeds the size of the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: 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
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,...

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.