G'day

> That's what I intended of course, but I wasn't sure how to 
> get the text underneath the image. Am I really allowed a 
> <br/> then?  Isn't that considered 'presentational?

Matter of opinion, but I do use br elements for this purpose and I can still
sleep at night.  If nothing else, it separates the image's alt text from the
caption (in non graphical browsers).  If you don't like the br in there, you
could set the image to display:block and if you want the text centered, put
text-align:center on the div.

Using the earlier example (though the class name sounds presentational to
me):

xHTML:

<div class="imgleft"><img />caption text</div>

CSS:

div.imgleft {
  width: 200px; /* or whatever is appropriate */
  float:left;
  text-align:center;
}
div.imgleft img { display:block; }

Regards
--
Bert Doorn, Web Developer
Better Web Design
www.betterwebdesign.com.au


******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to