• Resolved Pvteyez

    (@pvteyez)


    I have a brand new app I’m working on and using twentyfouteen for the first time. I noticed that on my desktop which is 1280×800 it fills the screen perfectly but on my laptop which is 1440×900 I get a huge white stripe down the right side of the screen. I’ve done this in other languages but not WP. How can I make the display fit the users resolution?

Viewing 5 replies - 1 through 5 (of 5 total)
  • this is controlled by the theme’s CSS files;

    Twenty Fourteen for example is set to a maximum width of 1260px; see style.css about line 800;

    /**
     * 3.0 Basic Structure
     * -----------------------------------------------------------------------------
     */
    
    .site {
    	background-color: #fff;
    	max-width: 1260px;
    	position: relative;
    }
    Thread Starter Pvteyez

    (@pvteyez)

    That sounded good but I tried it by creating a child theme and adding the empty style.css to it then added the change you recommended. No dice. I tried clearing the browser cache and reloading and it still didn’t come up right. Finally I made the change from 1260 to 1440 in the style.css in the parent theme’s home and it still doesn’t change the original problem. Any thoughts?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What was the CSS you added in your Child Theme style.css file for this change?

    added the change you recommended

    I did not recommend any change – the posted code is what you’ll find in the unedited theme.

    you need to add the same style to the child theme’s styles with a wider width.

    don’t edit the parent theme; always clear the browser cache.

    can you post a live link to illustrate what you have right now?

    Thread Starter Pvteyez

    (@pvteyez)

    Oops, never mind I figured it out. First, I forgot to activate the child theme after I created it, second, I also had to change the max-header width from 1260 to 1440 as well. That seemed to take care of that problem.

    Thanks for the help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adjusting for screen resolution’ is closed to new replies.