Hallo zusammen,
ich versuche ein horizontales Menü mittel gmenu_layers zu erstellen.
Der Seitenaufbau sieht folgendermaßen aus:
Bild: img163.imageshack.us/…/testw.jpg
Innerhalb des ###mytrailer### Parts befindet sich ein Hintergrundbild incl. Logo (das Logo ist dementsprechend links oben).
Das Menü soll an der blau gekennzeichneten Stelle stehen (also rechts im ###mytrailer### Part).
Falls auf ein Menüpunkt mit Unterpunkten geklickt wird, soll das graue Menü der 2.ten Ebene ausklappen.
Mein Problem:
Das Menü habe ich soweit hinbekommen, jedoch lässt es sich nicht an die gewünschte Stelle (RECHTS) positionieren 🙁 Es bleibt einfach immer links.
Hatte es schon mit float:right; und right:0px; versucht. Leider blieb das Menü entweder weiterhin links, oder die komplette Seite wurde rechts an den Browserrand gedrückt. Ich möchte die Seite gerne mit einer festen Breite von ca. 1000 Pixeln und daher auch zentriert.
Wäre super wenn mir jemand einen Tip geben könnte, mache daran mittlerweile schon ein paar Tage rum und finde keine Lösung.
Bin leider auch ein Anfänger was horizontale gmenu_layer Menüs angeht #paralyzed#
mytrailer = HMENU
mytrailer {
special = directory
special.value = 25
1 = GMENU_LAYERS
1 {
wrap=<table cellspacing="0" cellpadding="0"><tr>|</tr></table>
layerStyle =position:absolute;VISIBILITY:hidden;
xPosOffset = -30
lockPosition = y
expAll=1
leftOffset = 15
topOffset = 24
hideMenuWhenNotOver = 1
hideMenuTimer = 250
relativeToTriggerItem = 1
NO {
wrap=<td>|</td>
backColor = #061467
XY = 150, 22
10 = TEXT
10 {
text.field = title
offset = 5,15
fontColor = #FFFFFF
fontFile = fileadmin/fonts/arialbi.ttf
fontSize = 14
fontStyle = bold
niceText = 1
}
}
CUR = 1
CUR {
wrap=<td>|</td>
backColor = #364496
XY = 150, 22
10 = TEXT
10 {
text.field = title
offset = 5,15
fontColor = #FFFFFF
fontFile = fileadmin/fonts/arialbi.ttf
fontSize = 14
fontStyle = bold
niceText = 1
}
}
RO = 1
RO {
wrap=<td>|</td>
backColor = #364496
XY = 150, 22
10 = TEXT
10 {
text.field = title
offset = 5,15
fontColor = #FFFFFF
fontFile = fileadmin/fonts/arialbi.ttf
fontSize = 14
fontStyle = bold
niceText = 1
}
}
}
2 = GMENU
2 {
expAll=1
NO {
wrap=|<br />
backColor = #EEEEEE
XY = 130, 20
10 = TEXT
10 {
text.field = title
offset = 5,15
fontColor = #000000
fontFile = fileadmin/fonts/arialbi.ttf
fontSize = 12
niceText = 1
}
}
RO = 1
RO {
wrap=|<br />
backColor = #364496
XY = 130, 20
10 = TEXT
10 {
text.field = title
offset = 5,15
fontColor = #FFFFFF
fontFile = fileadmin/fonts/arialbi.ttf
fontSize = 12
niceText = 1
}
}
}
}
<html>
<head>
</head>
<body>
<!-- ###DOKUMENT### begin -->
<div id="container">
<div id="mytrailer">
###MY_TRAILER_RECHTS###
</div>
<div id="mycontent">
###MEIN_CONTENT###
</div>
<div id="footer">
###FOOTER###
</div>
</div>
<!-- ###DOKUMENT### end -->
</body>
</html>
body{
background-image: url(images/back_fond.gif);
}
div#container {
width:980px;
margin: 0 auto;
}
div#mytrailer {
width:980px;
background-image: url(images/back_header.png);
padding-top:37px;
}
div#mycontent {
height: 520px;
margin-top:20px;
margin-left:170px;
}
div#footer {
clear:both;
background-color:#000000;
color:#FFFFFF;
margin-top:-20px;
padding:2px;
}
Gruß
Kai