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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:36:12+00:00 2026-06-12T05:36:12+00:00

I have three controls on my web form of three drop down lists. I

  • 0

I have three controls on my web form of three drop down lists.

I want to create a graphical “box” around these controls. The reason for this is that selecting these controls would be “STEP 1” of my process. So I want to put a box around these controls and call it “Step 1”

How would I go about doing this with CSS?

Example:

box around form elements

  • 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-12T05:36:14+00:00Added an answer on June 12, 2026 at 5:36 am

    A fieldset with a legend provides a visual and semantic grouping for form controls. You can then style this as desired with CSS. A fieldset is somewhat unique in that the legend is capable of visually interrupting the border of its parent fieldset (possible with other elements, but difficult).

    Example: http://jsfiddle.net/NUMcr/1/

    <fieldset>
    <legend>Group 1</legend>
        <input type="text" />
        <asp:Textbox runat="Server" id="txt1" />
        <!-- etc -->
    </fieldset>
    
    fieldset {
        margin: 8px;
        border: 1px solid silver;
        padding: 8px;    
        border-radius: 4px;
    }
    
    legend {
        padding: 2px;    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web page that uses three controls to allow a user to
i have a table (System.Web.UI.WebControls). each row does have three cells. in cells' controls
In VB.net 3.5 SP1 I have a Windows Form with three DataGridView controls. One
I have an aspx page with three web controls: one to control the List
I have a Web Content Form containing a Div and various Server controls like
I have used Cascading Drop Downs (for Make and Model) in my web form.
So we have three FLEX controls hosted within a JBOSS server instance, and an
I have a .aspx page that loads three separate .ascx controls to represent adding,
I have two array and three button in segment control i want that when
I have an ASP.NET Web Form (C#) that users fill out, it has a

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.