PDA

View Full Version : Need Help


tuaguild
06-17-2008, 07:22 PM
I need help to find a way in a template to use an if conditional to cause a different image to come up depending on the style sheet or a way to tie the image into the css i can provide the css file and code for the image if someone is able to do it

RLShare
06-18-2008, 12:13 AM
An easy way would be to display the image as the background of the div like this....
css...

.myimagediv{
background:url(images/mypic.png);
width:300px;
height:100px;
}

then place this code where you want the image to show up...
<div class ='myimagediv'>&nbsp;</div>

change the css for 'myimagediv' for the different styles and you achieve that effect without using image tags.

Marco van Herwaarden
06-18-2008, 08:45 AM
Not sure what kind of image you are talking about, but you can set the directory for images on each style.