On Wed, Aug 5, 2009 at 3:09 PM, OrientSee <[email protected]> wrote:
> Sorry for this. How do I center text beneath an image?
>
I'd simply use text-align: center on the image + text div.
<div style="text-align: center">
<img src="" alt="" />
text
</div>
Another (and better) solution is to wrap the text in a p.legend with
text-align: center. In HTML5 you will be able to use a dedicated tag instead
of p.legend, but it is completely unusable for now. The following code will
work now and later though:
<div>
<img src="" alt="" />
<p class="legend">
text
</p>
</div>
--
Goulven Champenois
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Blueprint CSS" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/blueprintcss?hl=en
-~----------~----~----~----~------~----~------~--~---