1 reply [Last post]
nanci's picture
Last seen: 9 years 34 weeks ago
Timezone: GMT+2
Joined: 2013-06-13
Posts: 1
Points: 2

hi everyone,
I'm experiencing a little issue on Android web browser.

my website is made out of 4 divs, without content for now, just a colored background with 100% height, plus homepage, containing the menu.

the divs are 100% height. each menu item scrolls down to it's specific anchor div. they actually scroll down "more". I think it's due to the fact that the homepage is actually 100% less address bar, so if I scroll it manually a little bit, I can see it "growing".

max-height doesn't work. is it there a way to like inhibit this behavior?

thank you.

gary.turner's picture
Last seen: 1 year 49 weeks ago
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Not tested

Add top padding equal to the nav bar's height to each section. It is generally not a good idea to set the height of elements. When prototyping, use typical content, e.g. Lorem Ipsum text with varying word counts.



If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.