On Fri, 14 Mar 2008, John wrote:

> This includes Google's front page: the list of selections at the top
> of the page are almost one continuous line. But the HTML seems to
> consist of <span></span>?

<span>...</span> marks up the contained region to give meaning
identified by attributes on the <span> element, which usually means
nothing unless CSS or JS is taken into account. For example, the CSS
might make the text italic or bold; consider the result if the <span>
elements were replaced by old tags like <i> or <b>. In Google's case,
each of the containers is separated by white space, so the page should
be rendered likewise.

Like DIV, SPAN is an essential part of HTML for CSS-implementing
browsers so NetSurf will already know all about it.

It's possible that the CSS is specifying absolute positioning for the
individual words, though I've not checked. That's one way in which
things might end up looking odd on RISC OS, since font sizes (in
particular, string widths rather than heights) often differ quite a lot
from those assumed by web developers.

-- 
TTFN, Andrew Hodgkinson
Find some electronic music at:         Rowing in Cambridge, UK? See:
http://pond.org.uk/music.html            http://nines.rowing.org.uk/


Reply via email to