[Typo3] Workaround for :first-child and :last-child in menus

Jakob Brynte jakob.brynte at telecraft.se
Wed Mar 2 20:32:54 CET 2005


I've seen a solution for this using stdWrap something like this:

    1.ACT = 1
    1.ACT{
      ATagParams = class="first" |*| class="in_between" |*| class="last" 
style="margin-bottom:0px;"
   }

This was on TMENU but I asume it would work for any menu.

/Jakob

"Brian Nørremark" <brian at noerremark.dk> wrote in message 
news:mailman.372.1109784707.22405.typo3-english at lists.netfielders.de...
Hey,

The graphics-guy designed this very nice design, with rounded menus and
everything - he made a workaround because IE don´t support :first-child and
:last-child, so a example of the menu would be:

<ul>
  <li id="first">Example</li>
  <li>Example</li>
  <li id="active">Example</li>
  <li>Example</li>
  <li id="last">Example</li>
</ul>

The graphics-guy ain't that happy about Typo3, so I'm having a hard time
proving that Typo can do whatever he wants it to.

How do I implement this in Typo3? Is the sollution some dirty
JavaScript-hack? (http://dean.edwards.name/IE7/)

-- Brian





More information about the TYPO3-english mailing list