mediengestalter.info
FAQ :: Mitgliederliste :: MGi Team

Willkommen auf dem Portal für Mediengestalter

Aktuelles Datum und Uhrzeit: Fr 19.04.2024 07:52 Benutzername: Passwort: Auto-Login

Thema: Hilfe bei CSS Menü vom 24.02.2009


Neues Thema eröffnen   Neue Antwort erstellen MGi Foren-Übersicht -> Allgemeines - Nonprint -> Hilfe bei CSS Menü
Autor Nachricht
postkomm
Threadersteller

Dabei seit: 13.05.2008
Ort: -
Alter: -
Geschlecht: -
Verfasst Di 24.02.2009 12:30
Titel

Hilfe bei CSS Menü

Antworten mit Zitat Zum Seitenanfang

Brauche Hilfe bei einem CSS Menü. Orginal Anleitung:
http://www.developertutorials.com/tutorials/css/overlapping-tabbed-navigation-in-css-7-11-19/page1.html

Diese Menü will ich für meine Grafiken umstricken, die etwas kleiner sein. Deshalb dachte ich einfach nachbauen, verkleinern und neue Werte der Matrix entnehmen. Irgendwie scheitere ich aber daran, dass ich die css Logik nicht ganz verstehe.
Frage: Wer kann helfen? Auf:

http://www.postkomm.de/cssmenue/

findet ihr den bisherigen Bearbeitungsstand




[edit by choise]
Verschoben von Programmierung nach Allgemeines - Nonprint.


Zuletzt bearbeitet von choise am Di 24.02.2009 12:59, insgesamt 1-mal bearbeitet
  View user's profile Private Nachricht senden
seal

Dabei seit: 31.07.2005
Ort: Pfalz
Alter: 41
Geschlecht: Männlich
Verfasst Di 24.02.2009 19:43
Titel

Antworten mit Zitat Zum Seitenanfang

Wo genau hast du denn Probleme?

Bei mir im Feuerfuchs funktioniert das Menü ...
  View user's profile Private Nachricht senden
Anzeige
Anzeige
DesignKater

Dabei seit: 26.06.2007
Ort: -
Alter: -
Geschlecht: -
Verfasst Mi 25.02.2009 10:19
Titel

Antworten mit Zitat Zum Seitenanfang

Bei mir funktioniert auf der ersten Seite auch noch alles wunderbar. Erst beim klick auf Folgeseiten fehlen die aktiven Hintergrundbilder und das Menü fängt an beim MouseOver zu springen.
  View user's profile Private Nachricht senden
Smooth-Graphics

Dabei seit: 22.05.2006
Ort: -
Alter: -
Geschlecht: Männlich
Verfasst Mi 25.02.2009 10:33
Titel

Antworten mit Zitat Zum Seitenanfang

Zeig doch bitte mal deinen entsprechenden CSS Code, den du umgeschrieben hast *zwinker*
Dann kann man dir viel besser helfen. Ich denke, es geht auch um das Problem, das DesignKater angesprochen hat?
  View user's profile Private Nachricht senden Website dieses Benutzers besuchen
postkomm
Threadersteller

Dabei seit: 13.05.2008
Ort: -
Alter: -
Geschlecht: -
Verfasst So 01.03.2009 18:09
Titel

Antworten mit Zitat Zum Seitenanfang

Das ist der CSS Code:
Code:
/*-----------------------------------------------------------------------------
Overlapping CSS Navigation
version:   1.0
date:      09/12/06
author:    george ornbo
email:     george at shapeshed dot com

Licensed under a 2.0 Creative Commons License

-----------------------------------------------------------------------------*/

*
   {
   border:0;
   margin:0;
   padding:0;
}

body
   {
   margin: 10px 0px 0px 10px;
   width:490px;
   font: 76%/150%  "Lucida Grande", "Trebuchet MS", Tahoma, Verdana, sans-serif;
   color:#000;
   text-align:left;
}

/*-----------------------------------------------------------------------------

Define the width of the nav div

-----------------------------------------------------------------------------*/

#nav
   {
   width:427px;
   height: 39px;
   }

   
#nav ul
   {
   list-style:none;
   width: 427px;
   height: 39px;
   }

#nav li
   {

    list-style: none;
   display: inline;
   text-align: center;
   }

