|
|||
Dein Code:
HTML-Code:
#logo { position: absolute; width: 50px; height: 98px; top: 16px; background-position: 50%; left: 297px; } 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. |
Sponsored Links |
|
|||
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 |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ä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 |