Content within a Bootstrap 4 Jumbotron spills out of its container

I'm trying to create a Jumbotron component using the following code:

<div className="jumbotron">
<div>
<h6 className="display-6">Reset Password</h6>
<p className="lead">We've just sent password reset instructions to <u>{this.email && this.email}</u></p>
<hr className="my-4" />
</div>
</div>

The issue I'm facing is that the content extends beyond the jumbotron boundaries, as shown here:

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

Any suggestions on how to correct this?

UPDATE: Another example shows similar overflow in CSS:

<div class="container">
    <div class="jumbotron">
         <h6 class="display-6">Activate account</h6>
         <p class="lead"><!-- react-text: 215 -->Please verify your email by entering the code we sent to <!-- /react-text --><u><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2a487541454d4b446a54b47">[email protected]</a></u></p>
        <button class="btn btn-primary">Resend verification code</button>
    </div>
</div>

Once again, the content does not fit within the jumbotron:

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

Answer №1

In this HTML example, I have demonstrated the usage of Bootstrap 4 to style the content. However, it appears that the styling might be overridden or altered in your specific scenario. The rendered output on the browser may differ due to various factors.

<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet"/>
<div class="jumbotron">
<div>
<h6 class="display-6">Reset Password</h6>
<p class="lead">We've just emailed you password reset instructions at <u>{this.email && this.email}</u></p>
<hr class="my-4" />
</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

Smart method for repositioning multiple elements on the display

Imagine we have multiple divs displayed on a screen: https://i.stack.imgur.com/jCtOj.png ...and our goal is to move them collectively, either to the left: https://i.stack.imgur.com/KBfXC.png ...or to the right: https://i.stack.imgur.com/c1cUw.png An ...

Passing an identification number through a Bootstrap modal

Hey there! I've got a bootstrap modal set up to approve certain data in my MySQL database. I've successfully passed the ID of the selected data, but now I need some assistance. Here's a snippet of my PHP code: This is where the modal gets ...

maintaining the alignment of one div's right boundary with another div's right boundary

---------------------- ----------------------------->edge X | | | | | logo | | dropdown menu ...

Using transformations in jQuery for stylish web design

I am trying to rotate an image 90 degrees when I click on it. <img src="img/right-arrow.png" alt="" class="rotate-image"> Using CSS, I can achieve the rotation by adding the following code: .rotate-image { transform: rotate(90deg); } However ...

Different dimensions of the <select> element with the help of Ryan Fait's jQuery design script

New to java and struggling on my own, I am seeking advice on how to customize Ryan Fait's jQuery input styles to accommodate 2 unique types of elements. For the code reference, please visit: While the code is efficient, I am unsure how to create two ...

Adjust the Size of Bootstrap 4 Dropdown Caret Icon

Currently, I am using the Bootstrap v4 framework on my HTML page. I am looking to resize or increase the caret size in my dropdown list. Does anyone have any tips on how to accomplish this? https://i.sstatic.net/kCNPK.png Below is the code snippet: < ...

Spontaneously fluctuate image transparency

I'm in need of some assistance with an issue I'm facing. I have 5 images positioned using Bootstrap and I want to add a fade animation to them on page load. Below is the code snippet I've been using, which works fine, but I would like the im ...

What are some ways to enhance the opacity of a Material UI backdrop?

I'm looking to enhance the darkness of the material UI backdrop as its default appearance is not very dark. My goal is to make it dimmer and closer to black in color. ...

Adjusting the width of a select box to match the size of its child table using CSS

Within my Vue application, I've implemented a select box that contains a table component. When the select box is clicked, the table becomes visible in a container. However, I'm facing an issue where I can't dynamically adjust the width of th ...

I am completely baffled as to the origin of this mysterious stylesheet in my Wordpress PHP code

I have been encountering an issue while updating my website where the original stylesheet seems to be persistent despite my efforts to replace it. I replaced the style.css file in my bluehost control panel and removed any custom css settings, but the old s ...

Utilizing SASS to retrieve the H, S, L values from a color

Is there a way to extract the H, S, L values from a hex color in SASS and assign them to separate CSS variables? $colors: ( "primary": $primary, "secondary": $secondary) !default; :root { @each $color, $value in $colors { -- ...

The modals equipped with data-dismiss="modal" and data-target="#id" do not navigate to their intended destination

Attempting to focus the input field using the modal data-target function on button click. The input field is focused, but a div called <div class="modal-backdrop in"> is created and the modal does not close properly. This prevents the user from click ...

What is the method for adding a before pseudo-element to my button element?

HTML & CSS Issue <button>Get Postion</button> Below is the CSS code for styling a button: button { padding: 1rem; background-color: red; color: wheat; border: 4px solid yellowgreen; position: relative; cursor: pointer; ...

The height of Material-UI Grid item is surpassing the height of its container

I'm encountering an issue with a Grid container that contains 2 Grid items. The height of the second Grid item exceeds the height of the container, causing a scroll bar to appear. Below is the code snippet for reference: function App() { return ( ...

Numerous div elements are situated closely together, featuring small pockets of blank spaces in between each

I am facing a challenge with multiple boxes (div) of varying sizes. Below is a screenshot illustrating the issue: Here's my code: HTML <div id="categories_container"> <div class="main_category"> <div class="categories_tit ...

CSS/JS Label Positioner using Mootools, perhaps?

I have been tasked with incorporating a form into our website. It seems simple at first, but this particular form has some interesting JavaScript code in place to ensure that the label for each input field sits inside it. This is a clever feature, but unfo ...

`Scrolling through a horizontal menu with no scrollbar present`

Is there a way to create a horizontal menu that can scroll left or right without the scrollbar? I'm looking for a solution like adding on-screen arrow buttons or implementing mouseover functionality. What would be the best approach? div.scrollmenu ...

How to restrict CSS div from expanding with content and implement scrollbars instead?

Can anyone assist me with this issue? I am struggling to make the div (the gray area behind the video) expand with the content, instead I keep getting scrollbars. Any suggestions would be greatly appreciated. Thank you, Marcus If you try scrolling over t ...

Switch the background color of the body when hovering over a link

Is it possible to change the page background when hovering over a a using only CSS? I am searching for a solution that does not involve any JavaScript. I understand that we can access child elements with CSS, but I am unsure if it is possible to target th ...

How can I update the color of table rows after the ng-repeat has been implemented?

My current project involves Django, Python, and a bit of AngularJS. I have a dynamic history table that grows as data is added. I am looking to apply some simple CSS to this table - specifically, I want to give every even-numbered row a black background ...