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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:06:41+00:00 2026-05-31T01:06:41+00:00

I want to make my HTML and CSS like above to display a white

  • 0

enter image description here

I want to make my HTML and CSS like above to display a white frame with a heading around these two form fields. The HTML I’ve prepared is just the fields:

<div class="fl20 smallg">&mdash;&mdash; Fysisk person &mdash;&mdash;</div>
        <div class="clear"></div>       
        <div class="fl20">F&ouml;rnamn:</div>
        <div class="fl20"><input type="text" size="60" value="<%=editPerson.getFornamn() %>" name="<%= PandoraFieldConstants.FIELD_FORNAMN %>"></div>
        <div class="clear"></div>
        <div class="fl20">Efternamn:</div>
        <div class="fl20"><input type="text" size="60" value="<%=editPerson.getEfternamn() %>" name="<%= PandoraFieldConstants.FIELD_EFTERNAMN %>"></div>
        <div class="clear"></div>

Can you tell me what I should do to create the white frame with the heading “fysisk person”?

Thank you

Update

using the fieldset tag nearly does what I want, but I need to put the heading inside the frame like above and move the whole thing to the left since it displays to far to the right after the change, and some text is white instead of black so I need to change that too:
enter image description here

Update

Now I’m close. This is the mockup that shows what we want:

enter image description here

and here is my result this far:
enter image description here

I basically only need to do this with CSS instead of tables and make the button with its text to the right display lower on the page. How can I finish it this way?

The code now is

<fieldset class="whiteborder">
         <legend>Fysisk person</legend> 
        <div class="fl20">F&ouml;rnamn:</div>
        <input type="text" size="60" value="<%=editPerson.getFornamn() %>" name="<%= PandoraFieldConstants.FIELD_FORNAMN %>">
        <div class="fl20">Efternamn:</div>
        <input type="text" size="60" value="<%=editPerson.getEfternamn() %>" name="<%= PandoraFieldConstants.FIELD_EFTERNAMN %>">
        </fieldset></td><td>
        <div class="fl20">S&ouml;k person/f&ouml;retag<input type="button" value="S&ouml;k" onClick="getElementById('popupSokNamn').style.display=''"></div></td></tr></table>
  • 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-31T01:06:43+00:00Added an answer on May 31, 2026 at 1:06 am

    As @Bas Tuijnman said, use the fieldset. To expand, you then apply CSS to it increase the border size and adjust the padding/margins for display layout.

    JSFiddle

    Style:

    body { 
        background-color: #333333; 
    }
    
    .whiteborder {
        color: #ffffff; 
        border: 3px solid #ffffff; 
        padding: 10px; 
        margin: 10px;
    }
    ​
    

    Html:

    <fieldset class="whiteborder">
        <legend>Fysisk Person:</legend>
        <div class="fl20">F&ouml;rnamn:</div>
        <div class="fl20"><input type="text" size="60" value="<%=editPerson.getFornamn() %>" name="<%= PandoraFieldConstants.FIELD_FORNAMN %>"></div>
        <div class="clear"></div>
        <div class="fl20">Efternamn:</div>
        <div class="fl20"><input type="text" size="60" value="<%=editPerson.getEfternamn() %>" name="<%= PandoraFieldConstants.FIELD_EFTERNAMN %>"></div>
    </fieldset>​
    

    Edit: In order to get the button/extras to align how you want them, you should encase both blocks in separate divs that are floated left. Then apply appropriate padding/margins to the text block to achieve the spacing you’re looking for.

    <div style="float: left;">
        <!-- Fieldset html goes here -->
    </div>
    <div style="float: left; padding: 20px; margin: 10px;">
        <!-- text/buttons markup goes here -->
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Want to make a vocabulary list in HTML & CSS that looks like this:
I want to make an HTML form with 2 select boxes. The selected option
I have html markup like this <button id=button1 onclick=alert='yup'></button> and I want to make
So I want to make a HTML news letter to be sent out. I
I am traversing a HTML document using javascript DOM. I want make a list
I want to make some design tweaks. Here is the code for html: <div
I want to make a website, but all I know is basic HTML and
I'm trying to make simple image gallery with html/css and a bit of javascript.It's
I've got this layout that i want to cut into html/css, but i'm struggling
I want to make a button like this. As you can see, there is

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.