Unable to Use CSS in visual studio design for asp.net
-
Hi guys I have use the normal of creating the css. However in the design of the asp.net, it can't detect the CSS. class style when i written in the HTML code. For example my CSS is in a css folder then css is like body{ font color:blue; } .text{ font color:black; } then in my design page where html is i import the css file href="css/filename.css" and then code in testing the text doest not work it only follow the body class but can't detect .text class KaKaShi HaTaKe
-
Hi guys I have use the normal of creating the css. However in the design of the asp.net, it can't detect the CSS. class style when i written in the HTML code. For example my CSS is in a css folder then css is like body{ font color:blue; } .text{ font color:black; } then in my design page where html is i import the css file href="css/filename.css" and then code in testing the text doest not work it only follow the body class but can't detect .text class KaKaShi HaTaKe
HatakeKaKaShi wrote:
<span style="text">testing</span> the text doest not work it only follow the body class but can't detect .text class
Perhaps then, you intended to use the
class
attribute rather than thestyle
attribute... ;)Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
-
Hi guys I have use the normal of creating the css. However in the design of the asp.net, it can't detect the CSS. class style when i written in the HTML code. For example my CSS is in a css folder then css is like body{ font color:blue; } .text{ font color:black; } then in my design page where html is i import the css file href="css/filename.css" and then code in testing the text doest not work it only follow the body class but can't detect .text class KaKaShi HaTaKe
<span class="text">testing</span> style is used to define css attributes...but a CSS class must be called using class not by style
Ashish Sehajpal
-
Hi guys I have use the normal of creating the css. However in the design of the asp.net, it can't detect the CSS. class style when i written in the HTML code. For example my CSS is in a css folder then css is like body{ font color:blue; } .text{ font color:black; } then in my design page where html is i import the css file href="css/filename.css" and then code in testing the text doest not work it only follow the body class but can't detect .text class KaKaShi HaTaKe
try this <span class="text">testing</span>