Landcross
Landcross

Reputation: 492

visual studio does not apply css

I wanted to make a small test site using the Metro UI framework (http://metroui.org.ua/)

So, I started up my newly installed Visual Studio 2013 and started a "new website". I added the neccesary css and js and made a very basic masterpage and default.aspx. But here comes the problem: the css does get loaded, but it doesn't get applied. Not in FireFox, not in IE, not in Chrome and not in the "Page Inspector".

It's quite weird, because in my previous VS2012 this same workflow for testing and experimenting with a framework just worked. I really can't find the problem. Maybe it has to do with my new Windows 8.1, my new Visual Basic 2013, maybe an programming error (although that would be very unlikely, since I checked everything).

I also tried installing the framework using NuGet instead of manually adding it. Same result: it does load, but it doesn't get applied.

Anyone knows what's happening here? Thanks in advance!

enter image description here enter image description here enter image description here

Upvotes: 1

Views: 776

Answers (1)

Pilgerstorfer Franz
Pilgerstorfer Franz

Reputation: 8359

According to MetroUI you have to follow 5 simple steps

  1. Create page with HTML5 DOCTYPE 2.Include metro-bootstrap.css
  2. Include metro.min.js (jquery.js required)
  3. Create main container with class .metro
  4. Use markup, as described in the pages of this site

In your posted images I can't find a container with class .metro . I'd really check the sample code from the posted page.

In case I misunderstood anything please let me know!

Upvotes: 1

Related Questions