heqagon 0 Posted July 28, 2020 Report Share Posted July 28, 2020 <link href="styles.css" rel="stylesheet" type="text/css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" href="http://localhost/favicon/browserIcon"> <title>Altraz</title> HTML ^ Full code: <!DOCTYPE html> <html> <head> <link href="styles.css" rel="stylesheet" type="text/css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" href="http://localhost/favicon/browserIcon"> <title>Altraz</title> </head> <body> <h1>Altraz</h1> </body> </html> body { background-color: dimgrey; } CSS ^ Whenever I run this, the background is still white. Quote Link to post Share on other sites
shaili_shah 1 Posted July 31, 2020 Report Share Posted July 31, 2020 Hii, Good morning. I run this code and i get the gray background of body. Thanks! Quote Link to post Share on other sites
Funce 42 Posted August 2, 2020 Report Share Posted August 2, 2020 This would greatly depend on where the css file is located, and where the html file is located. Are they in the same Folder/Directory? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.