Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 912315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:21:34+00:00 2026-05-15T17:21:34+00:00

I am using a CMS system, which has a template for generating forms, with

  • 0

I am using a CMS system, which has a template for generating forms, with predefined CSS.

The CSS file in use is here

The form I am using at the moment is:

<div class="bodyline">
    <?php $theform->startForm($pageTitle)?>

    <div id="rightSideDiv">
        <fieldset>
            <legend><label for="report">Report</label></legend>
            <p>
                <?php $theform->showField("towel")?>
            </p>
        </fieldset>
    </div>

    <div id="leftSideDiv">
        <fieldset>
            <legend><label for="name">Info</label></legend>

            <p class="big"><?php $theform->showField("firstname"); ?></p>
            <p class="big"><?php $theform->showField("lastname"); ?></p>
            <p class="big"><?php $theform->showField("country"); ?></p>
            <p class="big"><?php $theform->showField("passport"); ?></p>
            <p class="big"><?php $theform->showField("email"); ?></p>
            <p class="big"><?php $theform->showField("roomnumber"); ?></p>
            <p class="big"><?php $theform->showField("hostel"); ?></p>
            <p class="big"><?php $theform->showField("checkin"); ?></p>
            <p class="big"><?php $theform->showField("checkout"); ?></p>
            <p class="big"><?php $theform->showField("locker"); ?></p>
            <p class="big"><?php $theform->showField("towel"); ?></p>
            <p class="big"><?php $theform->showField("tabno"); ?></p>

        </fieldset>

    </div>

</div>

This should in theory show a box on the left, and a box on the right. Instead, rightSideDiv is either displayed above or below leftSideDiv, taking up the entire width of the form.

The resultant HTML is

<form action="/1/phpbms/modules/micro%20hospitality/guests_addedit.php?id=1" method="post" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input value=" " onclick="return false;" type="submit"></div>        <div id="topButtons"><div class="saveCancels"><input accesskey="s" title="Save (alt+s)" id="saveButton1" name="command" value="save" class="Buttons" type="submit"><input id="cancelButton1" name="command" value="cancel" class="Buttons" onclick="this.form.cancelclick.value=true;" accesskey="x" title="(access key+x)" type="submit"></div></div>
        <h1 id="h1Title"><span>Guests</span></h1>
    <div id="rightSideDiv">
        <fieldset>
            <legend><label for="report">Report</label></legend>
            <p>
                <input id="towel" name="towel" value="1" class="radiochecks" type="checkbox"> <label id="towelLabel" for="towel">Towel</label>          </p>

        </fieldset>
    </div>

    <div id="leftSideDiv">
        <fieldset>
            <legend><label for="name">Info</label></legend>

            <p class="big"><label for="firstname" class="important">First Name</label><br><input id="firstname" name="firstname" value="Jason" size="32" maxlength="64" class="important" type="text"></p>

        </fieldset>

    </div>

        </form>

Now, the included forms work fine, and I can´t figure out why.

The included form code for a page that works:

<div class="bodyline">
    <?php $theform->startForm($pageTitle)?>

    <div id="rightSideDiv">
        <fieldset>
            <legend><label for="importance">importance / privacy</label></legend>
            <p>
                <?php $theform->showField("importance")?>
                <?php $theform->showField("private")?>
            </p>
        </fieldset>
    </div>

    <div id="leftSideDiv">
        <fieldset>
            <legend><label for="content">memo</label></legend>
            <p id="timeStampP">
                <button id="timeStampButton" type="button" class="graphicButtons buttonTimeStamp" accesskey="t" title="Add time stamp to memo (Access Key - t)">time stamp</button>
            </p>
            <p>
                <textarea name="content" cols="45" rows="23" id="content"><?php echo htmlQuotes($therecord["content"])?></textarea>
                <input id = "username" type="hidden" value="<?php echo formatVariable(trim($_SESSION["userinfo"]["firstname"]." ".$_SESSION["userinfo"]["lastname"]))?>" />
            </p>
        </fieldset>
    </div>

</div>

and the resultant HTML

<form action="/1/phpbms/modules/base/notes_addedit1.php" method="post" name="record" onsubmit="return submitForm(this)" id="record"><div id="dontSubmit"><input value=" " onclick="return false;" type="submit"></div>        <div id="topButtons"><div class="saveCancels"><input accesskey="s" title="Save (alt+s)" id="saveButton1" name="command" value="save" class="Buttons" type="submit"><input id="cancelButton1" name="command" value="cancel" class="Buttons" onclick="this.form.cancelclick.value=true;" accesskey="x" title="(access key+x)" type="submit"></div></div>
        <h1 id="h1Title"><span>Note/Task/Event</span></h1>

    <div id="rightSideDiv">
        <fieldset>
            <legend><label for="importance">importance / privacy</label></legend>
            <p>
                <select name="importance" id="importance"> <option value="3">Highest</option>

<option value="2">High</option>
<option value="1">Medium</option>
<option value="0" selected="selected">Normal</option>
<option value="-1">Low</option>
<option value="-2">Lowest</option>
</select>
                        <input id="private" name="private" value="1" class="radiochecks" checked="checked" type="checkbox"> <label id="privateLabel" for="private">private</label>          </p>
        </fieldset>

    </div>

    <div id="leftSideDiv">
        <fieldset>
            <legend><label for="content">memo</label></legend>
            <p id="timeStampP">
                <button id="timeStampButton" type="button" class="graphicButtons buttonTimeStamp" accesskey="t" title="Add time stamp to memo (Access Key - t)">time stamp</button>
            </p>

            <p>
                <textarea name="content" cols="45" rows="23" id="content"></textarea>
                <input id="username" value="Administrator" type="hidden">
            </p>
        </fieldset>
    </div>

        </form>

Is there any reason for the behavior I described?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:21:34+00:00Added an answer on May 15, 2026 at 5:21 pm

    leftSideDiv has no float. Either redefine it in the css or set it as an inline-style:

    float:left
    

    http://phpbms.org/browser/trunk/phpbms/common/stylesheet/mozilla/pages/base/notes.css#L26

    It will also need a width attached to it, depending on how wide your containers are. This might help:

    http://www.smashingmagazine.com/2007/05/01/css-float-theory-things-you-should-know/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Symphony CMS which as default has a mod_rewrite that rewrites all directories.
I am using a modal system which displays content on click, i will use
I'm building a filemanager using backbone.js. Its part of a CMS (content managament system)
I'm creating a simple CMS using kohana3 in which user can add project to
I am working in the confines of a CMS system, which defines certain fields
I am working within the confines of a php based CMS like system, which
I am working with a CMS like system, phpBMS, which defines a certain way
I'm currently creating blog system, which I hope to turn into a full CMS
been using N2 CMS for a while now, good CMS system. One thing thats
I'm in the process of writing a small/basic CMS system using Symfony 1.4 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.