Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Mar 2008
    Posts
    1
    Member #
    16584
    Is it possible to have a single CSS govern multiple pages that all have different backgrounds ??
    I would like to not have to tag the background into the html if I can help it ...

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    No you can't do that with CSS, but you can do it with PHP.

    If you are able to use PHP scripting in your web page, it can determine
    which background to place.

    You can change the extensions of your .html to .php ... or ...
    specify that all pages are treated as PHP by using .htaccess or your webhost settings.

    The PHP script would look at your URL and pick out the background
    based on which URL it is displaying. You would have one PHP script
    that controls the backgrounds for all of your pages.



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:35 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com