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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:51:42+00:00 2026-06-13T17:51:42+00:00

Sample form: <!DOCTYPE html> <html> <head> <title></title> <style> fieldset {padding: 50px;} </style> </head> <body>

  • 0

Sample form:

<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
fieldset {padding: 50px;}
</style>
</head>
<body>
<form>
 <fieldset>
  <legend>Form</legend>
  <p>
  <label for="name">Name </label><input id="name" type="text">
  </p>
  <p>
  <label for="email">Email </label><input id="email" type="text">
  </p>
 </fieldset>
</form>
</body>
</html>

It works in all major browsers, but there’s no padding top in IE8. Any cross-browser solution?

  • 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-13T17:51:43+00:00Added an answer on June 13, 2026 at 5:51 pm

    This seems to a bug in older versions of IE, possibly caused by some confusion around the legend element (which is nested inside fieldset but rendered in a special way), so that the padding gets misplaced above the form. I can more or less reproduce the issue on IE 9 in Quirks Mode and in IE 8 and IE 7 emulation mode.

    As a workaround, do not set top padding on the fieldset element. Instead, set a top margin on the first normal element inside it (not counting the legend element).

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

Sidebar

Related Questions

<html> <head> <title>JSP Form</title> <style> </style> </head> <body> <form action=TestFileHandling.jsp method=post> <fieldset> <legend>User Information</legend>
<html> <head> <title>JSP Form</title> <style> </style> </head> <body> <form action="TestFileHandling.jsp" method="post"> <fieldset> <legend>User Information</legend>
I have a script.I will show sample. <form> <textarea id='input'></textarea> <input onclick=convert() value=go function
I have a simple form like this : <form method=post name=change_pass id=change_pass action=change_pass2.php> <input
This simple code is not working in Chrome or Safari... <!DOCTYPE HTML> <html> <head>
I'm building a simple web-form and one of my input fields simply won't dress
I made a simple base64 decoder form, which takes in an input through a
I'm using simple_form for a form and passing in some URL parameters to prepopulate
So i have a simple form with a script to check the data before
I am posting a simple form in codeigniter. When I submit the form and

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.