[Typo3] CSS Definition der Position auf IMAGE übertragen?

stephan winter3 at bluewin.ch
Mon Dec 12 17:13:45 CET 2005


Wie kann ich die CSS Definition der Position(#zentriert) auf ein IMAGE 
Object übertragen?
Code CSS:

#zentriert {
 position: absolute;
 width: 640px;
 height: 443px;
 left: 50%;
 top: 50%;
 margin-left: -320px;
 margin-top: -222px;
}

 /* This is the background image --> Dies musste ich im TypoScript als IMAGE 
definieren*/
#bg {
 width: 640px;
 height: 443px;
 background: url(saentismain.jpg) no-repeat;
 }

#nav {
 width: 160px;
 height: 443px;
 margin-left: 90px;
 background-color: #FFCC99;
 filter:alpha(opacity=50);
 opacity: 0.5;
 -moz-opacity:0.5;
 }
-------------------------------------------------
Code htm:
<body>
<div id="zentriert">
   <div id="bg">
      <div id="nav"></div>
   </div>
</div>
</body> 





More information about the TYPO3-english mailing list