Dropdown einbauen [gelöst ]

Ihr benötigt Hilfe oder habt Fragen bei der Erstellung eines eigenen Layouts oder kleinen Veränderungen am Standard Layout, dann ist dies das richtige Forum

Moderatoren: Magnus, mmaass, ablass

Dropdown einbauen [gelöst ]

Beitragvon Randshoprookie » Di 21. Mai 2013, 19:20

Hallöchen,

ich hab da mal ne Frage:

Ich möchte gerne ein Dropdown Menü einbauen, das ist jedoch in html und hat eine eigene CSS Struktur.

Bildschirmfoto 2013-05-21 um 20.15.56.png
Bildschirmfoto 2013-05-21 um 20.15.56.png (11.86 KiB) 6368-mal betrachtet


Jetzt habe ich das mal so in die Datei "verwendetes Template/Website/index.tpl eingebaut:
Code: Alles auswählen
<?php include(DATEIPFAD . "templates/test/website/ddwn.html"); ?>


das Problem ist, dass aber das css des Templates nicht mit benutzt wird, die Seite sieht so aus:

Bildschirmfoto 2013-05-21 um 20.33.44.png
Bildschirmfoto 2013-05-21 um 20.33.44.png (80.6 KiB) 6368-mal betrachtet


jetzt ist meine Frage:

muss ich das CSS auch noch mit "includen"?

das Menü was ich einbauen möchte sieht so aus:

http://www.aeon-online.de/aeonshop/temp ... nshow.html
Zuletzt geändert von Randshoprookie am Do 30. Mai 2013, 12:29, insgesamt 3-mal geändert.
https://www.aeon-online.de
Aktuelle Version: Randshop Version 2.4, Faktura, Seo und Admin Modul von Shopzeug, und einige Zeit der Anpassung
Randshoprookie
 
Beiträge: 1214
Registriert: So 22. Apr 2012, 07:40

Re: Dropdown einbauen

Beitragvon mmaass » Do 23. Mai 2013, 09:37

Die CSS Dateien werden wahrscheinlich in dem eigenen Dropdown HTML integriert, da müsste man die Pfade dann anpassen.

Aber ich schätze mal, dass da auch kompletter HTML Code mit bei ist, also header Informationen etc. Das ist ziemlich unsauber, dass dann einfach so zu includen.
Du müsstest eigentlich nur den Teil zwischen dem Body includen und den Rest raus werfen aus der Datei sowie dann im index.tpl Template die CSS Dateien und was da noch mit bei ist einfügen.
www.randshop.com
Entwicklung - Anpassung - Support
Benutzeravatar
mmaass
Admin
 
Beiträge: 5203
Registriert: Di 24. Aug 2004, 17:44
Wohnort: Berlin

Re: Dropdown einbauen

Beitragvon Randshoprookie » Do 30. Mai 2013, 12:02

Hallöchen,

Danke für den Tipp, habe den header weg gelassen,den CSS Pfad in der Index.tpl angegeben, hat geholfen soweit. :D

jetzt habe ich "nur" noch das Problem, dass die Artikelbilder und der Slider die Menüboxen überdeckt, wenn sich diese aufklappen.

Hat jemand eine Idee was ich versuchen kann um es zu ändern, also die Menüboxen in den Vordergrund zu bekommen?

hier ist ein Bild, wie das aussieht:

Bildschirmfoto 2013-05-30 um 13.47.29.jpg
Bildschirmfoto 2013-05-30 um 13.47.29.jpg (230.68 KiB) 6288-mal betrachtet


und so sieht der Quellcode der CSS Datei des Menüs aus:
Code: Alles auswählen
body, ul, li {
   font-size:14px;
   font-family:Arial, Helvetica, sans-serif;
   line-height:21px;
   text-align:left;
}

#menu { color: white; background: blue; list-style:none; width:940px; margin:30px auto 0; height:43px; padding:0 20px;

   /* Rounded Corners */
   
   -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px;

   /* Background color and gradients */
   
   position: absolute; top: 115px; border: solid 1px #002232; -moz-box-shadow:inset 0px 0px 1px #edf9ff; -webkit-box-shadow:inset 0px 0px 1px #edf9ff; box-shadow:inset 0px 0px 1px #edf9ff; }

#menu li {
   float:left;
   display:block;
   text-align:center;
   position:relative;
   padding: 4px 10px 4px 10px;
   margin-right:30px;
   margin-top:7px;
   border:none;
}

#menu li:hover { color: black; background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0 0; border: solid 1px #777777; padding: 4px 9px;
   
   /* Background color and gradients */
   
   -moz-border-radius: 5px 5px 0px 0px; -webkit-border-radius: 5px 5px 0px 0px; border-radius: 5px 5px 0px 0px; }

#menu li a {
   font-family:Arial, Helvetica, sans-serif;
   font-size:14px;
   color: #EEEEEE;
   display:block;
   outline:0;
   text-decoration:none;
   text-shadow: 1px 1px 1px #000;
}

#menu li:hover a {
   text-shadow: 1px 1px 1px #ffffff;
}
#menu li .drop {
   padding-right:21px;
   background:url("img/drop.png") no-repeat right 8px;
}
.nextebene { color: navy; background-color: aqua; list-style-position: outside; }
#menu li:hover .drop {
   background:url("img/drop.png") no-repeat right 7px;
}

