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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:50:27+00:00 2026-06-15T14:50:27+00:00

I have a html page as below, the tags code is : <fieldset> <legend>Tags</legend>

  • 0

I have a html page as below,
enter image description here
the tags code is :

<fieldset>
          <legend>Tags</legend>
          <div>
              <label>
                <input type="checkbox" name="col" value="summary" checked="checked" />
                Name
              </label>
                  ......
                   </div>
        </fieldset>

But i want to make the page as below:
enter image description here

In this screenshot, when i click the Columns, it will be fold and the tags invisible. Any one know how to do this? Add a CSS or JS? Thanks

  • 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-15T14:50:28+00:00Added an answer on June 15, 2026 at 2:50 pm

    I know is not fieldset, but its design is looking exactly as the one you posted, so I guess this makes the trick. The code below is what you’r looking for, and some explanations about it are below the code:

    <head>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
    <script>
       $(document).ready(function(){
          $('#title').click(function(){
             $('#tags_check').toggle();
          });
       })
    </script>
    
    <style type="text/css">
       #content {
          position: relative;
          padding: 10px;
       }
    
       #title {
          border: 1px solid grey;
          position: absolute;
          background-color: #ccc;
          top: -5px;
          left: 15px;
          z-index: 1;
          cursor: pointer;
       }
    
       #tags_check {
          border: 1px solid grey;
          position: relative;
          z-index: 0;
          top: 3px;
          padding: 5px;
       }
    </style>
    </head>
    
    <body>
    <div id="content">
       <div id="title">Columns</div>
       <div id="tags_check">
          <input type="checkbox" name="col" value="summary" checked="checked" /> Name1
          <input type="checkbox" name="col" value="summary" checked="checked" /> Name2
       </div>
    </div>  
    </body>
    

    I’m using jquery, because is incredible easier than writtingh any other javascript, and I’m loading the library via CDN. As you see, show or hide is pretty easy, just when the document is loaded, toggle between both states, show or hide. I include the ID of the elements (as you can see I changed the layout) to pick them up easily.

    About the desing, with fieldset… is going to be complicated achieve what you posted. Better just two divs, ‘position: relative’ to move them easily up and down. The CSS shows z-index to put one over the oter, and this only work on relative and absolute elements, along the top and left properties. Hope you like it!

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

Sidebar

Related Questions

I have the below xpath expression //div[@class=post-content]//img which runs on a html page, scanning
I have a html page that allows users to submit a file. Below is
I have the HTML structure for my page as given below. I have added
I have an html page with a link like this: <a href=javascript:window.print()>Print QR code</a>
I have a test page Test.aspx , below is the code i have it
I am learning ajax. Please find below code, <%@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1%>
I have HTML page where windows media player is embedded. It works very well
I have HTML page with some HTML element with ID=logo . I need to
How to find all files in directory? I have HTML page in some directory.
I have an html page that open a popup window when the page loads.

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.