HTML and CSS Reference
In-Depth Information
The type of content appearing on the site will weigh heavily on the
appropriateness of a reset. A text-heavy site such as a blog may want
to leave more of the browser styling intact, while an application or
e-commerce site that relies on smaller content elements may want to be
more controlled. Ultimately, the choice to zero out styles at the begin-
ning of a project's code is one of taste and how you prefer to work rather
than one of purely technical merit.
Cross-Browser CSS via JavaScript
You can use a CSS reset to create an even starting point for styling
individual page elements. But they don't create that same level ground
for browsers' support for newer selectors and CSS properties. A drop-in
JavaScript bridge library may be a convenient way to bridge the gaps in
CSS support so that older browsers function like more recent browsers.
When the included library loads, it will typically test the browser's
support against a list of CSS features. If a feature is supported, the script
will do nothing. However, for those unsupported features, it will comb
the style sheet code for their use and then attempt to replicate the
behavior of the unsupported CSS through scripting.
You can use JavaScript to check for all CSS 2.1 or CSS3 features missing
in a browser, and other libraries are written to target specific gaps in
support.
Common Bridge Libraries
There are many JavaScript bridge libraries available to use on your proj-
ects, each approaching the task of extending support for the CSS code
you've written in different ways.
 
 
 
Search WWH ::




Custom Search