Tips for bridging the space between jumbotron and about section using Bootstrap

How can I eliminate the gap between the jumbotron and the about section? I have attempted to reduce the margin between the two sections, but it is not working properly.

<section id="atas">
      <div class="jumbotron jumbotron-fluid bg-dark">
        <div class="container text-center ">
            <img src="https://img.pngio.com/-profile-png-700_720.png" width="18%" class=" rounded-circle 
   img-thumbnail">
          <h1 class="display-4 text-warning">Rakha Arka</h1>
          <p class="lead text-warning">Kenyamanan anda?.. Ohh Saya tidak perduli ! </p>
        </div>
      </div>
    </section>

    <section id="about" class="about bg-warning">
      <div class="container  pt-5 ">
        <div class="row mt-0">
          <div class="col text-center mb-4  ">
            <h1> About </h1> 
          </div>
        </div>

        <div class="row justify-content-center pb-5">
          <div class="col-md-5 text-center">
            <p>Saya adalah seorang vcerdikiawan yang sangat mementingkan semua berjalan dengan seharusnya dan sesuai dengan rencana saya dan apabila suatu rancana tidak berjalan sesuai arahan saya maka saya akan...</p>
          </div>
          <div class="col-md-5 text-center">
            <p>Halo temanteman nama saya adalah Rakha Arkananta saya adlah seorang freelancer yang sangat handal dalam melakukan setiap tugas yang diberikan client dan saya kan selalu bertanggung jawab akan segala tugas yang client saya berikan</p>
          </div>
        </div>
      </div>
    </section>

Answer №1

Bootstrap 4.x comes with a default styling for the jumbotron component, adding a margin-bottom: 2rem

Here's the Fix

Simply include mb-0 in the jumbotron class

<section id="atas">
      <div class="jumbotron jumbotron-fluid bg-dark mb-0">
        <div class="container text-center ">
            <img src="https://img.pngio.com/-profile-png-700_720.png" width="18%" class=" rounded-circle 
   img-thumbnail">
          <h1 class="display-4 text-warning">Rakha Arka</h1>
          <p class="lead text-warning">Kenyamanan anda?.. Ohh Saya tidak perduli ! </p>
        </div>
      </div>
    </section>

    <section id="about" class="about bg-warning">
      <div class="container  pt-5 ">
        <div class="row mt-0">
          <div class="col text-center mb-4  ">
            <h1> About </h1> 
          </div>
        </div>

        <div class="row justify-content-center pb-5">
          <div class="col-md-5 text-center">
            <p>Saya adalah seorang vcerdikiawan yang sangat mementingkan semua berjalan dengan seharusnya dan sesuai dengan rencana saya dan apabila suatu rancana tidak berjalan sesuai arahan saya maka saya akan...</p>
          </div>
          <div class="col-md-5 text-center">
            <p>Halo temanteman nama saya adalah Rakha Arkananta saya adlah seorang freelancer yang sangat handal dalam melakukan setiap tugas yang diberikan client dan saya kan selalu bertanggung jawab akan segala tugas yang client saya berikan</p>
          </div>
        </div>
      </div>
    </section>

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

Updating the source of an iframe when the linked file is modified or updated

Currently, I am in the process of developing a page named live_link_frame.php. This page includes loading an iframe through a URL retrieved from a local file called live_link.txt: <?php $filePath = 'live_link.txt'; $handle = @fopen($filePath, ...

What is the best way to create three buttons for selecting various parameters?

I have a code snippet where I want to assign different parameters to each button when clicked. However, despite my logic, the functionality is not working as expected. Can someone help me with the correct syntax? For example, if I click the "Start (Easy) ...

Incorporating fresh CSS styles or organizing the existing React-Bootstrap CSS

Currently, I am working on a project using React and react-bootstrap. Although react-bootstrap offers some flexibility, there are limitations when it comes to customizing components like the navbar. For instance, changing the color or dimensions of the n ...

Hosting services and content management system for a website built with Twitter Bootstrap

Embarking on a new venture to create a website for a Custom Home Building company, I am eager to learn and grow in web development. Although I have some programming experience, please bear with me as I ask my newbie questions. I have been searching high a ...

PHP not receiving POST information from $.ajax call

My JavaScript triggers a POST method when the datepicker loses focus, calling the script rent-fetch-pick-up-point.php. However, the PHP script gets stuck at the if-statement because it's not receiving the POST data. The datepicker is associated with a ...

Achieving vertical center alignment for the label and btn-group in Bootstrap

Is it possible to align other elements with the Bootstrap btn-group? <div class="btn-toolbar text-center"> <div class="pull-left"> <span class="glyphicon glyphicon-envelope " style="font-size:1.5em;"></span> < ...

Positioning the icon within the input field

I am facing a couple of challenges. I have chosen to utilize focus and blur for text values in input fields instead of placeholder text due to an issue in Chrome where the placeholder text is centered. My goal is to position the icon in the input field, p ...

It is not possible to attach separate links to images in a JavaScript slider

I am struggling with linking individual images in a JavaScript slider for a client's website. The slider is fully functional and works well, but I can't seem to figure out how to link the images properly. When I remove items from <--ul class= ...

The browser is displaying the raw text data of a file rather than the formatted HTML content

As a newbie in the world of webpage development, I am currently working on my very first webpage project. I have written some HTML code using a text editor and saved it as an HTML file. However, when I try to view it in my browser, all I see is plain HTML ...

Efficient ways to enhance CSS animations (including scaling, rotating, and blurring)

In this HTML example, there are two animated pictures - one background and the other an object. Despite using scale and rotate animations, the performance is choppy on full HD monitors, especially in Firefox where it runs at about 20 fps. Initially, jQuer ...

Customizing TableRow Hover Effects in React with Material-UI

I've been spinning in circles with this issue. It seems like I just can't grasp how class overrides function in Material-ui. I attempted to follow the advice in this response: CSS on Material UI components However, it didn't produce any res ...

What is a more effective way to showcase tab content than using an iframe?

I currently have a webpage set up with three tabs and an iframe that displays the content of the tab clicked. The source code for each tab's content is stored in separate HTML and CSS files. However, I've noticed that when a tab is clicked, the ...

How can I design a trapezoid with see-through borders and background?

Using various CSS border tricks, it's possible to create a trapezoid shape. Additionally, setting the border-color to rgba(r,g,b,a) can make it transparent. However, is there a way to create a trapezoid with both transparent borders and background? ...

CSS and JavaScript dropdown malfunctioning due to a position swap in internal CSS

This example demonstrates functionality .c1 { background-color:red; position:relative; } .c2 { background-color:blue; position:absolute; height:50px; width:100px; display:none;} .show { display:block; } <body> <button ...

"Utilizing ASP.net to create a sleek, modern navbar

Hello everyone, I am interested in adding an image next to a navbar, but I'm having trouble replicating the code provided by bootstrap because ASP.net uses Razor helpers while Bootstrap's website uses direct HTML code. Can anyone advise me on ho ...

Remove any javascript code from the ajax modal when it is closed or hidden

I am in the process of creating a music website that showcases songs along with their lyrics. One of the features I have added is a lyrics button that, when clicked while a song is playing, opens up a modal displaying the live lyrics. Everything works per ...

Issue with Bootstrap 4 column width when using Angular 2 *ngFor

I have a container that displays search results. The layout is set up using Bootstrap columns, but there seems to be excessive padding or margin causing the results to appear very narrow. Interestingly, if I manually input each result instead of using *ngF ...

Error: Invalid Argument - The argument 'PanelController' is expected to be a function, but it is undefined

Here is a snippet of my HTML code: <body ng-controller="StoreController as store"> ........... <section ng-controller="PanelController as panel"> <ul class="nav nav-pills""> <li ng-class="{active:panel.isSe ...

Tips for speeding up your website by preloading versioned files in HTML

Tools like Google Lighthouse and PageSpeed recommend preloading important requests using <link rel=preload> to enhance website performance. When it comes to static files with unchanging filenames, the process is straightforward. However, how can I ...

Troubleshooting inconsistent htaccess changes across different pages?

After much trial and error, I have successfully managed to run PHP code within a document that has either an .htm or .html extension. The solution that worked for me was adding the following line of code: AddType application/x-httpd-php .php .html .htm N ...