Dana Kowalski wrote:
> Sandra,
>  look at the actual code on the page. It references ID's multiple times.

Yeah the main offender seems to be the id categories.
e.g. <div id="categories" class="widget_style1">

As already mentioned, just make it a class, but first things first.
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.buickpartspage.com%2F

Some of those errors are due to the two opening head tags, and it is 
precisely this that needs sorted out if you ever want consistent 
cross-browser rendering.

Don't use javascript to serve different style sheets. Again, as Sandra 
mentioned, you can use conditional comments to give IE what it needs. So 
the following...

<script language="JavaScript" type="text/javascript"><!--
if  ((navigator.appName == "Microsoft Internet Explorer") && 
(navigator.userAgent.indexOf ("Opera") == -1))  {
        document.write ('<link href="style_ie.css" rel="stylesheet" 
type="text/css" media="screen" />');
};
//--></script>

....should be changed to

<!--[if IE]>
<link href="style_ie.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->

Conditional comments were designed for exactly this sort of thing, so 
use them!

Next, don't use underscores in class and ID names.
http://developer.mozilla.org/en/docs/Underscores_in_class_and_ID_Names

I'm with Sandra on the recommendation of a strict doctype, whether that 
be html 4 or xhtml 1. If you're not experienced with CSS layouts, it's 
better to avoid the possibility of Mozilla's "almost standards mode" 
which will likely just create confusion.

Lastly, as a slightly picky side note, try and use semantic names for 
your classes and IDs.
http://www.w3.org/QA/Tips/goodclassnames

Example; <h2 class="h2"> could be changed to something like <h2 
class="cathead"> and the wrapper for this removed.

BTW, despite all the errors, the page actually displays quite well in 
IE6 on Win2k and IE7 on XP Pro, and looks good visually (although the 
fonts are a little tiny and hard to read, at least for my blind eyes).

HTH
Mark

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273242
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to