#nav li a
   {
   text-decoration: none;
   display:block;
   float:left;   
   background: url(pix/all_states.png) no-repeat;
   text-indent:-9999px;
   }   
   
/*-----------------------------------------------------------------------------

Define the width of each li item. This is used as a letter box to show the
correct part of the background image

-----------------------------------------------------------------------------*/   
   
   
li#home a {
   width:117px;
   height:39px;
    }
li#about a {
   width:104px;
   height:39px;
    }
li#services a {
   width:101px;
   height:39px;
    }
li#contact a {
   width:103px;
   height:39px;
    }
   
/*-----------------------------------------------------------------------------

Position the background image within the left boxes we have created. Use hover states
to show the correct background position for hover states.

A negative margin is used to show the whole tab. As this doesn't work in IE a
separate stylesheet is used for IE6 and below.

-----------------------------------------------------------------------------*/   


li#home a:link, li#home a:visited {   
   background-position: -0px -0px;
   }
   
li#home a:hover, li#home a:focus {   
   background-position: -1px -39px;
   }
   
li#about a:link, li#about a:visited {   
   background-position: -117px 0px;
   }
   
li#about a:hover, li#about a:focus {   
   background-position: -89px -78px;
   width: 132px;
   margin-left: -28px;
   }   
   
li#services a:link, li#services a:visited {   
   background-position: -221px 0px;
   }
   
li#services a:hover, li#services a:focus {   
   background-position: -191px -78px;
   width: 131px;
   margin-left: -30px;
   }   
   
li#contact a:link, li#contact a:visited {   
   background-position: -321px 0px;
   }
   
li#contact a:hover, li#contact a:focus {   
   background-position: -293px -117px;
   width: 132px;
   margin-left: -28px;
   }

/*-----------------------------------------------------------------------------

Set the on states using the body id.

-----------------------------------------------------------------------------*/   

body#home-page li#home a:link, body#home-page li#home a:visited {   
   background-position: 0px 0px;
   }

body#home-page li#about a:hover, body#home-page li#about a:focus {   
   background-position: -89px -39px;
   width: 132px;
   margin-left: -28px;
   }
   

   

body#about-page li#about a:link, body#about-page li#about a:visited {   
   background-position: -89px -39px;
   width: 132px;
   margin-left: -28px;
   }

body#about-page li#home a:hover, body#about-page li#home a:focus {   
   background-position: -0px -0px;
   overflow: auto;
   position: relative;

   }

body#about-page li#services a:hover, body#about-page li#services a:focus {   
   background-position: -191px -156px;
   width: 131px;
   margin-left: -30px;

   }
   
body#services-page li#services a:link, body#services-page li#services a:visited {   
   background-position: -191px -200px;
   width: 131px;
   margin-left: -30px;
   }


body#services-page li#about a:hover, body#services-page li#about a:focus {   
   background-position: -89px -233px;
   width: 132px;
   margin-left: -28px;
   overflow: auto;
   position: relative;
   }
   
body#services-page li#contact a:hover, body#services-page li#contact a:focus {   
   background-position: -293px -266px;
   width: 132px;
   margin-left: -28px;
   position: relative;
   }
   
body#contact-page li#contact a:link, body#contact-page li#contact a:visited {   
   background-position: -293px -299px;
   width: 132px;
   margin-left: -28px;
   }

body#contact-page li#services a:hover, body#contact-page li#services a:focus {   
   background-position: -191px -332px;
   width: 131px;
   margin-left: -30px;
   overflow: auto;
    position: relative;
   }

body#contact-page li#blogs a:hover, body#contact-page li#blogs a:focus {   
   background-position: -400px -332px;
   width: 129px;
   margin-left: -25px;
   overflow: auto;
   position: relative;
   }


Sicherlich alles nur eine Frage der Positionierung. Aber wie?
  View user's profile Private Nachricht senden
 
Ähnliche Themen wie erstelle ich diesen menü effekt bzw. das gesammte menü?
CSS Menü - Finde nicht das richtige Menü
Pop up menü
CSS Menü
CSS-Menü
[help] Menü - IE
Neues Thema eröffnen   Neue Antwort erstellen
MGi Foren-Übersicht -> Allgemeines - Nonprint


Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst an Umfragen in diesem Forum nicht mitmachen.