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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:23:34+00:00 2026-06-09T13:23:34+00:00

I have a php form and also the css code. I am trying to

  • 0

I have a php form and also the css code. I am trying to modify it so the message field goes to the right. I tried to put the Name and Email fields inside a div and the message and submit fields inside another div, then put these two inside a third div but I can’t make it work, the best I got was to move all the fields to the right, but that is not what I want. I don’t know php so not sure if it should work like it does in html.

I already customized it all I could but to align the div’s horizontally is my problem.

You can see what I want to achieve in the below image.

enter image description here

I tried to put the code here in the right way but I can’t do it. Sorry for that, I am new with all this stuff. So below there is a link from where you can download the files.

The files I have been working with are: ‘contactform.php’ and ‘contact.css’

php and css files

  • 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-06-09T13:23:35+00:00Added an answer on June 9, 2026 at 1:23 pm

    At first we need to increase the width of the fieldset:

    #contactus fieldset {
        width: 580px;
    }
    

    Now create two divs. One around the Name and Email fields and one around Message and Submit.

    Finally set the style attribute (or better use classNames) with either float: left; or float: right;.

    That’s it. Hope it helps?!

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

Sidebar

Related Questions

I know a bit of PHP and so also HTML/CSS, and I have made
Okay, so I have the form set to my PHP page. I also have
I have a strange problem with my code. i'm trying to create a form
I have a php form which saves these values to the database: id rand
I have a PHP form with 4 text fields and 2 checkboxes. The checkboxes
I have a php form that saves the info to my database and sends
I have a php form that has a known number of columns (ex. top
I currently have a PHP form that uses AJAX to connect to MySQL and
I am noob with php so pardon my ignorance. I have created php form
I have a basic PHP form (a few fields and 2 checkboxes, I want

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.