Google Answers Logo
View Question
 
Q: Why is right side of the border missing on one page but not the other. ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Why is right side of the border missing on one page but not the other.
Category: Computers > Internet
Asked by: wizardofyendor-ga
List Price: $4.00
Posted: 19 Mar 2004 17:08 PST
Expires: 18 Apr 2004 18:08 PDT
Question ID: 318493
Compare this page:

http://www.gocmo.com/index.shtml

With this one:

http://www.gocmo.com/faq.shtml

You'll notice that in the first one, there is no black line on the
right side, while the second one has a black line on the right side. 
They are both supposed to have a black line on the right side.

Any idea what's going on?
Answer  
Subject: Re: Why is right side of the border missing on one page but not the other.
Answered By: aht-ga on 19 Mar 2004 17:57 PST
Rated:5 out of 5 stars
 
wizardofyendor-ga:

Well, it took longer to track down than I thought it would, but I
found the culprit for you.

The reason why the right border disappears is because of the use of
the <em> tag in the contents. This causes the browser to use the
default emphasis type, italics, for the included text. However,
italics fonts tend to be, well, inaccurate, so when the browser
calculates the table width, it calculates it using what it thinks is
the right width, but when it displays, the italics causes it to use up
one more pixel than it should, causing your border to disappear on the
right.

There are two easy ways to fix this. One is to not use the <em> tags.
The other is to reduce the specified width of the lowest-level table
from 100%, to 99.9%. Now, Internet Explorer supports the use of
decimal percentages in specifying table widths, your results may vary
on other browsers. However, if you absolutely must use the <em> tags,
then reducing the width is your next best option.

Regards,

aht-ga
Google Answers Researcher
wizardofyendor-ga rated this answer:5 out of 5 stars
Thanks.  Problem solved, as you can see from my website.  I wouldn't
have figured that out in a million years.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy