Home › Forums › CSS › New to CSS. Anyone want to see mt first attempt :) › Re: New to CSS. Anyone want to see mt first attempt :)
June 27, 2011 at 7:38 am
#82341
jamygolden
Member
I think you should use ID’s wherever possible instead of classes, however, IDs should only be used once per page. As far as I know, javascript and CSS render IDs faster than classes. Also, try and keep you CSS selectors as precise as possible, eg: ‘a’ or ‘#menu a{}’, instead of ‘html body #content ul#menu li a{}’
I would do it like this:
CSS
HTML
Regarding the background-size and doctype, I’m not sure. Try using this doctype instead:
As for the map. It’s way off :p I’m in South Africa and it was showing a map of Los Altos.