.dropdown_1column,
.dropdown_2columns,
.dropdown_3columns,
.dropdown_4columns,
.dropdown_5columns { background-color: #f4f4f4; background-repeat: repeat; background-attachment: scroll; background-position: 0 0; margin:4px auto; float:left; position:absolute; left:-999em; /* Hides the drop down */
   text-align:left; padding:10px 5px; border-style: none solid solid; border-width: 1px; border-right-color: #777777; border-bottom-color: #777777; border-left-color: #777777; -moz-border-radius: 0px 5px 5px 5px; -webkit-border-radius: 0px 5px 5px 5px; border-radius: 0px 5px 5px 5px; }

.dropdown_1column {width: 140px;}
.dropdown_2columns { background-color: blue; width: 280px; }
.dropdown_3columns {width: 420px;}
.dropdown_4columns {width: 560px;}
.dropdown_5columns { width: 700px; list-style-position: outside; }

#menu li:hover .dropdown_1column,
#menu li:hover .dropdown_2columns,
#menu li:hover .dropdown_3columns,
#menu li:hover .dropdown_4columns,
#menu li:hover .dropdown_5columns {
   left:-1px;
   top:auto;
}

.col_1,
.col_2,
.col_3,
.col_4,
.col_5 {
   display:inline;
   float: left;
   position: relative;
   margin-left: 5px;
   margin-right: 5px;
}
.col_1 {width:130px;}
.col_2 {width:270px;}
.col_3 {width:410px;}
.col_4 {width:550px;}
.col_5 {width:690px;}

#menu .menu_right {
   float:right;
   margin-right:0px;
}
#menu li .align_right {
   /* Rounded Corners */
   -moz-border-radius: 5px 0px 5px 5px;
    -webkit-border-radius: 5px 0px 5px 5px;
    border-radius: 5px 0px 5px 5px;
}

#menu li:hover .align_right {
   left:auto;
   right:-1px;
   top:auto;
}

#menu p, #menu h2, #menu h3, #menu ul li {
   font-family:Arial, Helvetica, sans-serif;
   line-height:21px;
   font-size:12px;
   text-align:left;
}
#menu h2 { color: white; font-size:21px; margin:7px 0 14px; padding-bottom:14px; border-bottom:1px solid #666666; }
#menu h3 {
   font-size:14px;
   margin:7px 0 14px 0;
   padding-bottom:7px;
   border-bottom:1px solid #888888;
}
#menu p {
   line-height:18px;
   margin:0 0 10px 0;
}

#menu li:hover div a {
   font-size:12px;
   color:#015b86;
}
#menu li:hover div a:hover {
   color:#029feb;
}


.strong {
   font-weight:bold;
}
.italic {
   font-style:italic;
}

.imgshadow { /* Better style on light background */
   background:#FFFFFF;
   padding:4px;
   border:1px solid #777777;
   margin-top:5px;
   -moz-box-shadow:0px 0px 5px #666666;
   -webkit-box-shadow:0px 0px 5px #666666;
   box-shadow:0px 0px 5px #666666;
}
.img_left { /* Image sticks to the left */
   width:auto;
   float:left;
   margin:5px 15px 5px 5px;
}

#menu li .black_box {
   background-color:red;
   color: white;
   text-shadow: 1px 1px 1px #000;
   padding:4px 6px;

   /* Rounded Corners */
   -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;

   /* Shadow */
   -webkit-box-shadow:inset 0 0 3px #000000;
   -moz-box-shadow:inset 0 0 3px #000000;
   box-shadow:inset 0 0 3px #000000;
}

#menu li ul { padding:0; margin:0 0 12px; list-style-position: outside; }
#menu li ul li {
   font-size:12px;
   line-height:24px;
   position:relative;
   text-shadow: 1px 1px 1px #ffffff;
   padding:0;
   margin:0;
   float:none;
   text-align:left;
   width:130px;
}
#menu li ul li:hover { background:transparent; padding:0; margin:0; border-style: none; }

#menu li .greybox li { color: black; background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0 0; border:solid 1px #bbbbbb; margin:0 0 4px; padding:4px 6px; width:116px;

   /* Rounded Corners */
   -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px; }
#menu li .greybox li:hover { background:#ffffff; border:solid 1px #aaaaaa; padding:4px 6px; margin:0 0 4px; }


LG Piet
Zuletzt geändert von Randshoprookie am Do 30. Mai 2013, 13:19, insgesamt 1-mal geändert.
https://www.aeon-online.de
Aktuelle Version: Randshop Version 2.4, Faktura, Seo und Admin Modul von Shopzeug, und einige Zeit der Anpassung
Randshoprookie
 
Beiträge: 1214
Registriert: So 22. Apr 2012, 07:40

Re: Dropdown einbauen

Beitragvon Randshoprookie » Do 30. Mai 2013, 12:23

Hallöchen,

habe es selbst hin bekommen,

habe den Menüboxen den z-Index vergeben, jetzt geht es :D

im Quellcode dann so:

Code: Alles auswählen
 text-align:left; z-index:1000; padding:10px 5px; border-style:.....................


LG Piet
https://www.aeon-online.de
Aktuelle Version: Randshop Version 2.4, Faktura, Seo und Admin Modul von Shopzeug, und einige Zeit der Anpassung
Randshoprookie
 
Beiträge: 1214
Registriert: So 22. Apr 2012, 07:40


Zurück zu Designfragen

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 17 Gäste
cron