Problem mit width in %

rernanded

Erfahrenes Mitglied
Hi

habe Problem warum mein Bild (startbild.jpg) bei den width- und height-Werten in % nicht angezeigt
wird, wohl aber wenn die Werte in px angegeben sind, also width: 1200px; height: 800px;

MONI

HTML:
#bild {
   width: 100%;
   height: 80%;
   margin: 0px auto;
   padding: 0px 0px 0px 0px;
   background: #ffffff url(startbild.jpg) no-repeat center center;
   background-size: 100% 100%;
   position: absolute;
   top: 0px;
   font-family: 'arial', sans-serif;
   font-size: 20px;
   color: #000099;
   z-index: 0;
}
 
Zurück