[Typo3] Adding the last line...

ben van 't ende [netcreators] ben at netcreators.nl
Tue Jul 19 22:48:29 CEST 2005


Jesper Weissglas wrote:
> I'm aiming for a nice GMENU looking approximately like this:
> 
> | ITEM1 | ITEM2 | ITEM3 |
> 
> The following code creates it beutifully, EXCEPT for the last vertical 
> line that I cannot figure how to create... Any help much appreciated!!!
> 
> /jesper
> 
> -------------------------------------
> temp.menu_1.1 = GMENU
> temp.menu_1.1.noBlur = 1
> temp.menu_1.1.wrap = <div id="menuline1"> | </div>
> temp.menu_1.1.NO {
>   XY = [10.w]+20,49
>   backColor = #98ACBA
>   transparentBackground = true
>   10 = TEXT
>   10.text.field = title
>   10.offset = 10,12
>   10.align = left
>   10.spacing = 0
>   10.fontFile = t3lib/fonts/Futura.ttf
>   10.fontSize = 14
>   10.fontColor = #002C3D
>   20 = BOX
>   20.dimensions = 0,1,1,12
>   20.color = #002C3D
> }


Hi Jesper,

You could use it like this:

	20.1 = TMENU
	20.1.NO.ATagParams = id="nav-start" || class="nav-normal"

The id="nav-start" (id, because there is only ONE ) is only for the 
first nav item. The rest has the class="nav-normal".

Stylesheet:

#nav-start {
	border-left: 1px solid black;
	}

.nav-normal {
	border-right: 1px solid black;
	}

You will have to add some padding and other properties to get the 
correct layout, but it is a wonderful VALID way to style your menu.

gRTz

ben
-- 
netcreators :: creation and innovation
www.netcreators.nl -  www.typo3.nl



More information about the TYPO3-english mailing list