html - Rogue Margin on Google Map element -


getting appears rogue margin off of google map element. gallery should on right margin stopping that. can't seem find what's producing margin. element inspector 'metrics'? tool shows there no margin, element highlighting on screen shows margin pushes right edge of page

enter image description here

my css element.

.gallery-map {   height: 320px; } @media (min-width: 415px) {   .gallery-map {     height: 416px;   } } @media (min-width: 780px) {   .gallery-map {     height: 500px;     width: 500px;   } } 

explicitly set margin , margin-right 0, tried contain in wrapping div (that removed rogue margin map element , put on new wrapping element) , several other things.

a link branch i'm working on this

the fix setting couple of inline-blocks

.gallery-map {     height: 320px;   display: inline-block;    @media (min-width: 415px) {     height: 416px;   }    @media (min-width: 780px) {     height: 500px;     width: 64.5%;   } } 

also gallery come along side needed add inline-block media query

.gallery {   height: 318px;   overflow-y: scroll;   overflow-x: hidden;   @media (min-width: 780px) {     width: 35%;     display: inline-block;   } } 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -