Hi.  New guy here, just learning css.  I have many questions, but I'll start
small. :-)

To center an img using css, is it really necessary to do this?


p.largediagram { text-align:center; }

<p class="largediagram"><img src="diagram12.jpg" width="350"
height="200"></p>


I must be missing something.  What I want to do is to use css to define how
an img described as class "largediagram" should be displayed (i.e. centered
and with some margins), which seems to be in the spirit of good structural
markup... but I can't seem to do it.  I can't float="center", and there's no
img align attributes permitted in strict HTML 4.01... I'm stumped...

Thanks in advance.

Regards,
Paul


-- 
Paul Ingraham, Registered Massage Therapist
604-782-4321 or http://www.vancouvermassage.ca

massage and exercise therapy for people who want to get better and better...



 

*****************************************************
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