Customized great on computer – iPad jumbled

  • Author
  • #1038060


    I’m a beginner but was able CSS to get the exact look wanted. But when viewed on an iPad or iPhone the menu bar overlaps the content. Mobile version is turned off in the preferences currently, but it does not seem to make any difference. Is there a way to modify the code to have it look the same on mobile devices?

    The blog I need help with is


    I would recommend looking at the theme’s original stylesheet to see how the theme author’s have targeted different devices (if the theme has a responsive design, there will be @media rules for them) and follow that model.

    In the Twenty Twelve CSS here:

    You can see that there is an @media rule for large screen sizes at the bottom. Here is what the rule looks like:

    @media screen and (min-width: 960px) {
        /* a bunch of other CSS */

    Looking in the custom CSS you applied, I found an example of some CSS that doesn’t make sense for an iPad:

    .main-navigation div {
    	margin:0 auto;

    Some of that may work, but the margin-right rule seems way too big for an iPad. However, adding a bunch more CSS to target just iPads seems like doing extra work. Instead, I would recommend editing the custom CSS you already added by wrapping it in the @media rule I mentioned above. That way, you’ll apply your CSS changes just to large screens and let Twenty Twelve keep its default for smaller screen sizes (it should just work). If you wanted to make tweaks to smaller screen sizes (like the iPad), you could then add in additional media queries for that.

The topic ‘Customized great on computer – iPad jumbled’ is closed to new replies.