using HTML div and CSS -
so, html code
<head lang="en"> <meta charset="utf-8"> <title>test</title> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body> <div> <div class="header"> <input name="1" value="1" disabled /> </div> </div>
and css-file:
.header { background-color: yellow; color: green }
the problem have, css code isn't changing html, made quick test , put css code in html file , worked.
i know that, if use "id" insead of "class" works, task not change html file
my problem don't want css code in html file, possible?
edit: tried online worked, seems problem of webstorm
since set in html file:
<link rel="stylesheet" href="style.css" type="text/css">
your style.css
file must in same folder html file.
also, ;
missing @ end of color: green
in css file, css need looks like:
.header { background-color: yellow; color: green; }
and body tag isn't closed, html need looks like:
<head lang="en"> <meta charset="utf-8"> <title>test</title> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body> <div> <div class="header"> <input name="1" value="1" disabled /> </div> </div> </body>
Comments
Post a Comment