• Kenya

    (@bijee)


    In my current WP theme, when I view on an iPad my sidebar looks out of wack. It does not size the items correctly.

    How can I update so that it appears correctly?
    I am currently testing everything out on my test site which can be viewed at http://www.test.womansreflection.com.

    Please hlep!?!?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Diana Thompson

    (@likethegoddess)

    I see what you mean by “out of wack.” The items in the sidebar are not scaling to work with the narrower layout of the iPad view.

    The images need changes to the CSS:

    width: 100%;
    height: auto;

    For the form, ads, and Twitter feed need a maximum width for each media query. You’ll need to the width and padding of the sidebar to calculate this. You’ll find this information either in the code itself or by inspecting the code in the browser with a (free) tool like Firebug for Firefox.

    To adjust the large screen view, for example, the sidebar width is 300px with 30px padding on each side. Take 300px and subtract 60px (30px for each side) to get 240px of usable space inside the sidebar. So, the code for the side bar in that media query would be:

    max-width: 240px;

    Repeat this process for each media query.

    Hope this helps.

    Thread Starter Kenya

    (@bijee)

    So are you saying i need to first use that custom CSS above? and THEN calculate and update all of the media queries?

    I know how to update it, but not sure what i need to update it to? or which ones i should update rather.

    Diana Thompson

    (@likethegoddess)

    For the images: Without seeing your whole style sheet, I’d say use the aside#sidebar-primary selector. So, the CSS would look like:

    aside#sidebar-primary selector{
      width: 100%;
      height: auto;
    }

    For the rest (form, ads, twitter feed), you’ll need to make the calculations for the remainder of the media queries and apply each amount as a max-width to the container div for each element and/or the element itself. If you run into trouble with the third party content, you might check with the vendor for tips to accomplish this.

    Thread Starter Kenya

    (@bijee)

    ok. thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fixing viewing on iPad’ is closed to new replies.