Answer the question
In order to leave comments, you need to log in
When loading the page, the block seems to jump out on the left, how to fix it?
I'm making a shop . Already almost completed, but one garbage torments.
When the page loads, the block with the main content seems to jump out from left to right. It spoils the visual experience. Tell me, what is the problem and how can I fix it?
Answer the question
In order to leave comments, you need to log in
show content after download finished:
#hideAll
{
position: fixed;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
background-color: white;
z-index: 99;
}
<div style="display: none" id="hideAll">здесь ваш контент</div>
<script type="text/javascript">
document.getElementById("hideAll").style.display = "block";
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question