Goulven,

Oops! I should have been more clear. I was referring to whether to answer
your message with in-line or css styles. My intent was not to discuss xhmtl
vs html. Sometimes I know what I mean to say but I don't say it very
clearly.

I caught my oversight regarding the use of sibling elements,too, after the
fact. Thanks for correcting that point.

Norma

****************************


On Mon, Aug 10, 2009 at 4:53 PM, Goulven CHAMPENOIS <[email protected]>wrote:

> You didn't state whether you were using xhmtl or html. I use xhmtl so I'll
>> take a stab at this problem with css. I am sure others will have different
>> solutions.
>>
>
> I don't see your point: text-align works the same in XHTML or HTML. This is
> not the place for an XHTML vs HTML debate, but see
> http://webkit.org/blog/68/understanding-html-xml-and-xhtml/
>
> There are other ways but that depends on the layout of your page you might
>> try the following code only if you want all text under every image to be
>> centered.
>>
>> image + p {
>>    text-align:center;
>> }
>>
>
> Note that this won't center _all_ text under every image, only _paragraphs
> directly after_ an image. For example, the paragraph in <img /><p>... will
> be centered, but not <img /><br /><p>. And it won't work in IE6 (which
> doesn't have a clue what that + sign means).
>
> I forgot to mention, and you're right to point out, the text and image in
> the div should be display: block or separated by a <br /> (though that would
> be presentational markup, and less elegant than a <p>).
> --
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to