I want to put the background property on the slider type in the css, it contains the logo and menu, and if it's just a header. I inserted all the divs into the div slider, set the dimensions for it to 200x200 but it doesn't work for me, what could be the problem?
<!DOCTYPE html> <html> <head> <link href="main.css" rel="stylesheet"> </style> </head> <body> <div class="slider"> <div class="header"> <div class="logo"> <img class="logo" src="images/logo.jpg"> </div> <div class="menu"> Home About Us Portfolio Features Blog Pricing Shortcodes Contact </div> <div class="card-header"> <img src="images/header-card.jpg"> </div> <div class="search-header"> <img src="images/icon-search.jpg"> </div> </div> </div> </body> </html>
sss file:
.header{ display:inline-block; } .slider{ background-image: url('images/slider-bg.jpg');; width: 200px; height: 200px; }
background-image: url('../images/slider-bg.jpg')
- lexxl