As the title says Im really new and I was watching a youtube tutorial but my background-image doesnt display anything. The code is really symple and the url path is correct. Im not sure whats going on. Any suggestions?
/* home-info
========================== */
.home-info {
background: url(C:\Users\XXXXX\Desktop\Programs\Websites\MyLife\images\aes.jpg);
/* background-color: rgb(118, 182, 141); */
padding: 10em 0;
background-size: cover;
}
this part of the code that is set to be a comment works fine.
/* background-color: rgb(118, 182, 141); */
I have tried putting ("..\aes.jpg"); and ('..\aes.jpg'); and it still doesnt work. Could it be the image resolution it self (its 2048x1442)?
Also here is a part of my html code that has some meta inside
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My Life</title>
<link href="styles.css" rel="stylesheet" type="text/css">
As far as I know that should allow the website to be resised without it looking weird and that also works.
Any suggestions are really appreciated. Thank you!