Reply to Re: Ignoring a Stylesheet

Your name:

Reply:


Posted by Spartanicus on 10/23/24 11:17

"Lee Marsh" <burgermeister01@fake.com> wrote:

>> Image dimensions should be specified via html attributes, not via an
>> optional component such as CSS.

>Well, in this case the spreadsheet would fail 'gracefully' but yes, I see
>what you mean.

The function provided by supplying image dimensions to a browser before
the images have been downloaded has no fall back, there is no graceful
fail.

Providing image dimensions beforehand allows a browser to layout a page
before the actual images have been downloaded. Without knowing the image
dimensions a browser would have to reflow the layout as the dimensions
of each image becomes clear after each single image has downloaded.

>> Often also applies to other seemingly presentational data like valign on
>> a data table. Your markup should work without CSS.

>I'm kind of new with using CSS for anything more than managing fonts and
>color schemes, so this raises a question in my mind: is the same true of CSS
>and page layout? Because it seems like everyone agrees that CSS is ideal for
>page layout, so does that not fall under the classification of
>'presentational data', or are you supposed to still have another means to
>display a page if a visitor doesnt support CSS?

Layout should be presentational, if it's provided via css and the css
isn't used for some reason then nothing essential should be lost.

As a quality check authors should switch off images, css, client side
scripting, java, plugins and other optional technologies, a page or site
should remain fully functional.

--
Spartanicus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация