Click to See Complete Forum and Search --> : Horizontal Rule that Validates
Farland
07-20-2007, 10:27 AM
So how does one do a horizontal rule that validates in XHTML 1.0 Transitional?
My code now is:
<HR width="90%" margin: 0 auto 0 auto />
The validator hates it. :)
<hr style="width:90%; margin: 0 auto;" />
http://www.yourhtmlsource.com/accessibility/xhtmlexplained.html
Farland
07-20-2007, 01:14 PM
Could it have been as easy as:
<hr width="90%" align="center" />
Apparently it could! :)
Now here's my next validation question.
I had to insert zoom:1 into a div to correct a problem with IE6.
But now my CSS doesn't validate for one reason:
Property zoom doesn't exist : 1
Is there an easy way to correct this?
http://www.satzansatz.de/cssd/onhavinglayout.html
Major Payne
07-21-2007, 01:00 AM
It will still use JS to work in IE, but the code is much less then before.
Ron
felgall
07-21-2007, 03:04 AM
Could it have been as easy as:
<hr width="90%" align="center" />
Apparently it could! :)
Yes but TRANSITIONAL is for antiquated web pages that you don't have time to fix or where you have hundreds of web pages using a template that would all need updating. For new pages and for changes to old pages you can use the version of the code that will pass as STRICT so that there will be one less antiquated statement to update when browsers stop supporting deprecated code.
Future browsers will continue to support
<hr style="width:90%; margin: 0 auto;" />
both align and width attributes will be gone within a few more browser versions.