Submit Your Article Forum Rules

Results 1 to 5 of 5

Thread: CSS Help! How do I change img & link regularly

  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    16

    CSS Help! How do I change img & link regularly

    Hi Everyone, I am getting to know CSS using Dreamweaver and with all the reading I've done, I still don't know how to make an update on one page and it be reflected on all the pages of the site.

    Each month, I will be changing a img and the link associated with that img and instead of doing it on over 70 pages, I'd like to change it on one and be done with it.

    Can anyone help? Thank you in advance.

    Midnight Momma
    The only person I want to be better than is the person that I am right now!

  2. #2
    Senior Member ADAM Web Design's Avatar
    Join Date
    Dec 2003
    Posts
    2,172
    If it's an image, that doesn't sound like a CSS issue...unless you're using it somehow using the image as part of a rollover effect.

    This almost sounds like something that's more of an include file issue than a CSS issue, but it's hard to say.

    Could you please provide more information? Ideally, a hyperlink so we can see what you're trying to accomplish.

  3. #3
    You could use static div width & height then set the image as a background using css. This would let you change the image at will and it'll span across the 70 ish pages.
    100% XHTML Compliant Since 2004

  4. #4
    Whoops.. I didn't see the part about the img being linked.

    Dreamweaver has a Find & Replace function and it will apply the changes across all your pages if you want it to. I think it works for images.. I'm not sure.
    100% XHTML Compliant Since 2004

  5. #5
    Junior Member
    Join Date
    Oct 2005
    Posts
    7
    Consider using a PHP include to do this. You can't do it in plain CSS or HTML, as far as I know. You could do it with a Server Side Include, if you have SSI enabled.

    With either a PHP include or a SSI, you'd put the code you want changed in a file and then put a command in your HTML file to include that file in your page. If you change the file, the code from that file changes in all of your pages immediately because the file is always included on the fly.


    Scott

Similar Threads

  1. Check your email regularly or say Goodbye to your Adsense account.
    By 1stgirl.com in forum Google AdWords/Google AdSense
    Replies: 6
    Last Post: 04-16-2009, 07:09 PM
  2. Moving To Trusted Links & Change The Link Election Model
    By WPW_Feedbot in forum Search Engine Optimization Forum
    Replies: 1
    Last Post: 11-11-2005, 10:10 AM
  3. Critical Situation - Link Structure Change
    By LLFitness_Derek in forum Google Discussion Forum
    Replies: 2
    Last Post: 02-11-2005, 03:45 PM
  4. Link exchange with Access Name Change Center
    By wchesser in forum Marketing Strategies Discussion Forum
    Replies: 0
    Last Post: 09-23-2004, 10:44 PM
  5. How to get Slurp on to your site regularly
    By sudhani in forum Yahoo! Discussion Forum
    Replies: 4
    Last Post: 08-12-2004, 10:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •