SimplePortal

Support => International Support => German => Topic started by: Tom on February 20, 2011, 11:34:35 AM

Title: Hintergrundbild im Block
Post by: Tom on February 20, 2011, 11:34:35 AM
Ein Hintergrundbild in ein Block einzubinden hat ja gut funktioniert ...

Quote
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
Title: Re: Hintergrundbild im Block
Post by: Shitbit on February 25, 2011, 10:44:05 AM

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
Title: Re: Hintergrundbild im Block
Post by: Tom on February 25, 2011, 12:54:22 PM
Hab's ... Danke  :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal