Position the image on top of the details

I have an image with a spinner rotating around it through animation, accompanied by two boxes containing information as depicted in the uploaded image below. However, I would like to position the image above the boxes rather than beside them.

.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-img .spin{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(0);
    width: 68%;
    height: 68%;
    border-radius: 50%;
    border-top: .2rem solid var(--main-color);
    border-bottom: .2rem solid var(--main-color);
    border-left: .2rem solid var(--main-color-alt);
    border-right: .2rem solid var(--main-color-alt);
    animation: aboutSpinner 8s linear infinite;
}
.team-page {
    display: flex;
    position: relative  ;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 10px 5%;
}
.footer {
    display: flex;
    margin-top: auto;
    justify-content: center;
    align-items: center;
}
.about,.skills {
    padding: 40px;
    min-height: 330px;
}
.about {
    background-color: white;
    color: black;
}
.about h3 {
    margin-bottom: 25px;
}
.skills {
    background-color: #3366cc;
    color: #f5f5f5;
    height: 0;
}
.skills h2 {
    margin-bottom: 20px;
}
.skills .progress {
    margin-bottom: 30px;
}
.about-img .image {
    transition: opacity 1s ease-in-out;
    border-radius: 50%;
    width: 60%;
    border: .2rem solid var(--main-color-alt);
}
  <div class="team-page">
      <div class="about-img disable_curet">
          <img class="image" src="imgs/logo.png" alt="">
          <span class="spin"></span>
      </div>
      <section class="container">
              <div class="row">
                  <div class="col-md-6">
                      <div class="about">
                          <h3>Profile</h3>
                          <p>
                              Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis voluptas temporibus a eveniet odio consequuntur, aspernatur fugit voluptatum laboriosam id unde voluptates modi quos omnis et numquam ipsa doloribus debitis.
                          </p>
                      </div>
                  </div>
                  <div class="col-md-6">
                      <div class="skills">
                          <h2>Our skills</h2>
                          <strong>PHP MySQL</strong>
                          <span class="pull-right"70%></span>
                          <div class="progress">
                              <div class="progress-bar progress-bar-primary" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 70%;"></div>
                          </div>
                          <strong>UI/UX</strong>
                          <span class="pull-right"85%></span>
                          <div class="progress">
                              <div class="progress-bar progress-bar-primary" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100" style="width: 85%;"></div>
                          </div>
                          <strong>Bootstrap</strong>
                          <span class="pull-right"95%></span>
                          <div class="progress">
                              <div class="progress-bar progress-bar-primary" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100" style="width: 95%;"></div>
                          </div>
                      </div>
                  </div>
              </div>
          </section>
      </div>
  </div>
  
  <div class="footer">
      <!-- The Paragraph at the End -->
      <p class="copyright">&copy; 2023 <span title="Science Lab Team | Sands International School">SLT | SIS</span> All right Reserved</p>
  </div>

If possible, kindly assist in repositioning the image above the boxes.

Answer №1

Consider adding display:block to the .team-page class, as shown below:

.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-img .spin{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(0);
    width: 68%;
    height: 68%;
    border-radius: 50%;
    border-top: .2rem solid var(--main-color);
    border-bottom: .2rem solid var(--main-color);
    border-left: .2rem solid var(--main-color-alt);
    border-right: .2rem solid var(--main-color-alt);
    animation: aboutSpinner 8s linear infinite;
}
.team-page {
    display: block;
    position: relative  ;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 10px 5%;
}
.footer {
    display: flex;
    margin-top: auto;
    justify-content: center;
    align-items: center;
}
.about,.skills {
    padding: 40px;
    min-height: 330px;
}
.about {
    background-color: white;
    color: black;
}
.about h3 {
    margin-bottom: 25px;
}
.skills {
    background-color: #3366cc;
    color: #f5f5f5;
    height: 0;
}
.skills h2 {
    margin-bottom: 20px;
}
.skills .progress {
    margin-bottom: 30px;
}
.about-img .image {
    transition: opacity 1s ease-in-out;
    border-radius: 50%;
    width: 60%;
    border: .2rem solid var(--main-color-alt);
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="41232e2e3532353320316c28222e2f3201706f70716f73">[email protected]</a>/font/bootstrap-icons.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="76141919020502041706364358445845">[email protected]</a>/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6a0805051e191e180b1a2a5f44584459">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>

<div class="team-page">
    <div class="about-img disable_curet">
        <img class="image" src="imgs/logo.png" alt="">
        <span class="spin"></span>
    </div>
    <section class="container">
            <div class="row">
                <div class="col-md-6">
                    <div class="about">
                        <h3>Profile</h3>
                        <p>
                            Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis voluptas temporibus a eveniet odio consequuntur, aspernatur fugit voluptatum laboriosam id unde voluptates modi quos omnis et numquam ipsa doloribus debitis.
                        </p>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="skills">
                        <h2>Our skills</h2>
                        <strong>PHP MySQL</strong>
                        <span class="pull-right"70%></span>
                        <div class="progress">
                            <div class="progress-bar progress-bar-primary" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 70%;"></div>
                        </div>
                        <strong>UI/UX</strong>
                        <span class="pull-right"85%></span>
                        <div class="progress">
                            <div class="progress-bar progress-bar-primary" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100" style="width: 85%;"></div>
                        </div>
                        <strong>Bootstrap</strong>
                        <span class="pull-right"95%></span>
                        <div class="progress">
                            <div class="progress-bar progress-bar-primary" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100" style="width: 95%;"></div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
</div>
<div class="footer">
    <!-- The Paragraph at the End -->
    <p class="copyright">&copy; 2023 <span title="Science Lab Team | Sands International School">SLT | SIS</span> All right Reserved</p>
</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

Experience the dynamic expansion of a droppable div as you elegantly drop an element within

When the questions "question1" and "question2" are dragged into "questionslots," I want the "questionSlots" div to expand its size dynamically when the second question is dropped into it. This means that both questions should be accommodated and visible wi ...

What are some possible causes for an iframe failing to load?

When it comes to iframes failing to load their content, there could be various reasons causing this issue. I recently encountered a situation where an iframe on my site's "thank you" page was not displaying any content when inspected using Chrome dev ...

Ensure that the element is positioned above other elements, yet below the clickable area

Currently, I am working on developing a notification system that will display a small box in the top right corner of the screen. However, I am facing an issue where the area underneath the notification is not clickable. Is there a way to make this part o ...

Is there a more effective method for placing text below an image?

I've been struggling to figure this out. Initially, when I attempted to keep the text below the image, it was constantly floated to the left. While this code seems to be effective, I suspect I made an error because when the width of .resmontage ul is ...

Create a recursive CSS style for an angular template and its container

I am struggling with styling CSS inside an ng-container that is used in a tree recursive call to display a tree hierarchy. <ul> <ng-template #recursiveList let-list> <li *ngFor="let item of list" [selected]="isSelected"> <sp ...

What could be causing this code to only modify one element instead of both?

One input field should be able to change two elements, however with jQuery it appears that only one element is being modified. When rearranging the order of elements in the function, such as having #inCoin first and then #receive_amount, only the #inCoin ...

Cutting Out Sections of a List

I'm currently working on an app that involves looking up and navigating to specific locations. I've encountered an issue with the coordinates in my code containing a ',0' at the end, which is not compatible with Google Maps. Manually re ...

When you select the checkbox button, a textfield and submit button will appear. Once you click the submit button, the checkbox button will be disabled

<td> <input type="checkbox" ng-model="alert.acknowledged" ng-disabled="alert.acknowledged" ng-click="onacknowledgedClick(alert)"></td> <td> <span ng-if="!alert.acknowledgeInProgress">{{alert.acknowledgedComments}}</span&g ...

Evaluate the user's answers to a database using a SQLite 3 C++ Quiz

Currently, I am in the process of writing a C++ program that utilizes SQLite. The main aim is to enable users to specify their preferred hotel room options. Subsequently, the program compares these user selections with the information stored in a database. ...

How can I adjust height without affecting weight in CSS using curly brackets?

Can CSS be used to specifically adjust the height of a curly bracket without changing its thickness? I have been attempting to modify the height of a curly bracket dynamically by adjusting the font-size, but this also alters the weight. Is there a workar ...

Enhancing the mobile menu with a feature that allows users to easily close the

I am currently designing a mobile menu for a website that I created using Wordpress with the Divi Theme. When the user clicks on a "hamburger icon", it triggers a fullscreen menu to open: mobile menu If you tap on "Termine", it will reveal a submenu: mo ...

How to properly display an Angular Template expression in an Angular HTML Component Template without any issues?

When writing documentation within an Angular App, is there a way to prevent code from executing and instead display it as regular text? {{ date | date :'short'}} Many sources suggest using a span element to achieve this: <span class="pun"&g ...

Creating dynamic DIVs that adjust fluidly to different screen

I have a section containing 4 centered divs. Here is what I want to achieve: When the screen width is over 1280px, display all 4 divs in a row. When the screen width is less than 1280px, show 2 divs per row. And when the screen width is under 640px, disp ...

Unable to generate this QUIZ (JavaScript, HTML)

Hi there, I'm working on a sample quiz and having trouble displaying the result. As a coding newbie, I could really use some help. In this quiz, users answer questions and based on their responses, I want to display whether they are conservative, agg ...

Creating a custom HTML table layout with both variable and fixed column widths, along with grouping headers

Is there a way to format an HTML table so that it appears like this: <- full page width -> <-20px->< dynamic ><-20px->< dynamic > +------------------+-------------------+ ¦ A ¦ B ...

What is the best way to use SQL and Flask to automatically fill out a form based on a selection made from a

Looking for assistance with populating an HTML form by selecting a company from a dropdown menu. The desired result is similar to the example found here, using SQL and Flask. I'm unsure of how to retrieve the selected value from the <option> ta ...

Expanding jQuery menu that reveals a submenu if the current page is located within that specific submenu item

Currently, I am trying to enhance the functionality of this menu: http://jsfiddle.net/tz37m/1/ so that it works seamlessly across the entire website. My goal is to ensure that when a visitor is on a page within a submenu, that specific submenu remains open ...

Looking for search suggestion functionalities in an HTML input field

I am currently working on a website project and have a database filled with recipes to support it. The issue I am facing is related to the search feature on my webpage. At the top of the page, there is a textarea where users can input their search queries ...

How can I include a ?ref query parameter in a URL when linking from external websites?

I've always wondered about how websites are able to include the ?ref parameter in their URLs when they are referred from another website. Do both sites need to incorporate this into their code? How does this function exactly? ...

What is the best way to interact with a button in a HTML file using Selenium?

<div class="dropdown-div u-space-ls u-inline-block" data- reactid=".0.0.0.3.1"><a class="dropdown-div__button js-dropdown button" href="#" data-reactid=".0.0.0.3.1.0"><span class="u-pad-rs" data- reactid=".0.0.0.3.1.0.0">ACTIONS</sp ...