Prev | Current Page 437 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"

If you create a site with scrollable areas,
ensure users can access the content within, even if browser settings aren??™t at their
defaults. Problems mostly occur when overflow is set to hidden. Similarly,
textarea elements that don??™t have properly marked-up cols and rows settings
will often be tiny when viewed without CSS (these attributes are functional as well
as presentational). The same is true for text input fields without a defined size
attribute.
Dead links: These can take on many forms, such as a link to another page being
dead, an image not showing up, or external documents not being accessible by the
web page. If a JavaScript function isn??™t working for some reason, try checking to see
whether you??™ve actually linked it??”in some cases, the simpler and most obvious
errors are the ones that slip through the net. Also, if things aren??™t working on a live
site, check the paths??”you may have accidentally created a direct link to a file on
your local machine, which obviously won??™t be accessible to the entire Internet.
Spaces within href values or the original file names can also be accidentally overlooked.
Whitespace errors: In CSS, do not place whitespace between class/id indicators and
the selector name, or between numerals and units for measurements. However, do
not omit whitespace from between contextual selectors, otherwise you??™ll ???combine???
them into a new, probably unknown, one.
Using multiple units: In CSS, a value can only accept a single unit??”the likes of
50%px can cause a rule to partially or wholly fail.


Pages:
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449