Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS styles question......

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
Guys i'm using this in an external file:

.copy {font-family: Arial, geneva, sans-serif;
text-align: justify;
font-size: 13px;
color: #666666;
margin-right: 2%;
margin-left: 2%;
margin-top: 2%;
margin-bottom: 1em;}

it works fine most of the time, but I am finding machines running windows98 and ie that the style sheet is causing the page to fall apart. Now I didn't have time at work to check, but I know the machines are running ie5 something.

What version of ie5 started supporting css?

Also at work we have a mac running os9.2.2 and ie 5.1 and the page holds up great.

your thoughts?

carlsatterwhite@orlandomediasolutions.com
 
I think there was (at least some) CSS support in IE4.

Try removing (or commenting out) each property from the CSS class in turn to see which one is causing the problem.

You could also try putting your CSS file through the validator at


and see if there's anything dodgy about it. It looks OK to me though. -- Chris Hunt
Extra Connections Ltd
 
Seems that the problem was setting the margins, doesn't seem to work inside a table in ie 5. Will look into it further and see if there is a solution.

For now i just take out the margins in the css and set the cellspacing inside the table to adjust.



carlsatterwhite@orlandomediasolutions.com
 
I think you'll find older browsers a bit inconsistent in the way they apply CSS to tables. Try something like this:

<TD><P CLASS=&quot;copy&quot;>This Works</P></TD>

<TD CLASS=&quot;copy&quot;>This (sometimes) doesn't</TD>
-- Chris Hunt
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top