Ich benutze ein relativ einfaches Script als Bildergalerie.
Dieses:
- Code: Alles auswählen
.gallerycontainer{
position: relative;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
}
.thumbnail img{
border: 1px solid black;
margin: 0 5px 5px 10px;
}
.thumbnail:hover{
background-color: #D6D6D6;
}
.thumbnail:hover img{
border: 1px solid blue;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{ /*CSS for enlarged image*/
position: relative;
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
position: absolute;
top: 0;
left: 230px; /*position where enlarged image should offset horizontally */
z-index: 50;
}
</style>
#main {
position: absolute;
top: 0px;
left: 168px;
width: 857px;
background: url(../img/background.gif) repeat-y;
}
#footer {
background-color: #666;
}
.clear { clear:both; }
#navigation {
background-color: #660000;
width: 800px;
height: 30px;
float: right;
margin-top: 13px;
}
#navigation ul li {
display: inline;
top: 0px;
float: right;
}
#navigation ul li a {
font: Verdana, Arial, Helvetica, sans-serif;
color: #fff;
font-size: 12px;
font-weight: bold;
text-transform: none;
padding: 5px 8px;
text-decoration: none;
}
#navigation ul li.home a {
background: #520000;
-moz-border-radius: 10px;
-khtml-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#navigation ul li a:hover {
text-shadow: 1px 1px 1px #520000;
background: #520000;
-moz-border-radius: 10px;
-khtml-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: inset 0px 0px 2px #2c0306;
-khtml-box-shadow: inset 0px 0px 2px #2c0306;
-webkit-box-shadow: -1px -1px 2px #2c0306; /*-webkit- inset fix*/
box-shadow: inset 0px 0px 2px #2c0306;
color: #f6f6ee;
}
Eingebettet ist das ganze in Menü3 bei mir:
- Code: Alles auswählen
#menue3 {
position: absolute;
width: 560px;
height: 422px;
margin-bottom: 1px;
margin-left: 3px;
border-width: 1px;
border-color: #000;
border-style: solid;
background: transparent url(../image/menuekartenblatt.gif) repeat-y;
overflow-y: scroll;
overflow-x: visible;
}
Die Galierie zeigt links mehrere Bilder und rechts eine Vergrößerung des Bildes mit hover eben, also so lange man mit der Maus drüberfährt.
Ich habe mit overflow-y einen vertikalen Scrollbalken erzwungen was ja auch beabsichtigt ist.
Nur will ich das das Bild das aufpoppt rechts eben aus dem menue3 ausbricht, quasi drübergeht über seine Grenze, da es ansonsten zu einem horizontalen Scrollbalken kommt, und den will ich ja nicht.
Das Bild soll das div quasi überlappen.
Setze ich aber overflow: visible unter die scroll anweisung ist der vertikale Scrollbalken leider auch weg.
Ich kann euch leider kein Beispiel zeigen weil ich an der Page bastle und sie noch nicht online ist.
Ich hoffe ihr wisst was ich meine und könnt mir helfen.
danke.
mfg,
hasi87.


