Mathias P.W Nilsson schrieb:
Hi!

I have troubles creating a css menu with wicket and css.

I'm using the RepeatingView in Wicket for the UL, LI list. But the UL and LI
needs some extra tweek for IE.
I need to do something like this for it to render properly. How can I
integrate this with wicket?


<!--[if lte IE 6]><table><tr><td><![endif]--><ul>
<li> #nogo SubMenu<!--[if gte IE 7]><!--> <!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]--><ul>
<li> # 1 </li>
<li> # 2 </li>
<li> # 3 </li>
<li> # 4 </li>
</ul><!--[if lte IE 6]></td></tr></table> <![endif]-->
</li>

Hi,

you could put a WebMarkupContainer around your table code, find out which user-agent is active (request.getHeader("User_Agent") and set this WMC visible if the user agent is IE 6 (or whatever request.getHeader returns when an IE6 is used).

I personally would rather use different CSS to fix the layout for IE (6|7|whatever). Why not just forget the table-code, put a <div>-Tag around your <ul>...</ul>, put an id="" or a class="" on the <div> and layout everything inside this <div> via CSS? Since we're talking about a menu even absolute positioning could be an option. Not much hassle even for IE ;) ...

HTH
Tom

--
Thomas Gier

FACT GmbH
Theaterstr. 13
52062 Aachen

Tel. +49-241-900 89-21
Fax +49-241-900 89-19

[EMAIL PROTECTED]
www.FactScience.de

FactScience: System-Lösungen für Forschung - Lehre - Administration
_________________________________________________________________________________________________________

FACT Faculty Consulting GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 
90089-0 ; Fax +49 241 90089-19
Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321

Geschäftsführer:
Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R.
Dipl.-Ing. Daniel Müllers SAE
Dipl.-Math. Armin Priggen

_________________________________________________________________________________________________________

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to