insert background image in mvc application

Asked

Viewed 1,168 times

-3

Good morning as I leave a background image in my application that is in mvc, I saw some examples that is in the Content folder but when opening the page does not run in the background, thanks

  • 1

    Did you come to encode something? You can post?

1 answer

1

What’s up, my friend? In MVC we usually use a folder called Assets with CSS, JAVASCRIPT and IMAGES subdirectories to organize the items that make up our VIEW, since what you want is to add a Background the Ideal would be to create this structure and then add within your CSS the code

body
{
       background-image: url('Caminho da imagem');
}

Follow MVC folder organization image

Demonstração de pastas em MVC

  • Thank you so much I will change yet I can’t upload the project because I depend on everyone’s approval to post to Git and Aki too

  • If that’s the expected answer, be sure to confirm the answer to help the community.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.