Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Hello everybody i can not connect css file with html file in mvc porject

html file cannot see css file

in my previous project the same link to css file workedenter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The webserver will look for your CSS file starting from the location of your index file. Important: See Quentin’s note under your question for important information when you are using templates and frameworks. This sentence only applies to traditional HTML construction – but it also applies once your project has been generated and uploaded to the web server.

According to that code, the file style.css should be in the same folder as the index file, and spelled exactly as specified. Capitalization matters: Style.css is not style.css.

Did you move the style.css file into a subfolder? Is the capitalization different?

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading