CSS & Templates? Image Rotation How to...
Really quick -- and probably simple question. If you save a css file as a template for your website, how can you ensure that say -- all five pages of your site have a different image. For instance, the template has a promotional area where an image is located. How would you go about ensuring that Pages 2, 3, 4, and 5 have different images if you are using CSS as your template?
Either that or if your image area is in a DIV, create extra DIV's with different images and then apply that to each page, i.e.,
Hope it helps,
css doesn't make good for templates(only styling the templates you already have in HTML), but you could give your pages all unique IDs to the body:
then use the CSS to style an object different based on page:
but that requires the use of background images and special styling, as well as editing the HTML for all the pages as well. rather a lot of work.
If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
The same applies to HTML and the forums [HTML][/HTML] tags.
All very good suggestions. Thanks so much - I will try and let you know.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)