This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

[closed] Formatting Output


  1. mpivon
    Member

    Hi,

    I'm a total newbie when it comes to coding and stuff, so forgive my ignorance.

    I need to insert a tag somewhere so that all pages left justify, rather than having all output centered on the page. i.e.: insert a <p align="left"> somewhere so that everything aligns left?

    Posted 16 years ago #
  2. yuniar

    Do you want to align the whole text on a page? If so, you can use the text-align property for the body element.

    Something like this:

    <html>
    <head>
    <style type="text/css">
    body {
      text-align: left;
    }
    </style>
    </head>
    
    <body>
    <h1>This is header 1</h1>
    <h2>This is header 2</h2>
    <h3>This is header 3</h3>
    </body>
    
    </html>

    Is that what you need?


    MachForm Founder

    Posted 16 years ago #
  3. mpivon
    Member

    I think so. I get what you are saying.

    Just -- I want ALL OUTPUT - EVERYTHING - to be left aligned. So I'm looking for a page to edit? Like, do I edit all of view.css or style.css or do I insert an echo statement somewhere? All the formatting has to happen BEFORE the script is *embedded*.

    Here's the scenario: I have one form on a page, and based on how someone responses, the result either redirects to another page (from a redirect to another URL configured in the form software), or a different form loads in the IFRAME (from code in a hook statement)

    When the page loads in the IFRAME (from a hook statement), the reloaded & embedded code becomes CENTERED on a page which was originally left-aligned...

    So, for this install, I just want to modify ALL the code so that it all left aligns rather than opens in an IFRAME centered on the page.

    Kinda goes like this:

    Visitor hits Page 1: http://www.MYDomain.com/FORM/
    Answers a simple yes or no question...

    If the answer is YES
    - Redirect to http://www.MYDomain.com/Welcome/
    - All is good

    If the answer is NO,
    - load http://www.OTHERDOMAIN.com/MachForm/view.php?id=7
    - This page loads centered.
    - This is underneath a header on the page, which is left aligned
    - So I want to move the IFRAME over so that it is left aligned, too.

    Posted 16 years ago #
  4. yuniar

    "If the answer is NO,
    - load http://www.OTHERDOMAIN.com/MachForm/view.php?id=7"

    -----

    So this page is loaded inside an IFRAME?
    For IFRAME, I think you'd better use embed.php instead of view.php. Since the embed.php is a stripped down version of your form (no container) and left aligned already.

    Let me know the result.


    MachForm Founder

    Posted 16 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.