Re: [css-d] Sarari Problem?

2008-10-17 Thread Dave Pierce
On Oct 17, 2008, at 8:24 AM, Dave Pierce wrote:


 Aforementioned client got in touch, and a web site they have has
 gotten messed up somehow, and nobody knows why...including me.
 The HTML is good, except in the Flash insert section, and the CSS is
 OK too, except where there's no colors given, or they are set for
 transparent. Not my problem, in this case, let their graphics guy
 handle it.

 The problem is that the three lists at the bottom don't line up in
 Safari. They DO line up in Firefox and Opera. Haven't checked 'em in
 IE versions yet.

 Anyone out there see what may be going on?

 http://www.lorettoheritage.org/



 This is causing the problem
 *html #left p, #right p, #main p {padding-top: 1em;}

 Safari, up to v3.1 parses the above as
 * html #left p, #right p, #main p {}
 (Note the space between the * and html).
 It then applies the padding on #right p, #main p.

 That parse error is apparently corrected in recent WebKit nightly  
 builds

 Other browsers ignore the whole selector, *html not being part of the
 namespace used.

 No idea what your intention is with that selector, probably some sort
 of hack.



Phillipe,

Thank you for the assistance. It worked great (of course!)

Yeah, that was the Tan hack from a-way back. That was also the first  
CSS driven
layout attempt I ever made. Hopefully, I won't have to go back to that
one again. I found stuff in that site that was so bad I couldn't  
believe that
the page worked at all! But it worked until the most recent release of
Safari.

Best Regards,
Dave
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Sarari Problem?

2008-10-17 Thread Philippe Wittenbergh

On Oct 18, 2008, at 1:52 AM, Dave Pierce wrote:

 *html #left p, #right p, #main p {padding-top: 1em;}
 ...

 ...

 Yeah, that was the Tan hack from a-way back


The Tan hack:
* html selector {}

What you had in your stylesheet:

*html selector {}

Note the lack of a space between the * (universal selector) and the  
html in what you use(d).

The difference is very important. *html is just a bogus selector (an  
element that does not exist), * html selects an html element, child of  
any other element (equally bogus within the html world, as the html  
element is the root of the document and doesn't have any parent,  
although IE 6, and IE 7,8 in Quirks mode, thinks there is one).


Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/