html - responsive view breaking on a single page -
so trying center align these both images on mobile platforms problem breaking viewport causing horizontal scroll on mobile devices . using wordpress avada theme.
this managed do
<ul style="list-style-type: none; margin-left: 0px; margin-top: 40px; float: left; position: absolute; display: inline-block;"> <li style="font-size: 15px; padding-bottom: 1px; padding-top: 17px;"><a href="http://www.google.com">traps</a></li> <li style="font-size: 15px; margin-top: 2px;"><a href="http://www.google.com">shoulder</a></li> <li style="font-size: 15px; "><a href="http://www.google.com">chest</a></li> <li style="font-size: 15px; "><a href="http://www.google.com">biceps</a></li> <li style="font-size: 15px; "><a href="http://www.google.com">abs</a></li> <li style="font-size: 15px; "><a href="http://www.google.com">forearms</a></li> <li style="font-size: 15px; margin-top: 78px; "><a href="http://www.google.com">quadriceps</a></li> </ul> <img style="max-width: 100%; height: auto; margin-left: 115px; margin-top: 7px;" src="http://www.beyondshredded.pk/wp-content/uploads/2016/10/excercise-1-2.jpg" /> <img style="max-width: 100%; height: auto; margin-top: 7px;" src="http://www.beyondshredded.pk/wp-content/uploads/2016/10/excercise-2-2.jpg" /> <ul style="list-style-type: none; margin-top: 50px; position: absolute; display: inline-block;"> <li style="font-size: 15px; padding-bottom: 25px; padding-top: 10px;"><a href="http://www.google.com">neck</a></li> <li style="font-size: 15px; margin-top: 0px; padding-bottom: 10px;"><a href="http://www.google.com">lats (back)</a></li> <li style="font-size: 15px; padding-bottom: 2px; margin-bottom: 2px;"><a href="http://www.google.com">triceps</a></li> <li style="font-size: 15px; padding-bottom: 13px;"><a href="http://www.google.com">middle(back)</a></li> <li style="font-size: 15px; padding-bottom: 3px;"><a href="http://www.google.com">lower(back)</a></li> <li style="font-size: 15px; margin-top: 125px; padding-top: 6px;"><a href="http://www.google.com">calves</a></li> </ul> @media screen , (max-width: 800px){ .center-my-image { margin: auto !important; } } @media screen , (max-width: 432px){ .center-my-image { margin: auto !important; float:none; } }
hers link http://www.beyondshredded.pk/blah/
can point out causing viewport break please if wana see whats happening go responsive mode @ shrink down 432px width.
Comments
Post a Comment