Home Forums Weaver Xtreme Theme Mobile Centered Image

Topic Resolution: Answered
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #59572

    I’m using my-img-clear to make some images centered on mobile devices in portrait mode.

    I ran into someone using a Samsung Galaxy S8 Active and it doesn’t work. I can see it okay on my smaller iPhone. And in landscape, both phones are not needing.

    How can I force it to work on a slightly bigger size?

    @media only screen and (max-width:580px) {#content img.my-img-clear {display:block;float:none;margin-left:auto;margin-right:auto;}}
    @media only screen and (max-width:580px) {#content img.add-line {display:block;}}

    I looked up specs for S8 – here it is. http://screensiz.es/galaxy-s8-2

    I’m terrible at math — this answer may be obvious, but not to me.

    Best Answer

    This reply has been accepted as the best answer.

    It is almost impossible to know the virtual resolution of the browser, just increase the 580px value until it does what you want


    Thanks, Scrambler.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.