|
Posted by Spartanicus on 10/16/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
Navigation:
[Reply to this message]
|