CSS: 100% ample amb fons

.divWithBgImage {
  width: 100%;
  height: 600px;
  background-image: url(image.jpg);
  background-repeat: no-repeat;
  background-size: 100%; //propotional resize
  background-size: 100% 100%; //stretch resize
<div class="divWithBgImage">
  some contents

Vist a https://stackoverflow.com/questions/12085881/css-100-width-and-background

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Scroll al inicio

We are using cookies on our website

Please confirm, if you accept our tracking cookies. You can also decline the tracking, so you can continue to visit our website without any data sent to third party services.