Home > database >  CSS class not apply in HTML File
CSS class not apply in HTML File

Time:06-18

hi i linked the css file but it didnt apply in the website please help me out

>     <html>
>     <head>
>         <title>itay's website</title>
>         <link rel="stylesheet" href="style.css" />
>     </head>
>     <body>
>         <div >
>     
>         </div>
> 
>     
>     </body>
>     
>     
>     
>     </html>

CodePudding user response:

Make sure main div has height and width, otherwise you won´t notice changes...

CodePudding user response:

Check whether you have given the right path for the CSS file or not. Or else put some content and apply css styles on them and see the changes.

  •  Tags:  
  • css
  • Related