www.webdeveloper.com
Results 1 to 5 of 5

Thread: How to make changes to other pages

  1. #1
    Join Date
    Oct 2008
    Location
    Sout West UK
    Posts
    71

    How to make changes to other pages

    I have three pages that are controlled by an external style sheet, there is a large jpg banner in a div box which is on all the pages but I want to change it for every page apart from the home page..... but what ever I do on the one pages also affects the others I'm using dreamweaver but I figured this is to do with the css style sheet

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Is the banner a background image?

  3. #3
    Join Date
    Oct 2008
    Location
    Sout West UK
    Posts
    71
    Yes it's a jpg background image in the div box which is displayed on all pages
    I want to alter the jpg for each page but can only see how to alter it for every page.

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Use this technique: http://www.456bereastreet.com/archiv...tate_with_css/
    Add a different id to the body of each page.
    Code:
    /* index page */
    #index #banner {background:#ccc url(foo.jpg) no-repeat;}
    /* faq page */
    #faq #banner {background:#ccc url(bar.jpg) no-repeat;}

  5. #5
    Join Date
    Oct 2008
    Location
    Sout West UK
    Posts
    71
    Thanks but maybe I should see if there's a way of doing it directly in dreamweaver I didnt understand the information at this link

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles