...

View Full Version : Need Help Bad



DjDanHayden
08-05-2010, 05:32 PM
Hi everyone,

I have been trying this for about 2 hours now i bet its an easy fix i just cant see.


#new_to_ig

{

position:absolute;
top:197px;
right:390px;
width:355px;
height:235px;
background:transparent url(/theme/images/new_to_ig.jpg) no-repeat ;

}



The image new_to_ig.jpg will just not show up no matter what i try... this is what i have in the php end...



<div id="new_to_ig">
<h2><a href="" title="Popular Gaming Arenas">New To IG ?</a></h2>


</div>



However this will will work but its no good as i need the image running off the css..




<div id="new_to_ig">
<h2><a href="" title="Popular Gaming Arenas">New To IG ?</a></h2>
<img src="./theme/images/new_to_ig.jpg" width="355" height="235" alt="Hi">
</div>



Any idea on how to get the image to show from the css.... ?

Thanks in advance ! :thumbsup:

The image will not show

met
08-05-2010, 05:39 PM
./path/to/image.jpg

is not the same as

/path/to/image.jpg

what is the file structure like ? where is your CSS file in relation to the document and indeed the images you are referring to

SB65
08-05-2010, 05:40 PM
Well, it sounds like the path to your image is wrong. Depends how you have your folders structured, but if you've got your css file in the same file as your html page, and the image on the page works, then your css should be:


#new_to_ig

{

position:absolute;
top:197px;
right:390px;
width:355px;
height:235px;
background:transparent url(./theme/images/new_to_ig.jpg) no-repeat ;

}

which then matches the path when you have the image on the page.

If this isn't the problem, then a link to your page would help.

DjDanHayden
08-05-2010, 05:50 PM
Fixed, My URL to the site have /home/ after it so i needed to add that...


WOW is all i can say... lol

and thanks to you guys...

wildreason
08-05-2010, 06:03 PM
Haha... spending hours on problems like this has the unfortunate result of driving yourself crazy but the fortunate result of being much less likely to make the same mistake. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum