Danke! Hab auch noch nachgelesen. Alle haben Arial außer Android.
Ich hab Probleme mit dem Einbauen deiner Codezeilen. Bei mir wird das Logo immer gleich groß dargestellt.
Bei mir:
CSS:
HTML:
Ich hab Probleme mit dem Einbauen deiner Codezeilen. Bei mir wird das Logo immer gleich groß dargestellt.
Bei mir:
CSS:
Code:
* { padding: 0; margin: 0; }
body
{
font-family: Verdana, Arial, sans-serif;
color: #000000;
scrollbar-face-color: #003300;
scrollbar-highlight-color: #006633;
scrollbar-3dlight-color: #006633;
scrollbar-darkshadow-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-arrow-color: #ffffff;
scrollbar-track-color: #000000;
}
#center {
position: relative;
width: 320px;
height: 480px;
background-color: #ffffff;
box-sizing: border-box;
margin: 0px auto;
}
#logo
{
}
img#logo {
width: 20%; /* Breite 80% des Eltern-Elements */
max-width: 320px; /* Breite aber max. 320px */
height: auto; /* Die Hoehe wird automatisch anhand des Inhalts gewaehlt */
margin: 0 auto; /* Kein Margin oben und unten, rechts und links dafuer automatisch waehlen (zentrieren) */
}
#navi
{
position: absolute;
top: 110px;
width: 320px;
height: 38px;
font-size: 15px;
color: #000000;
background-color: #ffffff;
margin-left: 10px;
}
#content
{
position: absolute;
top: 152px;
width: 302px;
color: #000000;
background-color: #f8f8f8;
font-size: 12px;
overflow: auto;
left: 8px;
}
...
....
HTML:
Code:
<body>
<div id="center">
<div id="logo"><img src="img/m_logo.jpg"></div><!--Ende logo-->
<div id="navi"><div class="dropdown">
<button class="dropbtn">Menü</button>
<div class="dropdown-content">
<a href="#">Anfang</a>
<a href="#">Neues</a>
<a href="#">Biografie</a>
<a href="#">Diskografie</a>
<a href="#">Downloads</a>
<a href="#">Poesie</a>
<a href="#">Fotografie</a>
<a href="#">Kontakt</a>
</div></div></div><!--Ende navi-->
<div id="content">Lorem ipsum ...
</div><!--Ende content-->
</div><!--Ende center-->
</body>