This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > May 2005 > border-width Ignored in Firefox v1.0.4 & IE 6/Win





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author border-width Ignored in Firefox v1.0.4 & IE 6/Win
Tony LaPaso

2005-05-15, 4:18 am

Hi All,

I hope I am not "over-posting" to this group. I'm coming up to speed on
CSS and so questions come along.

This seems too weird. For some reason, Firefox 1.0.4 (as well as IE
6/Win) is ignoring my 'border-width' in the code below. No matter what
I set it to, it is ignored.

If I use the full "border:" notation, everything works fine.

<!-- ========================================================== -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><title>Absolute Java</title>
<meta http-equiv="Content-type"
content='application/xhtml+xml;charset=utf-8'/>
<style type='text/css'>
p.fred {
color: red;
border-width: 15px; /* ignored */
border: solid;
background-color: pink;
/* border: solid 15px red; /* this works! */
}
</style>
</head>


<body>
<p class='fred'>This is the first paragraph.</p>
</body>
</html>




--
Tony LaPaso


Tony LaPaso

2005-05-15, 4:18 am


Never mind... I see my error....


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews