small issue on header
-
Hi all.
This time I’m facing a small issue on header (TwentySeventeen) caused by the responsive layout.
I don’t put site title and wording in header (display:none;), and only a logo.
The logo is made with an animated gif which acts only one time when you open the homepage.
The animated gif changes height: starts with one line of wording and at the end of action becomes three lines wording: then it stops with the three lines.
To explain better: the logo is made of three lines which in anim appear one by one, then (after first time anim) it remains permanently displayed in its three lines.This means that the height of the gif is variable from start to end.
I added some white space on header to match the final height (no problem since there are not title and wording).
Below branding there is the top menu, in same background color of branding header.—
Well: when you change page the header has a very fast height variation … for a moment it is short (just below the first step of gif height), then becomes normal height (included menu banner).
When pages are preloaded or fast load this issue is not perceptible, but when a page is slow to load this bad effect takes also 2 seconds, with a very bad result.—
Tried several css solutions, but no good result: sticky header, pos fixed or absolute, change header height with percentage >> the problem is unchanged.Since it depends on the fluid layout, the only one solution is to change the relative unit (height % or regulated by height content with padding) with fixed:
if you write the exact height of the div (in my case 188 px incl banner and menu) all works perfectly.But this could be a conflict problem for rest of responsive layout:
I also thought to fix with media queries but it’d be a crazy list of cases.Only I have to try to add some wording, declaring their fixed line-height, and with “visibility:hidden” just to keep a fixed “blank space” in the bannner.
Do you have any other solution? Thanks and sorry for long explanation.
Mauro
- The topic ‘small issue on header’ is closed to new replies.