Reducing height of html document

I have this situation: I made 2 div's, both should be at the exact same spot. By JavaScript, I can activate one if I want and hide the other. That's how I did it:
This works pretty well. But I noticed that the place where you would expect the second div (without the top:-100px) is used by blank space. What is the most elegant way to get rid of that space again? I don't want that my webusers think they can scroll down more but there is just white space left. Thanks for your tips! I hope my description is clear enough, it's not that easy to describe. ;)

以上就是Reducing height of html document的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