html - External style not picked by div element -


i relatively new css please let me know if there silly mistake on below. while trying out 1 of examples on w3cschools used below code

<!doctype html> <html> <head> <style> div {     background-color: lightgrey;     width: 300px;     border: 25px solid green;     padding: 25px;     margin: 25px; } </style> </head> <body>  <h2>demonstrating box model</h2>  <p>the css box model box wraps around every html element. consists of: borders, padding, margins, , actual content.</p>  <div>this text actual content of box. have added 25px padding, 25px margin , 25px green border. ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>  </body> </html> 

and result correct green border , text in grey background.

however while trying same external css below.

this code in thumbnailtest.css

.dics{      background-color: lightgrey;     width: 300px;     border: 25px solid green;     padding: 25px;     margin: 25px;  } 

this html

<!doctype html> <html> <head> <meta charset="iso-8859-1"> <title>insert title here</title> <link rel="stylesheet" type="text/css"     href="c:\users\sam\documents\workspace\test_project\csstest\thumbnailtest.css">   </head> <body>      <div class="dics">this text actual content of box. have added         25px padding, 25px margin , 25px green border. ut enim ad minim         veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex         ea commodo consequat. duis aute irure dolor in reprehenderit in         voluptate velit esse cillum dolore eu fugiat nulla pariatur. excepteur         sint occaecat cupidatat non proident, sunt in culpa qui officia         deserunt mollit anim id est laborum.</div>    </body> </html> 

the same output not replicated appear plain text , no styling.

although path css correct have tried putting relative path not working

there no issue css inclusion works many other styles have used div not working

here required workspace image

enter image description here

there spelling mistake in referencing css file. thumbnailtest.css => thumbnailtext.css

op edited based on comment , solved problem.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -