Bootstrap - What is the best way to position this column at the bottom of the page?

I'm trying to align this column next to the Card box and have the project name right beside it. To ensure responsiveness, I believe I need to place that column at the bottom of the jumbotron. How can I achieve this? (refer to the image). I appreciate any help or guidance as I continue to explore Bootstrap and CSS. https://i.sstatic.net/6Kr1i.png

.jumbotron {
  background-image: url("src\app\assets\image.jpg");
  background-size: cover;
  height: 100%;
  border-radius: 0;
}

.whiteColorText {
  color: white;
  position: absolute;
}
aside .box {
  position: relative;
}
aside .card {
  position: absolute;
  top: 0;
  transform: translateY(-100px);
  left: 0;
  right: 0;
}
<div class="backgroundInformation">
  <div class="container-fluid">
    <div class="row">
      <div class="jumbotron col ">
        <!-- style="top: 4rem; right: -20em; font-size: 22px;" -->

        <!--  position-relative offset-md-8 -->
        <p
          
        class="col-6-md whiteColorText "
        >
          {{projectName}}
        </p>
      </div>
    </div>
    <div class="row">
      <aside class="col-4">
        <div class="box">
          <div class="card shadow p-3 mb-5 bg-white rounded">
            <img
              class="card-img-top"
              src="https://picsum.photos/600/200"
              alt="Card image cap"
            />

            <div class="card-body">
              <div class="col">
                <h5 class="card-title"><b> About</b></h5>
                <p class="card-text">
                  {{ projectDescription }}
                </p>

                <h5 class="card-title"><b> Team Members </b></h5>
                test1 <br />
                test2 <br />
                test3
                <h5 class="card-title"><b> Interests</b></h5>
                <!-- 
                <ul *ngFor="let item of interests">
                  {{
                    item
                  }}
                </ul> -->
                <ul *ngFor="let item of interests">
                  <div class="centerObjects">
                    <ng-container *ngIf="item === 'Music'">
                      <mat-icon aria-hidden="false"> music_note </mat-icon>

                      {{ item }}
                    </ng-container>
                    <ng-container *ngIf="item === 'Technology'">
                      <mat-icon aria-hidden="false"> desktop_mac</mat-icon>
                      {{ item }}
                    </ng-container>
                    <ng-container *ngIf="item === 'Sports'">
                      <mat-icon aria-hidden="false"> sports_football</mat-icon>
                      {{ item }}
                    </ng-container>
                    <ng-container *ngIf="item === 'Art'">
                      <mat-icon aria-hidden="false"> create </mat-icon>

                      {{ item }}
                    </ng-container>
                    <ng-container *ngIf="item === 'Fashion'">
                      <mat-icon aria-hidden="false"> checkroom </mat-icon>

                      {{ item }}
                    </ng-container>
                    <ng-container *ngIf="item === 'Gaming'">
                      <mat-icon aria-hidden="false">
                        sports_esports
                      </mat-icon>

                      {{ item }}
                    </ng-container>
                    <ng-container *ngIf="item === 'Education'">
                      <mat-icon aria-hidden="false"> menu_book</mat-icon>

                      {{ item }}
                    </ng-container>
                    <ng-container *ngIf="item === 'Business'">
                      <mat-icon aria-hidden="false"> business</mat-icon>

                      {{ item }}
                    </ng-container>
                    <span> </span>
                  </div>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </aside>
      <main class="col">
        itaque quae, minus error blanditiis corrupti optio ullam quidem
        necessitatibus. Nulla eveniet unde quod deserunt cupiditate expedita
        ducimus reiciendis doloribus, quae officia iusto quo, totam! Quae et
        eius quisquam. Vitae quaerat, odit harum nam expedita rem mollitia et,
        nihil rerum eos aut quas nostrum adipisci! Laborum nesciunt, ad saepe
... [truncated for brevity] ...
     commodi a amet. Dolorum laboriosam harum quod cupiditate in rem
        veritatis saepe tempore, cumque commodi deleniti voluptate, cum quasi
        nesciunt incidunt temporibus expedita aut, quisquam omnis facilis odit
        sit assumenda. Labore impedit cumque eveniet quae, provident velit, eos,
        rem enim esse, natus nisi voluptatum non in. Adipisci sit excepturi,
        aperiam. Mollitia assumenda repudiandae ipsam saepe, maxime rerum,
        fugiat! Ducimus, beatae ex aliquid! Earum ab voluptas eligendi hic
      </main>
    </div>
  </div>
</div>

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

Answer №1

The issue at hand was that the p element was previously located in a different row. Picture it like this:

-------------------------------
           [row-1]
-------------------------------
         | [row-2]        
         |
[card]   |               [text]
         |
-------------------------------

To resolve this, I shifted the infamous p from the initial first row to the subsequent second row, comprising of two columns, and placed it within the second one. Consequently, it is now positioned next to the card and above the text.

<div class="backgroundInformation">
  <div class="container-fluid">
    <div class="row" style=" height: 100px">
      <div class="jumbotron col ">
        <!-- style="top: 4rem; right: -20em; font-size: 22px;" -->

        <!--  position-relative offset-md-8 -->
      </div>
    </div>
    <div class="row">
      <aside class="col-4">
        <div class="box">
          <div class="card shadow p-3 mb-5 bg-white rounded">
            <img
              class="card-img-top"
              src="https://picsum.photos/600/200"
              alt="Card image cap"
            />

            <div class="card-body">
              <div class="col">
                <h5 class="card-title"><b> About</b></h5>
                <p class="card-text">
                  {{ projectDescription }}
                </p>

                <h5 class="card-title"><b> Team Members </b></h5>
                test1 <br />
                test2 <br />
                test3
                <h5 class="card-title"><b> Interests</b></h5>
                <ul *ngFor="let item of interests">
                  .....
                  <!-- Additional code here -->
                  .....
                </ul>
              </div>
            </div>
          </div>
        </div>
      </aside>
      <main class="col">
        .....
        <!-- Remaining code continues here -->
        .....
      </main>
    </div>
  </div>
