Troy Piggins wrote :
Quote:
How do you center images within a <div> - or any other element
for that matter? |
Interactive demo on CSS horizontal alignment and horizontal formating
CSS Horizontal alignment:
when to use margin-left, margin-right and when to use text-align
http://www.gtalbot.org/NvuSection/Nv...Alignment.html
If I try
Margin use will align accordingly a block-level element within its
containing parent; it will not align its inline element children. You
need to use text-align for this.
Quote:
it's only the left hand side of the image that is on the
centerline, not the center of the image.
margin-left: 50%;
margin-right: 50%;
I thought this may do it, but still same problem. |
"The [text-align] property describes how text (and inline elements) is
aligned within the element."
CSS 1 text-align property
http://www.w3.org/TR/CSS1#text-align
Gérard
--
remove blah to email me