The Bootstrap Fieldset Legend is being completely obscured by the Panel Panel-default

I have encountered a problem where my panel is covering the content of the div above it, despite having two fieldsets before the panel. Please refer to the screenshots below:

1.) Display with Fieldsets and details 2.) After adding the panel, the Panel-heading extends to cover the entire content

https://i.sstatic.net/TX1SN.png

https://i.sstatic.net/nX5V5.png

<div class="container">
    <div class="enquiry">

        <fieldset class="col-md-12">
            <legend><h3>Nag</h3></legend>
            <div class="row form-group">
                <div class="col-md-4">
                    <h4>DOB:&nbsp;<span>22-April-2001, Male</span> </h4>
                    <h4>Enquired:&nbsp;<span>07 </span> </h4>
                    <h4>Academic Year:&nbsp;<span>2017-2018</span></h4>
                </div>
                <div class="col-md-4">
                    <h4>Nagarjuna  (Father)</h4>
                    <h4><i class="fa fa-phone"></i>&nbsp;9635821471</h4>
                    <h4><i class="fa fa-envelope"></i>&nbsp;<span class="enq-parent-email"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4628272168272d2d2f06212b272f2a6825292b">[email protected]</a></span> </h4>
                </div>
                <div class="col-md-4">
                    <h4>
                        <i class="fa fa-home fa-2x"></i>

                    </h4>
                </div>
            </div>
        </fieldset> 

        <fieldset class="col-md-12 margin-bottom">
            <legend><h3>Overview</h3></legend>
            <div class="row form-group margin-bottom">
                <div class="col-md-4">
                    <label>Current Name: </label>
                    <input type="text" class="form-control" readonly="" value="Name">
                </div>
                <div class="col-md-4">
                    <label>Current Loasdaf Name: </label>
                    <input type="text" class="form-control" readonly="" value="asdfaiwewrw">
                </div>
                <div class="col-md-4">
                    <label>fasdaskdlfa;skdljfa;skldf</label><br>
                    <input type="radio" name="transport" readonly="" checked=""> Yes
                    <input type="radio" name="transport" readonly=""> no
                </div>
            </div>
            
            // More input fields here
            
        </fieldset> 

    </div>
    <br>
</div>

https://i.sstatic.net/nX5V5.png

This issue seems unusual to me as I haven't come across such problems before.

Looking forward to receiving some assistance. Thank you in advance!

Answer №1

To utilize the row class in Bootstrap, follow these steps:

<div class="container">
        <div class="row">

         <div class="enquiry">
            <fieldset class="col-md-12">
                .................................
            </fieldset> 
            <fieldset class="col-md-12 margin-bottom">
                ........................................
            </fieldset>
          </div>    
        </div>
        <div class="row">

            <h1>
              Insert your content here
            </h1>

        </div>

    </div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Mastering the Art of jQuery: Easily Choosing and Concealing a Div Element

I'm currently facing challenges in removing a div upon successful AJAX completion. The issue I'm encountering is that the word "Added" appears twice after success, indicating that I am not properly selecting the two divs containing it. Any sugges ...

What is the best way to maintain a socket.io ID while navigating through dynamic HTML files?

