The css stylesheets in JSPWiki mostly uses common css styling, usable
across most browser platforms.
Browser specific styles are avoided as much as possible.
However, in ''some'' cases, ie6/ie7 require specific treatment as
css-specs are not implemented always correctly.
Therefore, JSPWiki uses inline css-'hacks' to add specific ie6/ie7 rules.
For IE6 and lower:
/*ie6 hack*/
* html <css-selector> { <css-style defs> }
For IE7:
/*ie7 hack */
*:first-child+html <css-selector> { <css-style defs> }
(there are many more hacks, but these are the most simple and generic)
By using inline css browser-hacks, it's easy to see which style defs
are general and which need some browser tweeking. And it also keeps
maintenance easy.
dirk
On Sat, Sep 27, 2008 at 2:15 PM, Juan Pablo Santos RodrÃguez
<[EMAIL PROTECTED]> wrote:
> Hi Murray,
>
> as a side-note, while you're at conditional comments, you could also try
> ie7.js <http://code.google.com/p/ie7-js/> (MIT license), a javascript
> library to make IE more compliant browser, and allow png transparencies,
> might help you
>
>
> cheers,
> jp
>
>
> 2008/9/27 Murray Altheim <[EMAIL PROTECTED]>
>
>> Janne Jalkanen wrote:
>>
>>> For those trying to solve this same issue, here's the markup I
>>>> added near the end of commonheader.jsp:
>>>>
>>>> <!--[if IE]>
>>>> <link rel="stylesheet" type="text/css" media="screen,projection,print"
>>>> href="<wiki:Link format='url' templatefile='skins/' /><c:out
>>>> value='${prefs.SkinName}/skin_ie.css' />" />
>>>> <![endif]-->
>>>>
>>>
>>> This is the generally approved way of dealing with IE quirks :-/
>>>
>>> While this is not exactly JSPWiki-related, it is in the sense that
>>>> I believe we *used* to have an IE solution included in the default
>>>> template, and there may be people out there (like me) looking for
>>>> the solution.
>>>>
>>>
>>> Yes, we did, but it was a pain to maintain. Dirk did a commendable job in
>>> producing a CSS file which works both in IE and the rest of the world...
>>>
>>
>> Hi Janne,
>>
>> I'm not suggesting that we attempt to provide a loaded stylesheet
>> that attempts to mop up any problems with IE, but we could either
>> add a blank stylesheet with the IE hook, or at least document this
>> (apart from here on the mailing list). I've created a new page on
>> the jspwiki.org site:
>>
>> http://www.jspwiki.org/wiki/ConditionalComments
>>
>> I agree that Dirk's default stylesheet does work quite well across
>> browsers, but for those who aren't using the default stylesheet
>> they might find this as a reasonable solution. It kinda makes me
>> itch but I'm getting used to it.
>>
>> Thanks again to all who contributed information.
>>
>>
>> Murray
>>
>> ...........................................................................
>> Murray Altheim <murray07 at altheim.com> === =
>> =
>> http://www.altheim.com/murray/ = =
>> ===
>> SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = =
>>
>> Boundless wind and moon - the eye within eyes,
>> Inexhaustible heaven and earth - the light beyond light,
>> The willow dark, the flower bright - ten thousand houses,
>> Knock at any door - there's one who will respond.
>> -- The Blue Cliff Record
>>
>