Feste position der Taste in der Mitte der Festnetz-Seite

meine Seite hat ein großes div mit fester Breite, wie z.B.:

#index_body{
  width: 1010px;
  background-image: url('images/main_bg_dark.png'); 
  margin: auto;
  overflow: hidden;
  min-height: 50px;
  padding-bottom: 10px;
  border-radius: 7px;
  -moz-box-shadow: 0 5px 15px #000000;
  -webkit-box-shadow: 0 5px 15px #000000;
  box-shadow: 0 5px 15px #000000;
}

Möchte ich hinzufügen-Schaltfläche (20x20px) auf der rechten Seite der Seite (vertikal in der Mitte) - immer noch neben index_body.

So hat die Taste code wie folgt:

#butt {
  width:20px;
  height:20px;
  background: url('images/scrollUp.png');
  position:fixed;
  top:50%;
  left:WHAT SHOULD BE HERE??
}

Da kommt es auf die tatsächliche Auflösung. Meine index_body ist immer zentriert. wenn ich die Auflösung ändern meine Schaltfläche bewegt wird, um den Links-rechts...

InformationsquelleAutor user1666761 | 2012-10-27
Schreibe einen Kommentar