On 2/10/07, Pierre-Henri Lavigne <[EMAIL PROTECTED]> wrote:
Ok at my work I joined last october they used to work with ie hacks such
as _
In their specifications, they are releasing only valid html code and not
css, and I am trying to release valid css stylesheets too, (Boum) I
still used tantek hack for example with voice-family. And for various
reasons, they don't like it. For maintaining they don't want to use ie
conditional stylesheets for example and want everything in one stylesheet.
So everyone think about it, decided to upgrade it progressivly to try
finding new stuffs.
First initiative came from a colleague who suggest for width and height
properties :
width: 980px !important; /* standard loving browser */
width: 952px; /* IE5 */
width /**/ : /**/ 962px; /* IE6 */
What do you think about it ? Is it a method already used on the web ?
Are you putting all the browsers in standards mode with a proper
doctype (HTML 4.01 Strict, XHTML 1.0 Strict)? If you do, you will
probably need less hacks, since the box model will at least be the
same across browsers. As for that hack, I haven't seen that last line
in use before.
My other question is different and was about the selector >. I am using
html>body #container for example.
On the source from webstandardsawards.com they are using body>#container.
I suppose it is ok 'cause IE 6 won't understand it, but was it tested in
depth ?
I find that the > selector is about all I have to use to cater to
older browsers, including IE 5 Win/Mac and IE 6. html>body is the
easiest thing since you never know if someone might wrap another div
around #container.
--
--
Christian Montoya
christianmontoya.net .. designtocss.com
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************