Click to See Complete Forum and Search --> : Is this code correct?
sk8rgui
12-15-2007, 01:12 AM
Hi I was wondering if anyone would mind checking my code to see if it is correct. I am teaching myself css.
I used the center tag instead of a container or wrapper div. I could not get them to work.
Thanks for the help
Use elm {width:500px; margin:0 auto;} to center, the width is also required.
As for the rest, you page has no content and if you do add any content the layout will break. Avoid using absolute positioning.
None of the <div>s are necessary, apply the id to the images or anchors.
WebJoel
12-15-2007, 08:40 AM
Use elm {width:500px; margin:0 auto;} to center, the width is also required.... elm? Typo? :confused:
elm? Typo? :confused:
Just a generic selector
sk8rgui
12-15-2007, 05:49 PM
Thanks for the info. Will that work with my current layout. The site is www.nathancowen.com. Also does anyone know why I get a bluebox on a link on my graphics.html and video.html pages? Thanks for all the help
a img {border:0;}
http://www.w3.org/TR/WCAG10-TECHS/#tech-text-equivalent
sk8rgui
12-16-2007, 08:55 PM
Thanks, that helped fix the bluebox i had around my link.