zurück zur Startseite
  


Zurück XHTMLforum > (X)HTML und CSS > CSS
Seite neu laden Backgroung-image position

Antwort
 
LinkBack Themen-Optionen Ansicht
  #11 (permalink)  
Alt 18.07.2013, 10:22
?!?
XHTMLforum-Kenner
 
Registriert seit: 20.03.2013
Beiträge: 1.638
explanator sorgt für eine eindrucksvolle Atmosphäreexplanator sorgt für eine eindrucksvolle Atmosphäre
Standard

Dein Code:
HTML-Code:
#logo {

position: absolute;
width: 50px;
height: 98px;
top: 16px;
background-position: 50%;
left: 297px;
}
wird nie das Logo verschieben.
Position absolute heisst, dass das Logo an der Stelle klebt, die mit top und left angegeben wurde. Egal wie gross das Fenster ist.
position: Positionsart: CSS-Referenz auf CSS 4 You - The Finest in Stylesheets

Vielleicht sagst du uns auch wohin du das Logo haben willstl
__________________
"Wieso ist der Code schrott, ich dachte hier seien Profis..."
Aus einem Forum.
Mit Zitat antworten
Sponsored Links
  #12 (permalink)  
Alt 18.07.2013, 10:43
Neuer Benutzer
neuer user
Thread-Ersteller
 
Registriert seit: 17.07.2013
Beiträge: 6
Madlen befindet sich auf einem aufstrebenden Ast
Standard Logo skalieren

Hallo,

ich habe endlich geschafft, hier ist die Loesung:

html
<div id="content">
<img src="./images/logo.jpg" width="503" height="704" />
</div>
<div id="sidebar">
</div>

css

#sidebar {
width: 31.979166667%;
padding: 0 3.125%;
float: right;
background-color: #fff;
}

@media screen and (orientationortrait) and (max-width:480px) {
#content, #sidebar {
width: 93.750%;
float: none;
}
}
img {
max-width: 100%;
height: auto;
}

gruss und noch mal danke
Mit Zitat antworten
Sponsored Links
Antwort

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
div-höhe? - Hauptcontainer über ganze Seite will nicht... AndMei CSS 5 13.12.2010 15:43
Problem mit einem 3D-Effekt moep0710 CSS 12 12.06.2010 15:30
Was übersehe ich? Psyclown CSS 2 19.10.2008 14:00
prblemme mit mein inhalt div carlos587261 CSS 3 23.04.2008 15:07


Alle Zeitangaben in WEZ +2. Es ist jetzt 01:46 Uhr.