1 reply [Last post]
nanci
nanci's picture
Offline
newbie
Last seen: 7 years 15 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
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 13 hours 49 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9767
Points: 3849

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.

cheers,

gary

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