</div>

You might still need to adjust your CSS for improved aesthetics, but now the p element is physically aligned with your card.

You could consider adding display: block; along with some margin or padding properties to the p element.

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

Is there a way to navigate to the next or previous image in a lightbox by using ev.target.nextElementSibling or ev.target.prevElementSibling?

I am new to the world of web development Currently, I'm facing an issue with my lightbox feature. I want to navigate between images by using ev.target.nextElementSibling and ev.target.prevElementSibling when clicking on the next/previous arrow.png ic ...

embedding a CSS file specific to the location using a Firefox add-on

I am currently working on a Firefox extension project and require assistance with inserting elements and CSS into the document. I have attempted to follow tutorials on injecting a local CSS file into a webpage with a Firefox extension and inserting CSS us ...

Blending images on social media platforms

I'm trying to create a hover effect for my social media icons where one icon fades into another when the mouse hovers over it. I came up with this idea: HTML: <div class="socials"> <img src="../images/fb.png" id="fb1" /> <img ...

Is there a way I can ensure that two elements have identical heights?

Is there a way to ensure that two different elements in HTML are always the same height using CSS? I attempted to achieve this by setting each element to 50vh in the CSS, but it didn't work. codepen: https://codepen.io/ichfickedeinemutterdudummerwich ...

Are Margins in CSS Really a Negative Aspect?

After testing my website on various browsers, I've encountered issues with margins when elements are floated. Surprisingly, Firefox displays the site correctly, but IE7 and some Linux browsers mess up the margins completely. If you're curious to ...

Issue with using an <a> tag within a <li> element in Bootstrap

When I attempted to include an "a" tag within an "li" element, I noticed that the pointer cursor was missing and the href attribute wasn't functioning as expected. Which Bootstrap property is causing this issue? Could it be a lack of padding for the l ...

Add a symbol at the end of the input that signifies its value

I have a form field that expects a percentage as input, but I want to visually indicate to the user that they should enter a percent value. The challenge I face is that I want the percentage symbol to appear before the number in the input box, like this: ...

Attempting to attach a particular image, but it consistently ends up linking to different images instead

I am having an issue with linking an image in my footer. Every time I link one image, the link seems to affect all the other widgets in the footer. Is there a way to prevent this from happening? Visit my website Below is the code I used to create a clic ...

How to keep jQuery horizontal submenu open when clicking on the menu

Seeking assistance with a menu issue. I have a horizontal menu with subitems that display when clicked, but having trouble with the submenu behavior. When clicking on a submenu item, I want it to remain open and show the related items underneath it. For ex ...

Creating a Star Rating system with jQuery using a dropdown menu for multiple selections

Recently, I came across a simple jQuery Star rating system that I want to implement on my website. I have been following the code from http://jsfiddle.net/, and it works perfectly for one star rating system. However, I have multiple star rating systems on ...

Is it possible for me to generate HTML using JavaScript?

Below is the javascript code I have written, saved as create.js: var stuff = document.querySelector(".stuff"); var item = document.createElement('div'); item.className = 'item'; stuff.appendChild(item); This is the corresponding HT ...

Aligning items in the header bar with floating <li> elements

I'm struggling with centering an element in the header bar of my website. I currently have a single header bar at the top, and inside the <header> tag, there's an unordered list with some items floating left and one floating right. Now, I w ...

Error encountered when attempting to call a JavaScript function by clicking on a link within a dropdown menu due to an unexpected end of

Here is the code snippet from my HTML file: <html> <head> <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/boots ...

Arranging three items within a div container

I am facing an issue with the layout provided in the code snippet below. Essentially, there is a div container with tools on the left side, main content in the center, and tools on the right side (a visual drag handle on the left and a delete button on the ...

Having trouble with a basic image carousel function?

Currently in the process of developing a basic image carousel for a practice website I'm working on. I've been following this tutorial on YouTube. At the 7:10 mark, the tutorial demonstrates the specific function that I need help with. The tuto ...

What is the best way to align paragraphs vertically within a required square-shaped div using CSS (with images for reference)?

I am trying to style a table in a specific way, but I'm facing some challenges. First, I want to make the internal div inside the table square with a percentage height. Next, I need to have two paragraphs stacked on top of each other within the same ...

Toggle the slide when you hit submit

I'm considering the functionality of my code. I am interested in creating a slide toggle effect on a div or span when hovering over an input submit button. Here is an example: https://i.sstatic.net/pBSK8.png What is the best approach to achieve thi ...

Is there a way to modify the CSS or add custom styling within an iframe form?

Currently I am working on the following page: , where an embedded javascript form called infusionsoft (iframe form) needs to be made responsive at the request of my client. I'm wondering if there is a way to override the css or inject custom styles i ...

Issues arise when implementing ReactJS transitions for progress bars

As a newcomer to the world of ReactJS, I have been exploring the FB documentations and online tutorials to kickstart my test project. Within this project, I wanted to implement a progress bar that visually represents the user's progression through fi ...

Focus on selecting a div nested within a separate component

I have encountered an issue with an imported component that has multiple nested divs which I am unable to modify. Deep within these divs, I need to apply a bottom margin. While using Chrome DevTools, I managed to add the desired margin to one of the div ...