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 4616768
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:01:48+00:00 2026-05-22T02:01:48+00:00

I am using bitrepository’s Ajax PHP form for my site and am styling it

  • 0

I am using bitrepository’s Ajax PHP form for my site and am styling it using their CSS stylesheet. Please go to http://diginnovations.com/dig-v4 to view the site.

Everything displays correctly in all browsers (even IE8) except for Firefox 3.6. The word “Comment” is displaying outside the textarea, which is also in the wrong place. I used “position: relative;” in order to move the textarea and submit buttons around.

Here is the PHP code:

$acf_form_fields = array('sender_name' => array('name'        => 'Name',
                                          'mandatory'   => 1,
                                          'validation'  => array('basic' => 1),
                                          'type'        => 'input',


                                          'errors'      => array('none' => 'Fill your name')),


                'sender_email' => array('name'        => 'Email',
                                          'mandatory'   => 1, 
                                          'validation'  => array('basic' => 1, 'email' => 1),
                                          'type'        => 'input',


                                          'errors'      => array('none'    => 'Fill an e-mail address', 
                                                                 'invalid' => 'Fill a valid e-mail address')),  

                'sender_telephone' => array('name'   => 'Phone Number',
                                            'mandatory'   => 0,
                                            'type'        => 'input'),


                                'sender_message' => array('name'        => '<div class="textbox">Comment</div>',
                                          'mandatory'   => 1, 
                                          'validation'  => array('basic' => 1, 'min_chars' => 15),
                                          'type'        => 'textarea',
                                          'attributes'  => array('rows'  => 5, 
                                                                 'cols'  => 35),

                                          'errors'      => array('none'      => '<div class="textboxerror">Fill your message</div>',
                                                                 'min_chars' => 'Your message should have at least [min_chars] characters.')));

And here is the CSS:

/* Label, Input, Textarea */

#ajax_contact_form div.wrap { position: relative; margin: 0;}
#acf_fields div.wrap label.in_field { position: absolute; top: 0; left: 0; width: 160px; display: block; margin: 11px 5px 5px 6px; padding: 0; color: #777; }
#ajax_contact_form div br {display: none;}

#acf_fields div { padding: 1px 0 1px 0px; }

#acf_fields div input { display: inline; font-size: 17px; }
#acf_fields div textarea { position: relative; left: 300px; bottom: 150px; font-size: 17px; display: inline; }

#acf_fields p.acf_escts { padding: 5px 0; }
#acf_fields label.acf_escts { width: 199px; padding-left: 0px; margin: 2px 17px 5px 0px; text-align: right; float: none; }

/* Input, Textarea, Select */
#acf_fields input, textarea, select { -moz-box-shadow: 0 0 3px #eeeeee; background:-moz-linear-gradient(top, #ffffff, #eeeeee 1px, #ffffff 5px); margin: 5px 5px 5px 0; padding: 2px; height: 30px; width: 269px; }
#acf_fields input, select { float: none; border: 2px solid #999; color: #333; -moz-border-radius: 3px; }
#acf_fields textarea { position: relative; left: 300px; bottom: 150px; width: 269px; height: 130px; border: 2px solid #999; color: #333; -moz-border-radius: 3px; }

.textbox { position: relative; left: 300px; bottom: 150px; display: inline; z-index: 150; }

.textboxerror { position: relative; left: 300px; bottom: 150px; display: inline; z-index: 150; }

Obviously if I move them to display correctly in FF 3.6, it messes up the positioning for all of the other browsers.

Any suggestions? Thanks in advance.

  • 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-22T02:01:49+00:00Added an answer on May 22, 2026 at 2:01 am

    You have several structural problems.

    1) You shouldn’t put a div inside of a label — label is inline, div is block, use a span or something — use HTML validator, you have several validation bugs.

    2) instead of moving the textarea and .textbox individually, why not move the div.wrap

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

Sidebar

Related Questions

Using the http://www.ifans.com/forums/showthread.php?t=132024 post from another question i am allowing the user to enter
Using Google Maps InfoBox - http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/docs/reference.html Currently the map will scroll - pan control
I have a code download image from link http://www.bitrepository.com/download-image.html When start is link format:
Using MVC2 I have an AJAX form which is posting to a bound model.
Using jQuery rotate http://code.google.com/p/jqueryrotate/wiki/Examples to animate an object from 0 degrees to 40 degrees
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using CRM 4, I have an entity form that contains a tab with an
Using VB6 I am using checkbox and combobox in a Form. When i click
Using php/html, I want to retrieve email addresses (plus other information) from MySQL and
using the FB PHP SDK... what is the equivalent method of the FB JS

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.