SimplePortal
Support => International Support => German => Topic started by: Tom on February 20, 2011, 11:34:35 AM
-
Ein Hintergrundbild in ein Block einzubinden hat ja gut funktioniert ...
Du kannst in dein Block ein <div> machen mit eines css class. :D
Sorry, my German sucks but either way; try something like this within your HTML Block:
Code: [Select]
<div class="bgimage">
Type your stuff here or whatever you want to place in your block.
</div>
Then in your CSS file you add
Code: [Select]
.bgimage{
display: block;
height: 100%;
width: 100%;
padding: 0;
margin: 0;
background:#000 url('images/background-picture.jpg') no-repeat;
}
Wie bekomme ich das Bild in die Blockmitte oder .. wie passt sich das Bild der Größe vom Block automatisch an ???
Danke und Gruß,
Tom
-
Versuch es mal mit
align und left,center,right
Was die größe angeht steht doch schon auf width 100 %, height 100%
was bedeutet das es sich automatisch anpasst, es sei denn das Bild selbst ist kleiner als der Block...da müsste man es stretchen
-
Hab's ... Danke :)