473,385 Members | 1,355 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 2829
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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
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...

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.