aegyed
aegyed

Reputation: 1330

Dropdown menu pushes content away

http://borbelykertlabor.hu/

On the top menu click on "BLOG" then you will find a menu on the right side under that circle logo if you click on "Dísznövények" the menu will drop down, if there is a too long string content between <li> elements it pushes the whole ul menu to left.

Upvotes: 0

Views: 146

Answers (1)

Eli Gassert
Eli Gassert

Reputation: 9763

Your kategoriak element is absolute positioned. But it has not been given a width. The fact that it originally aligns and looks good in the corner is just coincidence!

So when the content changes, it just grows the width to fit the content. If you restrain this element with a width (e.g. width: 225px) , then the menu will not change the width and instead the content will wrap.

Upvotes: 2

Related Questions