Previous Message
Next Message

Centering image h/v in *smaller* div

Sent by Nancy E. Sosna Bohm on 11 April 2008 16:04


> > Lisa Onizuka wrote:
> > ...you could achieve it this way:
> >
> ><div class="imagebox"
> >style="background:url('dynamically-generated-path.jpg') center center
> >no-repeat"> &nbsp; </div>
> 
> Martin wrote:
> ...but the thumbnails also need 
> to be clickable links 

You can put a one-pixel transparent gif in each div with the dimensions set
to the size of the divs, then wrap the gif in the link.

Nancy Sosna Bohm  

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: