What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Background url() not working

Hi All,

could anybody help to tell me why CSS code block:
.img-bcg {
height: calc(100vh -77.8px);
background: url("https://unsplash.com/photos/Q0mDOn9gWk8") center/cover no-repeat;
} not working in my project.

Thanks alot for your help.

Your best bet would be to upload it to your server and call it from there with background: URL("yourdomain.com/images/file");. Also, try with and without quotations.