Utilizing express and node for server hosting, socket io is employed to track users by saving their unique socket.id. There are two pages in the webapp - a login page and a content page. app.get("/", function(req, res) { res.sendFile(__dirname + "/log ...

Positioning Bootstrap table in the middle of the screen

I need help figuring out how to keep my bootstrap table centered in the middle of the page, instead of adjusting based on the tab selected within a bootstrap nav tab. Currently, it centers around the active tab, but I want it to stay in the middle no matte ...

Modifying drop down select list by adding or removing options entirely

How can I use JavaScript code to dynamically add or remove a dropdown list for selecting language and proficiency when a user clicks a button? I have tested out various codes from different sources, but none of them seem to be working! function addLang ...

Guide to implementing the offcanvas sidebar with bookmarks using Bootstrap

On my website, I have implemented a convenient offcanvas sidebar using Bootstrap 5. This sidebar contains html bookmark links that allow users to quickly navigate to specific points on the page by clicking on them. Here is an abbreviated version of the cod ...

PHP is unable to properly process JSON data that contains HTML tags

I'm encountering an issue with my website that communicates with a Java REST server using Jersey. Everything is functioning properly except when I try to receive a JSON object with HTML tags embedded in the content. After running a println statement ...

Employing AJAX to retrieve data from a different server when hovering the mouse over

I've been trying to figure this out since yesterday, but I can't seem to get it right. My Ajax function is currently working with a local server. function tooltipajax(r_ID) { var str ; if (window.XMLHttpRequest) {// code for IE7+, F ...

difficulty with closing nested Mat-dialogBoxes

I am facing an issue with passing data between multiple dialog boxes in my parent raster component. I have a parent raster component that opens the first dialog box, followed by a second dialog box. My goal is to pass data from the last dialog box back to ...

What is the best way to target outer elements only using CSS selectors?

Having trouble with a CSS selector: $("td.cv-table-panel-element") This selector returns a list of elements, shown in the screenshot linked below: https://i.stack.imgur.com/RoVMj.png Each element represents a column in a table with unique content. The ...

The <input> tag connected to an image is unable to show the jpg file

I'm curious to know why the code snippet below successfully displays an image: <td width='100%';margin-top:20px; padding-top:40px;> <h1> Requests</td> <td><img src= 'http://aisgrosurvey01/images/logo.jpg' ...

CSS Sidebar not fully implementing all styles listed

I'm currently in the process of designing my main webpage and have encountered an issue with the sidebar. While the menus are displaying correctly on the left side, the sidebar background and width are not functioning properly. As a result, only the m ...

Connect Angular to a dynamic table of information

Currently delving into Angular and facing an issue where I need to utilize an mvc handler that returns a generic JsonObject. This means the object could be of various types and have different numbers of columns. Rather than statically defining columns in t ...

Transfer documents using ajax and javascript

Is there a way for me to directly upload a zip file or png file using my upload button and receive all the data in my upload.php file? I've tried implementing this code, but it doesn't seem to be functioning properly and there are no errors showi ...

Using R to scrape Wikipedia HTML tables containing images, text, and empty cells

I have been exploring the intriguing Wikipedia table of Michelin-starred restaurants in NYC, where each restaurant's star rating is visually represented by pictures. https://i.sstatic.net/q35U1.png After successfully scraping the essential data from ...

What are the steps to change table characteristics?

I currently have this segment of HTML code: <table cellspacing="0" cellpadding="0" width="100%"> After validating my HTML document, I discovered that these attributes are outdated. However, removing them would affect the alignment of my website. I ...

How to change the date value in an HTML input field of type date using JavaScript

Struggling with manipulating an HTML date input type using javascript? You're not alone. The common approach to manipulating the date is like this: var c = new Date(); c.setDate(c.getDate() + 1); You can get the date from the input element: c = do ...

How can I set the end date value in JQuery datepicker to be empty

Solution: <html> <head> <script type="text/javascript"> $(function(){ $("#datepicker1").datepicker({ dateFormat: 'dd-mm-yy', onSelect: function(selected){ $("#datepicker2").datepicker("option" ...

The JavaScript progress bar fails to function properly when implemented with object-oriented JavaScript programming

I am currently attempting to refactor this demonstration in an object-oriented manner, following the example found at: https://www.w3schools.com/howto/howto_js_progressbar.asp Here is my code: document.getElementById("barButton").addEventListener("clic ...

Angular 6 and Typescript: How to Map Objects in Arrays within Arrays

We currently have two arrays named speisekarte (consisting of 10 objects) and essensplan (containing 8 objects). const speisekarte = [ { id: 11, name: 'Kabeljaufilet', price: 3.55, type: 'with fish' }, { id: 12, name: 'Spaghet ...

Creating responsive CSS layouts for various device sizes

My webpage features a form with a prompt for the input box, followed by the input box itself. I want to implement two different layouts based on the device accessing the page. For cell phones, I want everything stacked vertically. However, for computers, ...