How can I make it refuse?

http://removed.com/jquery/test.html

When playing with jQuery and clicking β€œMore” in the upper left corner, it shifts the β€œBrown” layer. How can I keep the brown layer steady? This happens in Chrome, but not in Firefox.

+3
source share
4 answers

Personally, I put this fieldset in li, which is a child of one of them, which has more links. Then absolutely position it. IMO is a tidier code than positioning it absolutely on the page, this also means that if you move nav ul, you won’t have to move around the field again.

+5

, div#header_link , . position: absolute fieldset, .

, , a fieldset form, .

. CSS-,

+3

z- :

#bag_info{
   ...
position:relative;
top: 10px;
left: 10px;
z-index:1;
  }

#more
{
position:absolute;
}

#more_searchbox /*you'll have to name this according to the search box*/
{
z-index:2;
position:relative;
top: 10px;
left; 10px; /*px values that work*/
}

:)

, Chrome , FF , CSS .webkit CSS, Chrome.

0

, CSS

form {
   margin : 0;
   padding : 0;
}

, .

-1

Source: https://habr.com/ru/post/1743139/


All Articles