Skip to content

HTML5 Master Stylesheet (XHTML syntax with indenting) for Symphony CMS

Notifications You must be signed in to change notification settings

MST-SymphonyCMS/html5masterxslt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

A master stylesheet starting point based on the discussion in XSLT and HTML5 and what might be thought of as current best practices for handling non-JavaScript browsers and Internet Explorer CSS rendering bugs.

It is intended for use in conjunction with the html5_doctype Symphony extension and the Modernizr JavaScript library.

A comprehensive range of Internet Explorer version-specific classes is available on the html tag for CSS styling without loading of separate CSS files.

Necessary steps

html5_doctype Symphony extension

Install and enable the html5_doctype Symphony extension, which replaces the XHTML output in the first few lines of your document with HTML5 equivalents.

Modernizr

Download your modernizr.js file and place it into workspace/scripts

Modernizr changes the "no-js" class of the html tag to "js" if the visiting browser is using JavaScript, allowing you to write CSS specific to visitors with and without JavaScript.

It also makes Internet Explorer render and style the new HTML5 elements (assuming JavaScript is enabled in the visitor's browser).

Releases

No releases published

Packages

No packages published