asp.net - How to change CSS background from different .asxc file? -


Then there is a css file in the master file that defines the background

  body { Background-image: url (../ background.jpg);}  

Then I have a aspx file, in which many ascx Files are I want to change based on the background image directory (the image is changing), on which the ascx page is loading. Any suggestion or guidance would be helpful. I can not just wrap my head around it.

Edit:

So thanks, I have some containers now, but I'm sure What I'm about to announce is how the container should be used on the Essex load. Does anyone have any suggestions? Thank you.

Instead of using the body, use a container inside the body

  & lt; Body & gt; & Lt; Div id = "container-home" & gt; & Lt; / Div & gt; & Lt; / Body & gt; Body {margin: 0 px; Padding: 0 pixels; } # Container-house {margin: 0 pixels; Padding: 0 pixels; Background Image: URL (../a/bank.jpg); } # Container-other margin: 0 pixels; Padding: 0 pixels; Background Image: URL (../a/bank.jpg); }  

Comments