|
|||
Menüpunkt-Markierung per css steuern
Hallo Freunde,
ich habe ein Problem und ich versuch das mal verständlich auszudrücken. Vielleicht hat jemand eine Idee. Ich habe in Joomla 1.5 ein Listenmenüe erstellt und im css ein current eingefügt. Das sieht dann so aus: ----------------------------------------------------- ul{ list-style:none; color: #666666; } ol{ margin-left:25px; color: #666666; } ul li{ padding:13px 0 3px 2px; line-height: 0.9; margin:0; color: #666666; text-decoration: none; }li#current a { text-decoration: none; color: #666666; font-weight: bold; background-repeat: no-repeat; } li#current li a { font-weight: normal; background-image: none; } --------------------------------------------------- Das funktioniert auch prima. Im Joomla habe ich nun in einer Unterseite eine Verlinkung programmiert. Nun möchte ich, wenn die Unterseite geöffnet wird, den Hauptlistenpunkt (wie im oben angegebenen css) markiert haben. Kann ich das im css umsetzen? Also quasi dem css sagen, bei Aufruf der Seite: http://www.BLABLABLA.de/Seite/index.php?option=com_content&view=article&id=61&It emid=76 soll er bitte den Link auf Seite http://www.BLABLABLA.de/Seite2/index.php?option=com_content&view=article&id=61&It emid=76 markieren? Ich hoffe, Ihr versteht, was ich meine. |
Sponsored Links |
|
|||
Zitat:
Vielleicht geht ja was anderes. Aber wer weiß das schon ohne Link zum Problem.
__________________
Corina Rudel Online-Einsteigerkurs HTML/CSS | Buch: Fortgeschrittene CSS-Techniken |
|
|||
Zitat:
Case Studies |
|
|||
Der übergeordnete Listenpunkt hat die Klasse active. Damit kannst du deinen Link selektieren.
__________________
Corina Rudel Online-Einsteigerkurs HTML/CSS | Buch: Fortgeschrittene CSS-Techniken |
|
|||
Zitat:
müsste das css nun so aussehen?: ----------------------------------------------------------- ul{ list-style:none; color: #666666; } ol{ margin-left:25px; color: #666666; } ul li{ padding:13px 0 3px 2px; line-height: 0.9; margin:0; color: #666666; text-decoration: none; }li#current a { text-decoration: none; color: #666666; font-weight: bold; background-repeat: no-repeat; }li#active a { text-decoration: none; color: #666666; font-weight: bold; } li#current li a { font-weight: normal; background-image: none; } ---------------------------------------------------- |
|
|||
Nein. Es gibt keine ID active in deinem HTML. Nur Klassen.
Du brauchst wohl Grundlagenlektüre: 6. Selektoren, Einheiten und Farben - Little Boxes - Webseiten gestalten mit HTML und CSS edit: Ich sehe gerade, dass das nicht dein erster derartiger Thread ist. Naja, so ist das halt, wenn man fertigen Code geschenkt bekommt. Man lernt nichts dabei.
__________________
Corina Rudel Online-Einsteigerkurs HTML/CSS | Buch: Fortgeschrittene CSS-Techniken |
|
|||
Zitat:
|
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Frames per css, wie ansprechen | zwockicss | CSS | 3 | 01.04.2008 15:29 |
Design Wahl per CSS?? | CReal | Knowledge Base | 32 | 16.08.2006 10:48 |
"Fusszeile" per CSS? | derSESO | CSS | 3 | 02.02.2005 00:44 |
per css font laden | makese | CSS | 5 | 30.01.2005 00:34 |
img alt tag über css steuern?? | biki | CSS | 1 | 12.09.2003 19:47 |