Home > Software design >  CSS file is not loading
CSS file is not loading

Time:12-11

Currently, I am making a project on the HRMS system I have built an HTML page named profile(taking tutorial help) but its CSS file is not loading

I expected proper working of the profile page but it is not working.

CodePudding user response:

you can use link tag with attribute rel='stylesheet' and href attribute to add the external file of css ex: link rel='stylesheet' href='ma

CodePudding user response:

Have you double-checked your css formatting?

<html>

<head>
<style>    
body{padding:50px;margin-top:0px;background:#fff;}
</style> 
</head>

<body>

Or

<html>

<head>
<link rel="stylesheet" href="styles.css"> 
</head>

<body>

Or: does the css file exist? Is it in the same directory if you have

<link rel="stylesheet" href="styles.css">

And not in another folder such as:

<link rel="stylesheet" href="folder/styles.css">

or

<link rel="stylesheet" href="/folder/styles.css">

(Don't remember which one is the proper formatting)

  •  Tags:  
  • css
  • Related