[Seaside] #updateRoot: and "if ie6 do:"
Philippe Marschall
philippe.marschall at gmail.com
Thu Oct 18 09:29:36 UTC 2007
2007/10/18, John Thornborrow <john at pinesoft.co.uk>:
> Hello,
>
> I've been using #updateRoot: to add an "if ie6 do:" block to my site to
> apply style changes, but instead of IE6 rendering the style as style, it
> is showing as plain text.
>
> Here is an example of usage:
>
> updateRoot: aRoot
> aRoot if ie6 do: [
> aRoot stylesheet add: 'body { margin: 0pt; padding: 0pt; }'
> ]
>
> but as this screenshot shows, it is not as expected:
> http://img99.imageshack.us/my.php?image=seasideie6yx2.png.
>
> The source is a link:
>
> <!--[if IE 6]><link rel="stylesheet" type="text/css">body { margin: 0pt;
> padding: 0pt; }</link><![endif]-->
>
> Is there something I should add to prevent it from showing?
Ideally you would add a semicolon behind ie6 and also send to super
but this should affect the output. If you leave out the whole
conditional comment and just do:
aRoot stylesheet add: 'body { margin: 0pt; padding: 0pt; }'
does it still display the css?
Cheers
Philippe
> Thanks,
> John
>
>
> Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the seaside
mailing list