straightryder Posted January 12, 2010 Report Posted January 12, 2010 example 1: HTML CosmoFarmer’s Guide to Apartment Lawn Maintenance Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut.. blah blah blah... CSS img.figure { float:right; margin-left:10px; margin-bottom:10px; border:1px solid #666; padding:10px; } ********************************** example 2: HTML THE CAST BIO'S CosmoFarmer’s Guide to Apartment Lawn Maintenance s Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut.. blah blah blah... CSS .cast_pics img { border:thin solid #fff; margin-right:10px; } Which one is the right way to go? Quote
jlhaslip Posted January 12, 2010 Report Posted January 12, 2010 what does the validator say? http://validator.w3.org/ Quote
administrator Posted January 12, 2010 Report Posted January 12, 2010 Go with the first one as there is no point in having a tag wrapped around the image. The less markup (HTML) you can have in your pages the better. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.