Rank: Member
Joined: 8/8/2007(UTC) Posts: 298
|
I'm creating a background image to simulate a left column that extends top to bottom of the web pages. That is working fine. But my question pertains to the Cart.aspx, Checkout.aspx and Reicpt.aspx pages. What or how should i do the css to not use the background image on those pages? or specific pages? Is it something i need to add to those pages or can it be done in the css?
Thanks |
Dan |
|
|
|
Rank: Member
Joined: 10/11/2006(UTC) Posts: 162
Thanks: 1 times
|
Dan - You need to first assign a body id or class to these pages, then target those in the CSS to not have a background image. For example, on the checkout page you could assign a body id like this: Code:<body id="checkoutPage"> Assuming you were assigning the background image to the body, in your CSS you would say: Code:body#checkoutPage {background-image: none;} You can then assign body id's to the other pages you wish to target, and add them to the same declaration: Code:body#checkoutPage, body#cartPage, body#receiptPage {background-image:none;} Hope that helps! : Greg
|
|
|
|
Rank: Member
Joined: 8/8/2007(UTC) Posts: 298
|
Greg:
Thanks, I will play with that, seems like that would work.
One question. Will i need to but the "body id" in the .aspx page somewhere? If So where would be the proper placement?
Thanks |
Dan |
|
|
|
Rank: Member
Joined: 12/23/2003(UTC) Posts: 909
|
Dan, the checkout section is using the checkout.master file. You can add an id to the master page.
or you could change the containers id's on the master page to be unique and you style from there. |
|
|
|
|
Rank: Member
Joined: 8/8/2007(UTC) Posts: 298
|
Matt:
Thanks, that helped, i got it doing what i wanted! |
Dan |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.