...

View Full Version : How do I add background image to block of <p>



listerdl
11-09-2012, 06:25 PM
Id use a div right?

so -

.background-image{
background-image:url(xxx.png)
}

then

<div class="background-image">

<p>TEXT</p>

</div>

Thanks

coothead
11-09-2012, 07:46 PM
Hi there listerdl,

if you want to add a "background-image" to the "p element", then add it to the "p element". ;)

If you want to add a "background-image" to the "div element", then add it to the "div element". ;)

If you want the whole "background-image" to be visible in the element of your choice, then that
element would require either a "min-height" value or sufficient content.

coothead



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum