[TYPO3-english] Different classes per item on menu

Xavier Perseguers xavier at typo3.org
Tue Aug 9 20:29:23 CEST 2011

Hi Ernesto,

> I'm using the 960 grid system CSS framework (http://960.gs) for
> content positioning. So, how can I add different classes to every item
> on a menu?.
> What I need is to create an structure like this:
> <ul>
> <li class="grid_4">Item 1</li>
> <li class="grid_5">Item 2</li>
> <li class="grid_6">Item 3</li>
> <li class="grid_4">Item 4</li>
> <li class="grid_2">Item 5</li>
> </ul>

What is not clear is why you have twice the grid_4 item. How is the 
grid_# defined?

If you can freely choose it, you could easily use the uid of the page 
within the HTML class name. See GetText [1].



[1] http://wiki.typo3.org/wiki/TSref/getText

Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

More information about the TYPO3-english mailing list