html - Using position absolute in mobile Responsive design -


music player

consider image. here have background image(only outer part of player not buttons timing , progress bar). want place play, next, previous , stop buttons in places exact same places.

#playbuttonimg{     margin-left:-95px;     position: absolute;     top:20px; } #pausebuttonimg{     margin-left:-95px;     position: absolute;     top:20px;     display: none; } #prevbuttonimg{     position: absolute;     /*margin-left:-15px;*/     top:24px; } #stopbuttonimg{     position: absolute;     margin-left:18px;     top:24px; } #nextbuttonimg{     position: absolute;     margin-left:50px;     top:24px; } 

if use style, in desktop browser comes in mobile devices margin-left being negative makes button go beyond screen , positive margins visible not placed accordingly.

and mobile website should fit in mobile devices. how can in css? there way without using media queries? or there other way can make fit across mobile devices?

you can add position:relative; main parent div.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -