Pradeepb
Pradeepb

Reputation: 2562

possibility to change the background of body in html page

I have frond end built using angularjs. I have declared the background image for body of the index.html page (its same for whole website).

whenever I go to the new url, a view will be displayed in ng-view. currently I am planning to change the background of only login page.

Whenever i go to the url localhost:3000/login, background (of body) should change for only that page. for rest of the page it should remain same. Is there anyway to do it?

Edit: Right now I have this code in my app.scss

 body {
    padding-bottom: 15px;
    @include background-image(linear-gradient(#c3c3c3, white 350px));
  }

And its common for all the pages. When i load the login page, still this background styling will be displayed(which is inherited). Which I want to remove (background: none) for only login page. Hope it clarifies my question.

Upvotes: 0

Views: 75

Answers (1)

Amanda Cavallaro
Amanda Cavallaro

Reputation: 303

Try:

  1. changing it in the CSS file
  2. changing the ng-style="{'backgroundimage':'url(typeUrlHere)'}"> inside the desired tag.

Upvotes: 1

Related Questions