473,385 Members | 2,269 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,385 software developers and data experts.

<em> tag wipes out a border

I have a strange problem I can't seem to fix. I've created a content
cell using a table TD, labeled it with a unique ID tag and among other
things, have it display a 1px gray right border. On most pages the box
works fine ... except then I have a paragraph with a long string of
italicized text (EM tag used) in which case the border often
disappears ... but it does not seem to do so consistently ... some
strings of italcized text are fine ... usually I can pinpoint exactly
where the problem.

Have tried a variety of workarounds ... one recent one had me changing
the EM font family from the default verdana, etc. to arial etc. ...
also, creating a P rule with an EM class seemed to work in some cases
as well.

Page samples may be seen at
http://204.50.157.90/seeds/2003/4448.shtm -- with the missing border
and
http://204.50.157.90/seeds/2003/3134.shtm -- where the border is
visible even though there is lots of italicized text.

BTW, I've noticed this problem appears only in IE ... other browsers,
seem to be fine.
Jul 20 '05 #1
1 2830
rp********@hotmail.com (Bob Paterson) wrote:
I have a strange problem I can't seem to fix. I've created a content
cell using a table TD, labeled it with a unique ID tag and among other
things, have it display a 1px gray right border. On most pages the box
works fine ... except then I have a paragraph with a long string of
italicized text (EM tag used)
You seem to be using the em element (element, not tag) for things that
are not emphasis. This is wrong.
in which case the border often
disappears ... but it does not seem to do so consistently ... some
strings of italcized text are fine ... usually I can pinpoint exactly
where the problem.

Have tried a variety of workarounds ... one recent one had me changing
the EM font family from the default verdana, etc. to arial etc. ...
also, creating a P rule with an EM class seemed to work in some cases
as well.

Page samples may be seen at
http://204.50.157.90/seeds/2003/4448.shtm -- with the missing border
and
http://204.50.157.90/seeds/2003/3134.shtm -- where the border is
visible even though there is lots of italicized text.

BTW, I've noticed this problem appears only in IE ... other browsers,
seem to be fine.


IE has a bug. It calculates widths, etc. and _then_ changes text to
italics. In many cases this changes the amount of space needed by the
text and causes elements to spill outside their previously calculated
widths.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2

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

Similar topics

129
by: Torbjørn Pettersen | last post by:
I've started cleaning up my HTML and implementing CSS. So far I've used FrontPage, but am switching over to DreamWeaver. Reading a bit on W3Schools.com and W3.org I see there are a lot of HTML...
1
by: Bob Paterson | last post by:
I have a strange problem I can't seem to fix. I've created a content cell using a table TD, labeled it with a unique ID tag and among other things, have it display a 1px gray right border. On most...
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: 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:
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
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?
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.