On Feb 19, 10:03 am, Michael Peters <[EMAIL PROTECTED]> wrote:
> Marius Feraru wrote:
[...]
> > ^ You DON'T have _the_same_ DOM structure in those two files.
> > The first one has SPANs containing words whereas test2's SPANs contain words
> > padded with whitespace.
>
> > e.g.: 'lorem' vs ' lorem '
>
> Thanks for pointing that. So adding a ' ' to the beginning of the span fixes 
> it.
> Just out of curiosity, is this how it's supposed to work? Why wouldn't the
> browser break the text between <span> tags?

Because HTML markup itself doesn't have any effect on presentation.
Browsers will (normally) only wrap based on whitespace, span elements
aren't whitespace.

Further, span elements are inline elements that have no specific
presentation idiom, they are designed to have no effect at all on
presentation.  Any effect you want them to have you must add yourself
as attributes of the element or elements within it.

You will probably get a much better answer from an HTML group, try:

news:comp.infosystems.www.authoring.html
<URL: http://groups.google.com/group/comp.infosystems.www.authoring.html/topics
>


--
Rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to