ghrimmjaw Posted August 11, 2009 Report Share Posted August 11, 2009 Hello please i need help on this issue. i used my sites CSS file to change an image that is displayed on my site's home page. it's a drupal site. But i want this image only to be displayed on my home page, currently it's displayed on every page. My CSS content edited is what i have shown below: #featured { position: relative; height: 155px; background: url(images/PingAfrica.jpg) no-repeat; background-position: 35px 55%; } i was hoping the inclusion of the no- repeat line would stop that, but it doesn't and the image is displayed on every page on the site. i only want it on the front page!.... Thanks!.... Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 11, 2009 Report Share Posted August 11, 2009 "no-repeat" means that the background image doesn't repeat horizontally or vertically -- it doesn't stop it from displaying on mulitple pages. I'm not sure if you can do this, since I can't see your code and I'm not sure if it is easy to do this with Drupal... However, if you assign the body tag of your home page an id value: then you can reference it like this #home #featured {} and the image will only appear on the home page. Quote Link to comment Share on other sites More sharing options...
ghrimmjaw Posted August 11, 2009 Author Report Share Posted August 11, 2009 Hello thanks for your reply... i am not too clear about the body tag cos i couldn't locate it. Can u please explain more..... Thanks.... Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 11, 2009 Report Share Posted August 11, 2009 As I said, I'm not all that familiar with Drupal, so I am not sure exactly where the body tag would be located, or if you can add a class to it. Do you have a link to the site? I may be able to give you better advice if I can see what you are working with. Quote Link to comment Share on other sites More sharing options...
ghrimmjaw Posted August 11, 2009 Author Report Share Posted August 11, 2009 ok this is the link to the site: http://www.pingafrica.org/ You can have a look at it... Thanks... Quote Link to comment Share on other sites More sharing options...
falkencreative Posted August 11, 2009 Report Share Posted August 11, 2009 Hmm. I'd probably better leave this question to someone who has more experience with Drupal. I'm not sure how the templating engine in Drupal is set up, which makes it hard for me to give you quality advice. Quote Link to comment Share on other sites More sharing options...
ghrimmjaw Posted August 11, 2009 Author Report Share Posted August 11, 2009 ok fine.... Thanks for your thoughts... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.