Results 1 to 4 of 4

Thread: Silly question

  1. #1
    Join Date
    Jul 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Silly question

    Hi, I am new here. I am maintaining a friends website:

    www.thegreyroost.com

    she wants to make a page for her store, just as a test before we get a new domain and start another site. I tried to throw up another page, and we want to change the header banner on just that page to be relevant to her store. The banner is default for all pages and already written into the css. How do I make the banner different for just that one page?

    Thanks

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    you have this in your css file:

    Code:
    .tophead {
    	background-image: url(../img/topbar.png);
    	height: 31px;
    	background-repeat: repeat-x;
    	margin: 0px;
    	padding: 0px;
    }
    Just put an internal style sheet in the page in question specifying a new background for that div, and it will override the external stylesheet's bg. Like so (in the <head> section):

    Code:
    .tophead {
         background-image: url(../img/othertopbar.png);
    }

  3. #3
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    That, or you could just define a whole new CSS area. I think you should have included this thread in CSS, by the way.

    -magicyte

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    yeah, like naming the "tophead" div on that page "othertophead" and giving it it's own css
    Code:
    .othertophead {
    	background-image: url(../img/othertopbar.png);
    	height: 31px;
    	background-repeat: repeat-x;
    	margin: 0px;
    	padding: 0px;
    }

Bookmarks

Posting Permissions

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