W3C SAMPLE :
img class="centeredPIC"
IMG.centeredPIC { display: block; margin-left: auto; margin-right: auto }
FINAL:
#flkr-cntrPIC{ display: block; margin-left: auto; margin-right: auto; float: center; padding: 5px; margin-bottom: 8px; border: 1px solid #ccc;}
References:
Web Publishing Secrets - Zeldman [written 10 days before 9/11]
Centering Images is harder than you think [2004/09]
W3C section on centering [lu 2007/01/15]
Wednesday, February 14, 2007
center img
Folksonomy:
CSS,
div,
divs,
HTML,
images,
img,
overlapping,
validation,
web standards,
zeldman
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment