title: ASP.NET - HTML page looks different when started by Visual Studio then started outside of it
body: <p>I am not the best with ASP.NET, but I am using it for an authentication back-end and RESTful Web API (as I know enough C# to be dangerous).</p>
  
  <p>I have a website built strictly in HTML, CSS, and JS. It looks fantastic outside when started directly with any popular browser (chrome, IE, firefox). I want to use some of the functionality of ASP.NET within the this website, and have it be the front-end to my web application. I simply dragged and dropped the HTML, CSS, and JS folders (including all images, etc.) into my ASP.NET project, and when I preview in browser from visual studio, the entire HTML layout is garbled and everything just doesn't look the same.</p>
  
  <p>I added permissions for unauthourized users to access the pages, css folders, and the js folder in Web.config.</p>
  
  <p>Any idea on why this would happen? Does ASP.NET render HTML/CSS differently during build than just viewing it directly through the browser?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8" /&gt;
  &lt;title&gt;Site Name &amp;raquo; Awesome Tagline Here&lt;/title&gt;
  &lt;link rel="stylesheet" href="css/base.css" type="text/css" media="all" /&gt;
  &lt;link rel="stylesheet" href="css/flexslider.css" type="text/css" media="all" /&gt;
  &lt;link rel="stylesheet" href="css/red.css" type="text/css" media="all" /&gt;
  &lt;link rel="shortcut icon" type="image/x-icon" href="css/images/favicon.ico" /&gt;
  
  &lt;script src="js/modernizr.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="js/colorbox.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="js/flexslider.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="js/livevalidation.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="js/twitter.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="js/easing.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="js/functions.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;section id="wrapper"&gt;
      &lt;section class="shell"&gt;
          &lt;!-- Header --&gt;
          &lt;header&gt;
              &lt;h1 id="logo"&gt;&lt;a href="home.html" class="notext"&gt;Name Of site&lt;/a&gt;&lt;/h1&gt;
  
              &lt;nav&gt;
                  &lt;ul class="main-nav"&gt;
                      &lt;li class="current"&gt;&lt;a href="home.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="about.html"&gt;About&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;
                          &lt;a href="services.html"&gt;Services&lt;/a&gt;
                          &lt;ul&gt;
                              &lt;li&gt;&lt;a href="services.html"&gt;Service Page 1&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="services.html"&gt;Service Page 2&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;
                                  &lt;a href="services.html"&gt;Service Page 3&lt;/a&gt;
                                  &lt;ul&gt;
                                      &lt;li&gt;&lt;a href="services.html"&gt;Service Page 1&lt;/a&gt;&lt;/li&gt;
                                      &lt;li&gt;&lt;a href="services.html"&gt;Service Page 2&lt;/a&gt;&lt;/li&gt;
                                      &lt;li&gt;&lt;a href="services.html"&gt;Service Page 3&lt;/a&gt;&lt;/li&gt;
                                      &lt;li&gt;&lt;a href="services.html"&gt;Service Page 4&lt;/a&gt;&lt;/li&gt;
                                  &lt;/ul&gt;
                              &lt;/li&gt;
                              &lt;li&gt;&lt;a href="services.html"&gt;Service Page 4&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li&gt;&lt;a href="projects.html"&gt;Projects&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="blog.html"&gt;Blog&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
  
                  &lt;ul class="socials"&gt;
                      &lt;li class="facebook"&gt;&lt;a href="#"&gt;Facebook&lt;/a&gt;&lt;/li&gt;
                      &lt;li class="twitter"&gt;&lt;a href="#"&gt;Twitter&lt;/a&gt;&lt;/li&gt;
                      &lt;li class="rss"&gt;&lt;a href="#"&gt;RSS&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/nav&gt;
          &lt;/header&gt;
  
  
  &lt;!-- End Header --&gt;
  
  &lt;/section&gt;
  
  &lt;section id="large-slider"&gt;
      &lt;ul class="slides"&gt;
          &lt;li&gt;
              &lt;img src="css/images/home-slide1.jpg" alt="" /&gt;
  
              &lt;section class="text"&gt;
                  &lt;h1&gt;&lt;span&gt;Ma quande&lt;/span&gt; lingues coales&lt;/h1&gt;
  
                  &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim.&lt;/p&gt;
  
                  &lt;a href="#" class="button"&gt;View More&lt;/a&gt;
              &lt;/section&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;img src="css/images/home-slide2.jpg" alt="" /&gt;
  
              &lt;section class="text"&gt;
                  &lt;h1&gt;&lt;span&gt;Ma quande&lt;/span&gt; lingues coales&lt;/h1&gt;
  
                  &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim.&lt;/p&gt;
  
                  &lt;a href="#" class="button"&gt;View More&lt;/a&gt;
              &lt;/section&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;img src="css/images/home-slide3.jpg" alt="" /&gt;
  
              &lt;section class="text"&gt;
                  &lt;h1&gt;&lt;span&gt;Ma quande&lt;/span&gt; lingues coales&lt;/h1&gt;
  
                  &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim.&lt;/p&gt;
  
                  &lt;a href="#" class="button"&gt;View More&lt;/a&gt;
              &lt;/section&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;img src="css/images/home-slide1.jpg" alt="" /&gt;
  
              &lt;section class="text"&gt;
                  &lt;h1&gt;&lt;span&gt;Ma quande&lt;/span&gt; lingues coales&lt;/h1&gt;
  
                  &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim.&lt;/p&gt;
  
                  &lt;a href="#" class="button"&gt;View More&lt;/a&gt;
              &lt;/section&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/section&gt;
  
  &lt;section class="shell"&gt;
  
      &lt;section class="about-row"&gt;
          &lt;h2 class="section-head"&gt;&lt;a href="about.html" class="more"&gt;More Info&lt;/a&gt; &lt;span&gt;&lt;span&gt;More&lt;/span&gt; About Us&lt;/span&gt;&lt;/h2&gt;
  
          &lt;section class="thumbs"&gt;
              &lt;img src="css/images/th-about1.jpg" alt="" /&gt;
              &lt;img src="css/images/th-about2.jpg" alt="" /&gt;
              &lt;img src="css/images/th-about3.jpg" alt="" /&gt;
              &lt;img src="css/images/th-about4.jpg" alt="" /&gt;
          &lt;/section&gt;
          &lt;section class="text"&gt;
              &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut&lt;/p&gt;
          &lt;/section&gt;
      &lt;/section&gt;
  
      &lt;section class="projects-row"&gt;
          &lt;h2 class="section-head"&gt;&lt;a href="projects.html" class="more"&gt;More Projects&lt;/a&gt; &lt;span&gt;&lt;span&gt;Latest&lt;/span&gt; Projects&lt;/span&gt;&lt;/h2&gt;
  
          &lt;ul class="thumbs"&gt;
              &lt;li&gt;
                  &lt;a href="project.html"&gt;&lt;img src="css/images/th-home1.jpg" alt="" /&gt;&lt;/a&gt;
                  &lt;h4&gt;Lorem ipsum dolor &lt;span&gt;sit amet&lt;/span&gt;&lt;/h4&gt;
  
                  &lt;p&gt;&lt;a href="#"&gt;CASE STUDIES&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Entertainment&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Featured&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Website&lt;/a&gt;&lt;/p&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;a href="project.html"&gt;&lt;img src="css/images/th-home2.jpg" alt="" /&gt;&lt;/a&gt;
                  &lt;h4&gt;Lorem ipsum dolor &lt;span&gt;sit amet&lt;/span&gt;&lt;/h4&gt;
  
                  &lt;p&gt;&lt;a href="#"&gt;CASE STUDIES&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Entertainment&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Featured&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Website&lt;/a&gt;&lt;/p&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;a href="project.html"&gt;&lt;img src="css/images/th-home3.jpg" alt="" /&gt;&lt;/a&gt;
                  &lt;h4&gt;Lorem ipsum dolor &lt;span&gt;sit amet&lt;/span&gt;&lt;/h4&gt;
  
                  &lt;p&gt;&lt;a href="#"&gt;CASE STUDIES&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Entertainment&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Featured&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Website&lt;/a&gt;&lt;/p&gt;
              &lt;/li&gt;
              &lt;li&gt;
                  &lt;a href="project.html"&gt;&lt;img src="css/images/th-home4.jpg" alt="" /&gt;&lt;/a&gt;
                  &lt;h4&gt;Lorem ipsum dolor &lt;span&gt;sit amet&lt;/span&gt;&lt;/h4&gt;
  
                  &lt;p&gt;&lt;a href="#"&gt;CASE STUDIES&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Entertainment&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Featured&lt;/a&gt; &lt;span&gt;/&lt;/span&gt; &lt;a href="#"&gt;Website&lt;/a&gt;&lt;/p&gt;
              &lt;/li&gt;
          &lt;/ul&gt;
      &lt;/section&gt;
  
      &lt;section class="clients-row"&gt;
          &lt;h2 class="section-head"&gt;&lt;a href="#" class="more"&gt;View More&lt;/a&gt; &lt;span&gt;&lt;span&gt;Our&lt;/span&gt; Clients&lt;/span&gt;&lt;/h2&gt;
  
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;img src="css/images/client1.png" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;img src="css/images/client2.png" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;img src="css/images/client3.png" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;img src="css/images/client4.png" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;img src="css/images/client5.png" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;img src="css/images/client6.png" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;img src="css/images/client7.png" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;img src="css/images/client8.png" alt="" /&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/section&gt;
  
      &lt;section class="row"&gt;
          &lt;section class="half"&gt;
              &lt;h2 class="section-head"&gt;&lt;span&gt;&lt;span&gt;We&lt;/span&gt; Hire&lt;/span&gt;&lt;/h2&gt;
  
              &lt;h4&gt;SALES MARKETING CONSULTANT&lt;/h4&gt;
              &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. &lt;a href="#"&gt;More&lt;/a&gt;&lt;/p&gt;
  
              &lt;h4&gt;ART DIRECTOR&lt;/h4&gt;
              &lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. &lt;a href="#"&gt;More&lt;/a&gt;&lt;/p&gt;
          &lt;/section&gt;
          &lt;section class="half"&gt;
              &lt;h2 class="section-head"&gt;&lt;span&gt;&lt;span&gt;Our&lt;/span&gt; Services&lt;/span&gt;&lt;/h2&gt;
  
              &lt;ul class="left"&gt;
                  &lt;li&gt;&lt;a href="services.html"&gt;Advertising&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="services.html"&gt;Brand Identity Design&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="services.html"&gt;Business Planning&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="services.html"&gt;Startup Planning&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="services.html"&gt;Campaign Planning&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
              &lt;ul class="right"&gt;
                  &lt;li&gt;&lt;a href="services.html"&gt;Online Advertising Services&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="services.html"&gt;Website Architecture Design&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="services.html"&gt;Interactive Design&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="services.html"&gt;Game Design&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="services.html"&gt;Development&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/section&gt;
      &lt;/section&gt;
  
      &lt;h2 class="bottom-text"&gt;“Eat your &lt;strong&gt;betting money&lt;/strong&gt;, but don't bet your &lt;strong&gt;eating money&lt;/strong&gt;.”&lt;/h2&gt;
  
  
      &lt;/section&gt;
  
      &lt;section id="footer-push"&gt;&lt;/section&gt;
  &lt;/section&gt;
  
  &lt;!-- Footer --&gt;
  &lt;footer&gt;
      &lt;section class="shell"&gt;
          &lt;section id="to-top"&gt;
              &lt;a href="#"&gt;Up&lt;/a&gt;
              &lt;span class="overlay"&gt;&lt;/span&gt;
          &lt;/section&gt;
  
          &lt;section class="twitter-feed"&gt;
              &lt;h5&gt;Latest Tweets&lt;/h5&gt;
  
              &lt;section id="tweets"&gt;&lt;/section&gt;
          &lt;/section&gt;
  
          &lt;section class="about-box"&gt;
              &lt;h5&gt;Tested on All Browsers&lt;/h5&gt;
              &lt;p&gt;Find out more theme features &lt;a href="#"&gt;Here&lt;/a&gt;&lt;/p&gt;
              &lt;img src="css/images/browsers.png" alt="" /&gt;
          &lt;/section&gt;
  
          &lt;section class="contact-box"&gt;
              &lt;h5&gt;Get in Touch&lt;/h5&gt;
  
              &lt;ul&gt;
                  &lt;li&gt;&lt;span class="small"&gt;email.&lt;/span&gt; &lt;a href="#"&gt;info@ibetwhat.com&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;span class="small"&gt;ph.&lt;/span&gt; 655-606-105&lt;/li&gt;
                  &lt;li&gt;&lt;span class="small"&gt;add.&lt;/span&gt; East Pixel aBld. 99 &lt;br /&gt; City 9000&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/section&gt;
  
          &lt;section class="socials"&gt;
              &lt;ul&gt;
                  &lt;li class="facebook"&gt;&lt;a href="#"&gt;Facebook &lt;span&gt;Become a fan!&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="twitter"&gt;&lt;a href="#"&gt;Twitter &lt;span&gt;Need more feed&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="rss"&gt;&lt;a href="#"&gt;RSS &lt;span&gt;Be up to date&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/section&gt;
      &lt;/section&gt;
  
      &lt;section id="bottom"&gt;
          &lt;section class="shell"&gt;
              &lt;p class="foot-nav"&gt;
                  &lt;a href="home.html"&gt;Home&lt;/a&gt; &lt;span&gt;|&lt;/span&gt; 
                  &lt;a href="about.html"&gt;About&lt;/a&gt; &lt;span&gt;|&lt;/span&gt; 
                  &lt;a href="services.html"&gt;Services&lt;/a&gt; &lt;span&gt;|&lt;/span&gt; 
                  &lt;a href="projects.html"&gt;Projects&lt;/a&gt; &lt;span&gt;|&lt;/span&gt; 
                  &lt;a href="blog.html"&gt;Blog&lt;/a&gt; &lt;span&gt;|&lt;/span&gt; 
                  &lt;a href="contact.html"&gt;Contact&lt;/a&gt; &lt;span&gt;|&lt;/span&gt; 
                  &lt;a href="#"&gt;Bonus Pages&lt;/a&gt;
              &lt;/p&gt;
  
              &lt;p&gt;© 2012 My Company.&lt;/p&gt;
          &lt;/section&gt;
      &lt;/section&gt;
  &lt;/footer&gt;
  &lt;!-- End Footer --&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>