Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS in Asp.net webform
    text
    copied!<p>I added a css to a webform. The css worked fine with a html file and also in design view in visual studio. But when it is run in the IIS, the css is not displayed. Please help me out.</p> <p><strong>CSS</strong></p> <pre><code>body{ background: #efefef; } .head { margin-top:0px; min-height:40px; min-width: 102%; background-color:green; color:blue; text-align:center; margin-left:-10px; margin-right:0px; padding-top:10px; } #content { margin-top:10px; margin-bottom:10px; margin-left:0px; min-height:100%; } #wrapper { width:83%; min-height:inherit; background-color:red; float:left; } #sidebar { width:15%; float:right; } #sidebar1 { background-color:green; min-height:20%; margin-bottom:2px; } #sidebar2 { min-height:40%; background-color:blue; margin-bottom:2px; } #sidebar3 { background-color:violet; min-height:40%; } </code></pre> <p><strong>HTML</strong></p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt; &lt;link type="text/css" rel="stylesheet" href="E:\Demo\main.css" /&gt; &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;div class="head"&gt;Thiagarajar College of Engineering&lt;/div&gt; &lt;div id="content"&gt; &lt;div id="wrapper"&gt; srini &lt;/div&gt; &lt;div id="sidebar"&gt; &lt;div id="sidebar1"&gt;ji&lt;/div&gt; &lt;div id="sidebar2"&gt;sr&lt;/div&gt; &lt;div id="sidebar3"&gt;ni&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload