• Hi …I have a wp website with a responsive theme, looks great on my phone. I created a custom page template to use with a form i created. My problem is although my site is responsive my new form page is not showing up as responsive on my mobile device. Any chance someone may be able to help me out?
    the rest of the site is fine i think its just the template page I created is missing something

Viewing 6 replies - 1 through 6 (of 6 total)
  • Can you post a link to the page in question?

    Thread Starter Rhino111

    (@rhino111)

    Hi Thanks…

    The following is the page in question that isn’t working as far as the mobile view goes
    http://www.appianseo.com/letsgetstarted/

    Hi The main page is http://www.appianseo.com/ that is working great on the mobile view.

    You have this bit of CSS:

    #page-content {
      width: 640px;
      margin: 20px auto;
      text-align: left;
    }

    which sets the width of the container to be 640 pixels, regardless of the window size. If you deleted that line from the page template (and possibly added some left and right margins), you’d be good:

    #page-contact {
      margin: 20px 20px;
      text-align: left;
    }
    Thread Starter Rhino111

    (@rhino111)

    Hi Thanks! it is definitely working on the mobile device now but on the website version the content now stretches across the entire screen.

    You could set a maximum width on the container and also use a @media query to set a different maximum width on smaller screens:

    #page-content {
      max-width: 640px;
      margin: 20px auto;
    }
    
    @media screen and (max-width: 796px) {
      #page-content {
        max-width: 90%;
        text-align: left;
      }
    }

    With this code, the container would be a maximum width of 640 pixels, with 20 pixels of margin on the top and the bottom and centered within the screen. However, if the browser window is 769 or less pixels wide, the maximum width of the container is 90% of the window, instead.

    Thread Starter Rhino111

    (@rhino111)

    Worked Perfect Thanks so much!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Responsive Page’ is closed to new replies.