Fork me on GitHub

Form spacing problem how do you get around it.  Bottom

  • Code

    <ul>
                    <!--[foreach item=tsetting from=$tsettings]-->

                                <form action="<!--[pnmodurl modname="pnguildmgr" type="user" func="main"]-->" method="post" id="SETTING<!--[$tsetting.sid]-->">
                                <input type="hidden" name="tplinclude" value='pnguildmgr_user_view.htm' />
                                <input type="hidden" name="gid" value='<!--[$gid]-->' />
                                <input type="hidden" name="psetting" value='<!--[$tsetting.name]-->' />
                            <li>
                                <a href="#" onclick="document.getElementById('SETTING<!--[$tsetting.sid]-->').submit();return false;" title="<!--[$tsetting.name]-->"><!--[$tsetting.name]--></a>
                            </li>
                                </form>
                <!--[/foreach]-->
    </ul>


    This code because of the form breaks up my lists with double spacing how the heck do I get around it.

    It ends up looking like this.


    • [*:5f242c328a]Red

    • [*:5f242c328a]Yellow



    • [*:5f242c328a]Red
    • [*:5f242c328a]Yellow


    How do I get rid of the spacing any ideas?
  • The list items don´t have to be inside the forms, have them outside the form tags - they already reference the form via it´s id. You would also wrap the form in a div and position it absolutly as all the fields are hidden, it would not take up any space then.

    -Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Thanks that worked for this one. Creating a smoot and clean interface without bizzaro spacing is challenging for me still.
  • Glad to have helped.

    I think anyone contemplating making a module - or any web app for that matter should become proficient in XHTML / CSS beforehand. From previous experience I can assure you that it will save lots of grief.

    Good interface design can make a good module a great module :)

    -Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment

This list is based on users active over the last 60 minutes.