Why does not CSS appy to the HTML in Visual Studio? -
Why does not CSS appy to the HTML in Visual Studio? -
i working on simple asp.net project in visual studio 2013. added html, css , js file(each empty). created links in between the pages, , set them same folder.
<head> <title>analog clock</title> <script type="text/javascript" src="script.js"></script> <link type="text/css" rel="stylesheet" href="style.css"> </head>
i figured out, didn't mispelt anything, css doesn't apply on html ids. html body:
<svg width="140" height="140"> <circle id="clock-face" cx="70" cy="70" r="65" /> <line id="h-hand" x1="70" y1="70" x2="70" y2="38" /> <line id="m-hand" x1="70" y1="70" x2="70" y2="20" /> <line id="s-hand" x1="70" y1="70" x2="70" y2="12" /> <line id="s-tail" x1="70" y1="70" x2="70" y2="56" /> <text x="62" y="18">12</text> <text x="126" y="76">3</text> <text x="66" y="130">6</text> <text x="7" y="76">9</text> </svg>
and css (stlye.css):
#clock-face{ stroke:black; stroke-width:2px; fill:white; }
i looked stackoverflow , found link: css not beingness applied in visual studio 2012 designer?
it says alter link this.(obviously set folders name instead of content)
<link href="/content/default.css" rel="stylesheet" type="text/css" /> <% if (false) {%> <link href="../../content/default.css" rel="stylesheet" type="text/css" /> <% } %>
so did i, got same result. apologies dumb question, don't know doing wrong.
html css visual-studio hyperlink
Comments
Post a Comment