View Full Version : CSS Help! How do I change img & link regularly
MidnightMomma
03-25-2006, 12:39 AM
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
ADAM Web Design
03-25-2006, 01:02 AM
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.
iwebgeek
03-25-2006, 02:48 PM
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.
iwebgeek
03-25-2006, 02:49 PM
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.
Sbabb
03-27-2006, 05:29 PM
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