HighDots Forums  

Styling a forms with 2 columns

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Styling a forms with 2 columns in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tatania
 
Posts: n/a

Default Styling a forms with 2 columns - 07-24-2008 , 01:51 AM






Adobe has an online tuturial on how to use CSS (in Dreamweaver) style a form
with 2 columns.
http://www.adobe.com/devnet/dreamwea...ms_pt3_02.html
which I used on a site I'm working on. The form displays perfectly on IE 7 but
in Firefox the first column is at the bottom of the fieldset and the second
column is on top. http://www.aexcea.com/clientpageTest.php (Most of the fields
won't show because you have to log in and the fields return information from a
database.

Is there a fix for this or does this simply not work in Firefox? The code I
used it straight from Macromedia.

CSS is:
#formContainer {
width: 100%;
}

#Col1 {
width: 49%;
}


#Col2 {
width: 49%;
float: right; }

HTML is:


<div id="formContainer">
<!--Begin Forms -->
<form id="form1" name="form1" etc>
<fieldset>
<legend>Business Details</legend>

<!--Begin Column Two -->
<div id="Col2">
<div class="row"><label for="PrimaryEmail">Primary Email:</label>
<span class="mainbodyblack"><?=$bdremail;?></span></div>
<div class="row"><label for="PrimaryPhone">Primary Phone:</label>
<span class=" etc.></div>
</div>

<!--Begin Column One -->
<div id="Col1">

<div class="row"><label for="BusinessName">Business Name:</label>
<span class="mainbodyblack"><?=$bname;?></span></div>


<div class="row"><label for="BusinessAddressline1"> Business&nbsp;Address
line&nbsp;1:</label>
<span class="mainbodyblack"><?=$badd1;?></span></div>
<div class="row"><label for="BusinessAddressline2">Business&nbsp;Address
line&nbsp;2:</label>
<span class="mainbodyblack"><?=$badd2;?></span> </div>
<div class="row"><label for="City"> City: </label>
<span class="mainbodyblack"><?=$bcity;?></span> </div>
<div class="row"><label for="State/Province">State/Province:</label>
<span class="mainbodyblack"><?=$bstateProv;?></span> </div>
</div>
</fieldset>

</form>

</div> <!--End of 2 col form div -->


Reply With Quote
  #2  
Old   
Tatania
 
Posts: n/a

Default Re: Styling a forms with 2 columns - 07-24-2008 , 02:41 AM






I added a float left to Column 1 and that seems to have helped in Firefox. I should contact the author of that article and let him know you need that CSS to make it work in Mozilla.

Reply With Quote
  #3  
Old   
Mangler
 
Posts: n/a

Default Re: Styling a forms with 2 columns - 07-24-2008 , 10:57 AM



On Jul 24, 1:51*am, "Tatania" <webforumsu... (AT) macromedia (DOT) com> wrote:
Quote:
Adobe has an online tuturial on how to use CSS (in Dreamweaver) style a form
with 2 columns.http://www.adobe.com/devnet/dreamwea...g_forms_pt3_02...
which I used on a site I'm working on. The form displays perfectly on IE 7 but
in Firefox the first column *is at the bottom of the fieldset and the second
column is on top.http://www.aexcea.com/clientpageTest.php*(Most of the fields
won't show because you have to log in and the fields return information from a *
database.

*Is there a fix for this or does this simply not work in Firefox? The code I
used it straight from Macromedia.

*CSS is:
*#formContainer {
* * * * width: 100%;
*}

*#Col1 {
* * * * width: 49%;
*}

*#Col2 {
* * * * width: 49%;
* * * * float: right; }

*HTML is:

*<div id="formContainer"> * * * * * * * * *
* <!--Begin Forms --
* * * * * * * *<form id="form1" name="form1" etc
*<fieldset
*<legend>Business Details</legend

*<!--Begin Column Two --
* <div id="Col2"
* * * * *<div class="row"><label for="PrimaryEmail">PrimaryEmail:</label
* <span class="mainbodyblack"><?=$bdremail;?></span></div
*<div class="row"><label for="PrimaryPhone">Primary Phone:</label
*<span class=" etc.></div
*</div

*<!--Begin Column One --
*<div id="Col1"

*<div class="row"><label for="BusinessName">Business Name:</label
*<span class="mainbodyblack"><?=$bname;?></span></div

*<div class="row"><label for="BusinessAddressline1"> Business&nbsp;Address
line&nbsp;1:</label
*<span class="mainbodyblack"><?=$badd1;?></span></div
*<div class="row"><label for="BusinessAddressline2">Business&nbsp;Address
line&nbsp;2:</label
*<span class="mainbodyblack"><?=$badd2;?></span> * *</div
*<div class="row"><label for="City"> City: </label
*<span class="mainbodyblack"><?=$bcity;?></span> </div
* <div class="row"><label for="State/Province">State/Province:</label
* <span class="mainbodyblack"><?=$bstateProv;?></span> </div
*</div
* * * * </fieldset

*</form

*</div> *<!--End of 2 col form div --
Did you figure this out yet?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.