html - Responsive map with mark (div element) -


everybody have problem responsive map (this image not real map). try stick div element on map example: mark(div) on paris when resize window mark in other country :d want stick element 1 country. try this:

html:

<div class="container-fluid map">     <div class="circle"></div> </div> 

css:

.map {     background-image: url(../images/only-map.png);     background-repeat: no-repeat;     background-size: 100% 100%;     height: 500px;     width: 100%;     position: relative; }  .circle {     width: 10px;     height: 10px;     background-color: #fff;     position: absolute;     top: 200px;     right: 400px;     float: right; } 

i try position absolute, fixed. background size cover,contain, 100% 100%, still not working.

thank every advance

you can this:

html:

<div class="map rel">    <div class="dot abs">    </div> </div> 

css:

.map{   width: 500px;   height: 500px;   background-color: blue; }  .dot{   width: 20px;   height: 20px;   background-color: red; }  .rel{   position: relative; }  .abs{   position: absolute;   top: 8px;   left: 8px; } 

you can play around here. hope helps.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -