insert background image in mvc application



  • Good day how to leave a background image in my application that is in mvc, I saw some examples that stays in the Content folder but when opening the page is not running in background, thank you



  • Everything okay, buddy? In MVC we usually use a folder called assets with CSS subdirectories, JAVASCRIPT and IMAGENS to organize the items that make up our VIEW, Since what you want is to add a Background the Ideal would create this structure and then add within your CSS the code

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

    Follows folder organization image in MVC

    Demonstração de pastas em MVC




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2