Ways to adjust the positioning of an image

Seeking assistance, I am currently working on building a portfolio using HTML while following a tutorial. I utilized undraw to insert an image but unfortunately, the image is fixed to the right-hand side:

I would like to position the image below my icons, but I am unsure of the correct approach to achieve this. Any suggestions on how to center the SVG image beneath my icons?

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600&display=swap');

*{
    color:black;
    font-family: 'Lato', sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

h1,h2,h3,h4,h5,h6,span{
    color:black;
    text-align: center;
    line-height: 1.25;
}

h1{
    font-size: 36px;
}

p{
    line-height: 1.5;
    font-size: 16px;
}

li{
    list-style-type: none;
}

.flex{
    display: flex; 
}

.flex-1{
    flex: 1; 

}
/* Navigation bar */

.row{
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.text-pink{
    color: #FF69B4;
}


nav{
    height: 100px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.nav__link--list{
    display: flex;
}

.nav__link--anchor{
    margin: 0 12px;
    color: black;
    text-decoration: none;
    font-weight: 700;
}

.nav__link--anchor-primary{
    background-color: #FF69B4;
    padding: 8px 20px;
    border-radius: 50px;
    color: white;
    transition: all 300ms ease;
}

.nav__link--anchor-primary:hover{
    background-color: #FF69B4;
}

.personal_logo{
    font-size: 20px;
    color: #FF69B4;
    margin: 0 12px;
    font-weight: bold;
}

/* About mE */
#about-me{
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
}

.about-me__info{
    display: flex;
    flex-direction: column;
}



.about-me__info--container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-me--picture--mask{
    width: 180px;
    height: 180px;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,1);
    margin-bottom: 20px;

    
}

.about-me__picture{
    width: 100%;
    transform: scale(1,1.1);
    padding-top: 7px;
}

.about-me__info--para{
    font-size: 15px;
    margin-bottom: 28px;
}

.about-me__info--title{
    margin-bottom: 15px;
}

.about-me__link{
    font-size: 20px;
    color: #FF69B4;
    text-decoration: none;
    padding: 0 16px;
}

.about-me__img--container{
    flex: 1;
    display: flex;
    align-items: center;

}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Annette</title>
  <link rel="stylesheet" href="./css/styles.css">
  <script src="https://kit.fontawesome.com/6ad8c9aa3b.js" crossorigin="anonymous"></script>
  </head>
  <body>
    <section id="about-me">
      <nav>
        <div class="personal_logo">Annette</div>
        <ul class="nav__link--list">
          <li class="nav__Link">
            <a href="#languages" class="
            nav__link--anchor
            link__hover-effect
            link_hover-effect--black"
            >Languages</a>
          </li>
          <li class="nav__link">
          <a href="#projects" class="
          nav__link--anchor
          link__hover-effect
          link_hover-effect--black">
          Projects</a>
        </li>
        <li class="nav__link">
        <a href="" class=
        "nav__link--anchor
        nav__link--anchor-primary" 
        >Contact</a>
      </li>
        </ul>
      </nav>
      <div class="flex flex-1">
        <div class=".about-me__info row"> <!--inside the row, there are 2 sections: information and image-->
        <div class="about-me__info--container">
        <figure class="about-me--picture--mask">
        <img src="./images/Annette2.JPG" class= "about-me__picture" alt="Picture of Me!">
         </figure> <!--this contains my image -->
        <h1 class="about-me__info--title"> Hey! I'm <span class="text-pink">Jane Doe šŸ‘‹ </span> </h1>
        <p class="about-me__info--para">
                I recently just completed my <strong class="text-pink">insert text </strong> Throughout both degrees, I have always been interested in creating very engaging and interactive PowerPoints to present my work. This led to my passion for web development and designing projects on topics that Iā€™m interested in such as <strong class="text-pink">Ethical AI, Social Justice and Emerging Technologies. </strong>  
            </p>
            <div class="about-me__links"></div>
            <a href="" class="about-me__link">
                <i class="fa-brands fa-linkedin"></i>
            </a>
            <a href="" class="about-me__link">
                <i class="fa-brands fa-github"></i>
            </a>
            <a href="" class="about-me__link">
                <i class="fa-solid fa-inbox"></i>
            </a>
            <a href="" class="about-me__link">
                <i class="fa-solid fa-file-pdf"></i>
            </a>
        </div>
        </div>
        <figure class="about-me__img--container">
          <img src="./Assests/undraw_proud_coder_re_exuy.svg" alt="">
        </figure>
      </div>
    </section>
  </body>
</html>

Answer ā„–1

Just a small adjustment needed for the markup. Move the image to its own div, positioned below the flex layout.

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600&display=swap');
* {
  color: black;
  font-family: 'Lato', sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
span {
  color: black;
  text-align: center;
  line-height: 1.25;
}

h1 {
  font-size: 36px;
}

p {
  line-height: 1.5;
  font-size: 16px;
}

li {
  list-style-type: none;
}

.flex {
  display: flex;
  /* this automatically aligns like columns or rows with auto width and auto height */
}

.flex-1 {
  flex: 1;
  /* this makes sure that it is the entire height of the  page */
}


/* Navigation bar */

.row {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.text-pink {
  color: #FF69B4;
}

nav {
  height: 100px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__link--list {
  display: flex;
}

.nav__link--anchor {
  margin: 0 12px;
  color: black;
  text-decoration: none;
  font-weight: 700;
}

.nav__link--anchor-primary {
  background-color: #FF69B4;
  padding: 8px 20px;
  border-radius: 50px;
  color: white;
  transition: all 300ms ease;
}

.nav__link--anchor-primary:hover {
  background-color: #FF69B4;
}

.personal_logo {
  font-size: 20px;
  color: #FF69B4;
  margin: 0 12px;
  font-weight: bold;
}


/* About mE */

#about-me {
  min-height: 100vh;
  /* entire height of the page */
  display: flex;
  flex-direction: column;
}

.about-me__info {
  display: flex;
  flex-direction: column;
}

.about-me__info--container {
  display: flex;
  flex-direction: column;
  /* so it is not side-by-side */
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.about-me--picture--mask {
  width: 180px;
  height: 180px;
  border-radius: 100%;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 1);
  margin-bottom: 20px;
}

.about-me__picture {
  width: 100%;
  transform: scale(1, 1.1);
  padding-top: 7px;
}

.about-me__info--para {
  font-size: 15px;
  margin-bottom: 28px;
}

.about-me__info--title {
  margin-bottom: 15px;
}

.about-me__link {
  font-size: 20px;
  color: #FF69B4;
  text-decoration: none;
  padding: 0 16px;
}

.about-me__img--container {
  flex: 1;
  display: flex;
  align-items: center;
}
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Annette</title>
  <link rel="stylesheet" href="./css/styles.css">
  <script src="https://kit.fontawesome.com/6ad8c9aa3b.js" crossorigin="anonymous"></script>
</head>

<body>
  <section id="about-me">
    <nav>
      <div class="personal_logo">Annette</div>
      <ul class="nav__link--list">
        <li class="nav__Link">
          <a href="#languages" class="
            nav__link--anchor
            link__hover-effect
            link_hover-effect--black">Languages</a>
        </li>
        <li class="nav__link">
          <a href="#projects" class="
          nav__link--anchor
          link__hover-effect
          link_hover-effect--black">
                        Projects</a>
        </li>
        <li class="nav__link">
          <a href="" class="nav__link--anchor
        nav__link--anchor-primary">Contact</a>
        </li>
      </ul>
    </nav>
    <div class="flex flex-1">
      <div class=".about-me__info row">
        <!--inside the row, there is 2 sections: infromation and image-->
        <div class="about-me__info--container">
          <figure class="about-me--picture--mask">
            <img src="./images/Annette2.JPG" class="about-me__picture" alt="Picture of Me!">
          </figure>
          <!--this contains my image -->
          <h1 class="about-me__info--title"> Hey! I'm <span class="text-pink">Jane Doe šŸ‘‹ </span> </h1>

          <p class="about-me__info--para">
            I recently just completed my <strong class="text-pink">insert text </strong> Throughout both degrees, I have always been interested in creating very engaging and interactive PowerPoints to present my work. This led to my passion for web development
            and designing projects on topics that Iā€™m interested in such as <strong class="text-pink">Ethical AI, Social Justice and Emerging Technologies. </strong>
          </p>
          <div class="about-me__links">
            <a href="" class="about-me__link">
              <i class="fa-brands fa-linkedin"></i>
            </a>
            <a href="" class="about-me__link">
              <i class="fa-brands fa-github"></i>
            </a>
            <a href="" class="about-me__link">
              <i class="fa-solid fa-inbox"></i>
            </a>
            <a href="" class="about-me__link">
              <i class="fa-solid fa-file-pdf"></i>
            </a>
          </div>
        </div>
      </div>
    </div>
    <div>
      <figure class="about-me__img--container" >
        <img src="https://picsum.photos/200" alt="" style="margin: auto">
      </figure>
    </div>
  </section>
</body>

</html>

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

What's the best approach for revalidating data with mutate in SWR?

Whenever a new album is created in my app, the post request response includes an updated list of all albums. To enhance the user experience, I wanted the newly created content to automatically show up without requiring a page refresh. Although I am famil ...

Establishing a primary data format for a backbone collection

Is there a way to configure a Backbone collection to always include a content type of "application/json" in every request it makes? I have tried the following code snippets: myCollection = Backbone.Collection.extend({ headers: {"Content-Type": 'ap ...

Utilizing jQuery for JSON parsing

Within my JavaScript code, I am working with the following array: var versions = [{"id":"454","name":"jack"}, {"id":"4","name":"rose"} {"id":"6","name":"ikma"} {"id":"5","name":"naki"} {"id":"667","name":"dasi"} ] I need to extract the name from this ar ...

Trigger a fire event upon entering a page containing an anchor

My query is similar to this particular one, with slight differences. I am working on a page that includes an anchor, such as page.html#video1. Within this page, there are multiple sections identified by ids like #video1, #video2. Each section comprises of ...

"Automating the process of toggling the edit mode of a contenteditable element ā€“ how is

Is there a specific event I can use to programmatically start or stop editing a contenteditable element, similar to when the user focuses or blurs it? I have tried using .focus(), .click(), and even setting the selection to its content, but none of them se ...

Accessing a Dropdown List through PHP in an HTML Document

I am currently working on a PHP file that is responsible for parsing a JSON list and then feeding it to a combobox: <?php $jsonData = '{"marco":"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="25484457464a6551405651 ...

The function of window.location is not responsive when used in conjunction with an ajax

The main page redirect occurs in 2 scenarios: When the user clicks logout When the session expires Code for logout functionality: $("#logoutLink").click(Logout); function Logout() { $.post("Logout", { antiCSRF: '{{acsrf}}&apo ...

Addressing three visual problems with an html form input, dropdown menu, and clickable button

Currently, the output of my code looks like this: https://i.stack.imgur.com/pl5CJ.jpg The first box (squared) represents an <input>, while the second box (rectangled) is a <select>. There are several issues that I am facing: The text entered ...

How do I use jQuery to animate a height increase where the added height is applied to the top of the element?

I am facing a simple issue that I need help resolving. The problem involves hidden content that, once expanded, needs to have a height of 99px. When collapsed, the container holding this content section#newsletter is set to be 65px in height. If you want ...

Is it necessary for the paths in an HTML file to be full paths when utilizing Express.static in Node.js?

I have the following files: /public/index.html <!DOCTYPE html> <html> <head> <title>Planner</title> <script src="../codebase/library.js" charset="utf-8"></script> <link hre ...

Having trouble with the Bootstrap dropdown? The unordered list isn't dropping down as expected. What could be the issue?

I am facing an issue with two dropdowns in my template. Both of them are not functioning properly, one with Thymeleaf attributes and the other without. I have not attempted to change the CSS properties as they were working fine before but now they do not ...

How can the 'Read more' feature be modified to impact multiple boxes? (Using jQuery, JS, and CSS)

I am trying to add a 'Read more' feature on my friend's website. I was able to achieve the desired effect, but when I tried to adjust the alignment of the box, it affected the 'Read more' feature. Original design: https://codepen. ...

What is the best way to access a local variable within a POST method in Node.js?

Below are some of the modules that I have utilized: const mysql = require('mysql'); const express = require('express'); const session = require('express-session'); const path = require('path'); const bodyParser = req ...

Alter the color of the span text without affecting the :before or :after elements

Can you change the text color of a span without affecting its :before and :after colors? Is it possible to modify the color of the main text in a span element without altering the colors of the elements that come before and after it? Here is an example o ...

Colored stripe on a horizontal menu

I am attempting to design a page header with a menu that resembles the image provided below. As I construct the navigation, each link area (highlighted in blue) is represented by an <li>. However, I am encountering an issue where the items are stack ...

The React-native application initialized using npx create-react-app encountered an error and could not launch

Hello there, A couple of months back, I developed an app using create-react-app. However, when I tried to run it with npm start, I encountered the following error message: react-scripts start It seems like there's an issue with the project depende ...

Place the element at the bottom of the row above

I'm utilizing Angular to retrieve a list of items from the server and exhibit them on the page using: <div class="col-sm-6 col-md-4" ng-repeat="activity in activities"> <img ng-src="[[ act.icon ]]" height="100" alt=""> <h3>[ ...

Is there a way for me to view the names of the images I am uploading on the console?

Recently, I've started using express and NodeJs. I've created a function called upload that is responsible for uploading images. Here is the code: const fs = require("fs"); var UserId = 2; var storage = multer.diskStorage({ destination: functi ...

Verifying dynamic number inputs generated using JavaScript values and calculating the total with a MutationObserver

Preamble: I've referenced Diego's answer on dynamic field JS creation and Anthony Awuley's answer on MutationObserver for the created fields. After extensive searching, I found a solution that meets my needs, but it feels somewhat bulky des ...

The JQuery datepicker fails to display the current date

I am experiencing an issue with the datepicker on my webpage. While it is working correctly, the default date being displayed is '01/01/2001' instead of '11/23/2012', as I intended. Here is the jquery code I am using: $(":inpu ...