The preferred way would be via conditional comments in your document header.

http://www.quirksmode.org/css/condcom.html
http://msdn.microsoft.com/en-us/library/ms537512.aspx

There are probably browser hacks that would work as well, but if you've
used hacks in the past you've probably learned why not to use them by now.

chris

Angelo Chen wrote:
> hi Tomasz,
>
> This works, thanks. however, the its effect is, look just right in IE7 but
> shift too much to the right in other browsers, any idea how to make this
> works only in IE7?
>
> Angelo
>
> Tomasz Dziurko wrote:
>   
>> Override T5 default css file.
>>
>> Put this in every your page class or (better solution) in TopPage from
>> all pages inherits. Just remember not to place TopPage in pages
>> package, so it won't be accessible to user (e.g. place it in package
>> org.myapp.commons).
>>
>> @Inject
>> @Path("context:styles/style.css")
>> private Asset styles;
>>
>> public Asset getStyles() {
>>     return styles;
>> }
>>
>> and in file style.css place:
>>
>> html > body div.t-error li
>> {
>>     margin-left: 20px;
>> }
>>
>> In this file you can everride all default styles from Tapestry.
>>
>> Regards
>> -- 
>> Tomasz Dziurko
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>     
>
>   

-- 
http://thegodcode.net

Reply via email to