My css code on visual studio to use a background image from the file
file://C:\Users\jjwil\OneDrive\Desktop\OceanClientWebsite\hypixle.jpg (hypixle.jpg is a picture)
won't work as when i do CNTRL+Rclick to open it in visual studio it pops up with a message saying unable to open 'hypixle.jpg' file is a directory. and when i run the website the image is not there but when i go onto file explorer and find hypixle.jpg and say open with visual studio it opens the picture in a new tab with no problem
here is the css code:
file://C:\Users\jjwil\OneDrive\Desktop\OceanClientWebsite\hypixle.jpg (hypixle.jpg is a picture)
won't work as when i do CNTRL+Rclick to open it in visual studio it pops up with a message saying unable to open 'hypixle.jpg' file is a directory. and when i run the website the image is not there but when i go onto file explorer and find hypixle.jpg and say open with visual studio it opens the picture in a new tab with no problem
here is the css code:
CSS:
* {
margin: 0 ;
padding: 0 ;
}
.header{
background-image: url(file://C:\Users\jjwil\OneDrive\Desktop\OceanClientWebsite\hypixle.jpg);
height: 100vh;
width: 100%;
}