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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:44:56+00:00 2026-05-26T12:44:56+00:00

i ran into a bit of a problem and i don’t see how to

  • 0

i ran into a bit of a problem and i don’t see how to solve it (either because i’m really dumb, or my googling skills are problematic).

See, i have this contact form that fits perfectly into my webpage.

However, when i don’t fill in any of the blanks, the PHP form is supposed to echo a line “Please fill in the required spaces” inside the form itself.

Problem is, whenever it does that, the whole form expands and the HTML ends up looking broken.

Is there any way i can fit my PHP form into the HTML box without it expanding unnecessarily?

My dimensions for the HTML side has a width of 651, and a height of 351.

  • 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-26T12:44:56+00:00Added an answer on May 26, 2026 at 12:44 pm

    Boxes in HTML/CSS will not expand to fit content if you give them explicit dimensions. Their sizes are only dynamic in a particular direction if you don’t specify a size in that direction. A box with a height set to 600px will always have a height of 600px regardless of whether or not the content needs more space than that.

    You have a couple of options here. The first and most obvious one is don’t specify an explicit height on the container. If you do that, then the container will size itself vertically to fit its contents.

    Your other option is to set overflow behaviour on the box with CSS. You could set overflow:hidden (which will chop off any content that overflows the box and hide it), or overflow:auto (which will add a scroll bar to the box if its content overflows the box). Finally, you can set overflow: scroll, which means the box will always have a scroll bar, whether it needs one or not.

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

Sidebar

Related Questions

Today I ran into something a bit weird. I used mini-profiler to see the
I'm a Java newbie and ran into a bit of a problem. I want
I have ran into a bit of a problem with my understanding of the
I have ran into a bit of problem. Originally, I have the following input
I've ran into a bit of a problem trying to run synchronous AJAX call
I've ran into a bit of a stupid problem today: In my project I
I've ran into a really weird problem while working on a large project. I
I ran into a bit of a problem writing a wrapper for a third
I'm currently experimenting with JOGL, and I ran into a problem which is really
I ran into a bit of trouble while trying to load an external HTML

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.