Answer the question
In order to leave comments, you need to log in
Why doesn't background-image work when testing on mobile devices?
Hello. Such a problem... I'm building an adaptive website. The markup is the most common.
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" style="background:#fff;">
<div class="home-wrapper">
<div class="top-line-one-px"></div>
<div class="top-menu-canvas"></div>
</div>
</body>
.home-wrapper{
width:100%;
}
.top-line-one-px{
width:100%;
height:1px;
background:#b7b7b7;
}
.top-menu-canvas{
width:100%;
height:43px;
background-image:url(img/top-menu-canvas-bg.png);
background-position:center center;
background-repeat: repeat-x;
}
Answer the question
In order to leave comments, you need to log in
To get started, I advise you to connect the bootstrap framework and the sass preprocessor. Connect media mixin to sass. And through it to make up an adaptive site. Firstly, the download speed increases, and secondly, adaptive layout is simplified.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question