How do I add a border around my php form?

I’m wanting to be able to added a white border at 2px around my php form. How can I do this?

[php]<?php

This block must be placed at the very top of page.

--------------------------------------------------

require_once( dirname(FILE).’/form.lib.php’ );
phpfmg_display_form();

--------------------------------------------------

function phpfmg_form( $sErr = false ){
$style=" class=‘form_text’ ";

?>

Please check the required fields
  1. First Name: *
  2. Last Name: *
  3. Phone: *
  4. E-Mail: *
  5. Address: *
  6. City & ZIP: *
  7. Type of Service: *
    In Home
    Off Site
    Remote
  8. Computer Make:  
    ex. Dell or Hp
  9. Computer Model:  
    ex. Inspiron 620
  10. Comments:  
    <div id='field_9_tip' class='instruction'></div>
    </div>
    
  11. Security Code: *
  12.         <li>
            <div class='col_label'>&nbsp;</div>
            <div class='form_submit_block col_field'>
    
                <input type='submit' value='Submit' class='form_button'>
                <span id='phpfmg_processing' style='display:none;'>
                    <img id='phpfmg_processing_gif' src='admin.php?mod=image&amp;func=processing' border=0 alt='Processing...'> <label id='phpfmg_processing_dots'></label>
                </span>
            </div>
            </li>
    
<?php phpfmg_javascript($sErr); } # end of form function phpfmg_form_css(){ ?>
<style type='text/css'>

fieldset{border: 1px solid #781351;width: 20em}legend{color: #fff;background: #ffa20c;border: 1px solid #781351;padding: 2px 6px}
body{
margin-left: 18px;
margin-top: 18px;
}

body{
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 13px;
style=“border: solid 2px #40a0c0

}

#wrapper {
width:500px;
}

select, option{
font-size:13px;
}

ol.phpfmg_form ol, ol.phpfmg_form {

list-style-type:none;
    display:inline;
padding:0px;
margin:0px;

}

ol.phpfmg_form ol li{
margin-bottom:5px; list-style-type:none;
clear:both;
display:inline;
overflow:hidden;

}

.form_field, .form_required{
font-weight : bold;
}

.form_required{
color:red;
margin-right:8px;
}

.field_block{
margin-bottom: 10px;
}

.form_submit_block{
padding-top: 3px;
}

.text_box, .text_area, .text_select {
width:200px;
}

.text_area{
width:100%;
height:100px;
overflow:hidden;
}

.form_error_title{
font-weight: bold;
color: red;
}

.form_error{
background-color: #F4F6E5;
border: 1px dashed #ff0000;
padding: 10px;
margin-bottom: 10px;
}

.form_error_highlight{
background-color: #F4F6E5;
border-bottom: 1px dashed #ff0000;
}

div.instruction_error{
color: red;
font-weight:bold;
}

hr.sectionbreak{
height:1px;
color: #ccc;
}

#one_entry_msg{
background-color: #F4F6E5;
border: 1px dashed #ff0000;
padding: 10px;
margin-bottom: 10px;

<?php phpfmg_text_align();?> <?php } # end of css # By: formmail-maker.com ?>[/php]

hello danh30,

use below code

instead of

SR

That worked but its real tight around the form. How can I give the border more space from the form?

hello danh30,
for form space from border add padding to style. try this

SR

Sponsor our Newsletter | Privacy Policy | Terms of Service