How to align my grid table to the centre

  • metalsunny
    Asked on June 4, 2016 at 7:28 AM

    i created a grid table which when i access it on mobile phone. it overlapped outside and my text gets cuts off.

    So i had reduce the grid table width to 450 and this time when i view it on android phone its perfect but the only problem is that when i view it on laptop after changing the width to 450 the grid table alignment is to the left side but i want aligned to the centre on full webview on laptop.

     

    Please how do i align my grid table to the centre

    Jotform Thread 853760 Screenshot
  • Welvin Support Team Lead
    Replied on June 4, 2016 at 8:03 AM

    Add margin: 0 auto; in the grid iframe codes:

    <iframe frameborder="0" scrolling="auto" style="border:none;margin: 0 auto;" src="https://www.jotform.com/grid/61501995590057" width="450" height="1080" alt="How to align my grid table to the centre Image-0" /></iframe>

    The grid table is embedded in the form so you have to edit it in the form builder. 

  • metalsunny
    Replied on June 4, 2016 at 8:26 AM

    wow>>>Yes!!!

    Thank you. my problem has been solved. i am happy now.  10 stars to jotform.

     

     

  • Jan
    Replied on June 4, 2016 at 8:40 AM

    Glad to hear that you are happy. On behalf of Welvin, you are welcome. Let us know if you need any help. Thank you.

  • metalsunny
    Replied on June 4, 2016 at 8:43 AM

    But excuse me. the solution worked for every form i used it for except for this grid report on my home page. can you help me fix this one on the home page? i want it at the centre too but its not workingHow to align my grid table to the centre  Image 1 Screenshot 30How to align my grid table to the centre  Image 2 Screenshot 41

  • metalsunny
    Replied on June 4, 2016 at 8:45 AM

    Please help me fix the one on my homepage above its size 450X200

  • Mike_G JotForm Support
    Replied on June 4, 2016 at 9:44 AM

    On your ANNOUNCEMENT form, can you try to add the CSS codes below, please?

    div#text_17 iframe {

        position: relative !important;

        left: 84px;

    }

    How-to-Inject-Custom-CSS-Codes

    I hope this helps. If not, please do not hesitate to get back to us. Thank you.

  • metalsunny
    Replied on June 4, 2016 at 9:57 AM

    i have solved it by cloning one of the good forms and re-adjusting all its content.

     

    it works now.

     

    Thank you

  • Jan
    Replied on June 4, 2016 at 11:32 AM

    Glad to hear that the issue was resolved by cloning the good forms. Thank you for updating us. Have a nice day.