1 reply [Last post]
Danny
Offline
Regular
Last seen: 17 years 43 weeks ago
Joined: 2004-09-09
Posts: 13
Points: 0

I built a website for my brothers company, and when I try and use the "loose" W3C dtd, it screws up my layout.

Can anyone see if anything wrong with my layout that wouldnt allow me to validate my HTML?

Also is the scrollbar selectors in CSS valid?

body
{ 
.....
.....

scrollbar-track-color: #339966;
scrollbar-3dlight-color: #000000;
scrollbar-base-color: #33CC66;
scrollbar-highlight-color: #33CC66;
scrollbar-shadow-color: #33CC66;

.....
....
}

Is that valid to have in the body selector?

here is the link

Thank you for any help Laughing out loud

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 weeks 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

CSS/HTML validation help

Hi Danny,
Scroll bars styles are proprietary IE only, so not valid CSS.


It looks like your starting to move towards XHTML markup so I suggest you change the doctype to XHTML Transitional.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Then you need to specify character encoding like:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
You should also close of the meta tags and br's with />
Most of your other errors are missing alt tags in images. All the images should have an alt tag, you can use alt="" if the image is decoration only.

That should clear up most of your errors.