Sent by Wes Carr on 3 August 2004 08:08
Terrence Wood wrote:
> try:
>
> <!-- HTML -->
> <div class="withimage">
> <img class="centered" />
> </div>
>
> /** CSS **/
> div.withimage {
> text-align:center;
> }
> img.centered {
> width: 100px; /* any value */
> height: 100px;
> background: #000;
> }
I wish it was that easy :) In my case there is other content that I do
not wanted center aligned but do want confined to the left and right
edge of the image. Please take a look at the original test page, and
you'll see that using a center alignment won't cut it. The purpose of my
design to center a floated div, not just to center an image.
Wes
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/