Home Forums Weaver Xtreme Theme Mobile Centered Image

Topic Resolution: Answered

This topic contains 2 replies, has 2 voices, and was last updated by  GR8FL 2 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #59572
    Answered

    GR8FL
    Participant

    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.

    #59580
    Best Answer

    scrambler
    Moderator

    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

    #59592

    GR8FL
    Participant

    Thanks, Scrambler.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.