|
Posted by Will S on 06/28/05 13:11
"Dan" <dan@tobias.name> wrote in message
news:1119893917.010450.75890@g47g2000cwa.googlegroups.com...
> Will S wrote:
>> Now I am putting images instead of txt ie <H1> Image file</H1>
>>
>> Is this legal ?
>
> You won't be sent to jail for doing it. It won't even stop your HTML
> from validating, if your image element has the required ALT attribute.
> However, it may or may not be good logical structure, depending on
> whether the content of the image (and its ALT attribute value) is
> actually a first-level header for your document. If your intent is
> merely to cause the images to be centered, but they're not headers,
> then you'd be better off defining a class for that purpose in your
> stylesheet, and then using a class attribute in a div element
> surrounding the content you wish to center.
>
I am new to style sheets. So I give all the images that I want centred the
same ID and then put that ID in style sheets as centred ?
Navigation:
[Reply to this message]
|