Y
Y
YdarSvertyhi2017-03-04 18:39:04
css
YdarSvertyhi, 2017-03-04 18:39:04

How to stretch the background to full width on the mob. devices?

There is a website infocraft.pe.hu/. At the background on the mobile. devices, an indent appears on the left and a large indent below. How to fix? Help a newbie! Here is the code: https://jsfiddle.net/690hywgk/ (only here without images).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sergey, 2017-03-04
@zorro76

no viewport, dimensions for adaptability are not set correctly,
for example you write: width: 900px;
and you need: width: 100%; max-width: 900px

A
Ankhena, 2017-03-04
@Ankhena

1. Set correct meta viewport
2. Set html and body height and minimum height 100%
3. Don't apply background to html, better to body or main wrapper block.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question