Is there a way to position the Bottom Menu on top of the image and align it in the center?

I've successfully configured the navigation bar, added an image with text, and now I am looking to center and overlap another menu at the bottom of the image, similar to the example provided. Here is How I envision it to appear

However, this is How it currently appears

I have only included the code for the image and the bottom part as the navigation bar code is irrelevant.

HTML

<!DOCTYPE html>
  <html>
    <head>
      <meta charset='UTF-8'/>
      <title>SerFin</title>
      <link href="https://fonts.googleapis.com/css?family=Lato:300,700|Prata" rel="stylesheet">
      <style>
        .HomeTabImage {
          background-image: url('Images/Chairs.jpg');
          width: 100%;
          background-position: center;
          background-repeat: no-repeat;
          background-size: cover;
        }
      </style>
      <script>

      </script>
      <link rel='stylesheet' href='Styles.css'/>
    </head>
    <body>
      <header class="TopMenu">
        <nav class="TopSetup-Container">
          <img src="Images/Logo.png"/ id="Logo">
          <ul class="Menu">
            <li><a href="#">Login</a></li>
            <li><a href="#">Sign Up</a></li>
            <li><a href="#">Contact Us</a></li>
          </ul>
          <ul class="Menu">
            <li><a href="#">Support</a></li>
            <li><a href="#">About Us</a></li>
            <li><a href="#">Submission</a></li>
            <li><a href="#">Tutorial</a></li>
          </ul>
        </nav>
      </header>
      <article class="HomeTabImage">
        <h1> Service Finder </h1>
        <p> Let the opportunities begin </p>
        <p> Everything we do is driven by opportunities </p>
        <p> Search and provide services </p>
      </article>
      <article class="Services">
          <h3 id="HomeTabServicesTitle"> Here are the services provided by the community </h3>
          <div class="ServicesContainer">
          <ul class="Options">
            <li><a href="#">Univeristies<br>🎓</br></a></li>
            <li><a href="#">Internships<br>📊</br></a></li>
            <li><a href="#">Courses<br>💻</br></a></li>
            <li><a href="#">Jobs<br>💼</br></a></li>
            <li><a href="#">Services<br>🌐</br></a></li>
          </ul>
        </div>
      </article>
    </body>
  </html>

CSS

.HomeTabImage  {
  height: 340px;
  width: 100%;
  text-align: center;
  line-height: normal;
}

.HomeTabImage h1 {
  font-size: 70px;
  color: black;
}

.HomeTabImage p {
  font-size: 50px;
  color: black;
}

/*Home Tab Info part*/
.Services {
  text-align: center;
  width: 80%;
}

.Services p {
  width: 640px;
}

.ServicesContainer {

}

#HomeTabServicesTitle {
  color: #828282;
  border-bottom: 2px solid #8B8C8C;
  padding-top: 20px;
  padding-bottom: 10px;
}

.Options {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding-top: 20px;
}

.Options li {
  list-style: none;
}

.Options a {
  font-size: 25px;
}

Answer №1

To align it in the middle, apply margin-left: 10%;.

If you want elements to overlap, consider using z-index: 2;.

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

Triggering modal activation upon clicking on the SVG map

Seeking advice on the best way to implement a new feature. I have an SVG map with tiny blue icons that users can click on. You can refer to the image below for clarity: https://i.sstatic.net/XHry9.png Whenever a user clicks on any of these blue icons, I ...

The Bootstraps CSS style doesn't seem to be working properly or being overridden within an Angular

I have seen similar questions asked before, but none of the solutions provided have fixed my issue. It appears that the styles are being applied initially but then overridden by something else, and I am unable to identify what is causing this. The only r ...

Display a remote page on hover using Javascript, CSS, and HTML without providing any clickable link

How can I display a preview of another page within a div container without actually making the text clickable? I want the preview to show when the mouse hovers over specific text, but I need the original text to stay on the main page. I've experiment ...

Border dividing vertically of equal length

My goal is to create a table-like appearance in a simple bootstrap grid using the row and col- classes, with vertical dividers that extend the full length of the tallest column. I have created a demo which shows that traditional methods only allow the div ...

Ways to avoid a bootstrap column from wrapping onto a new line when the parent width is decreased

https://i.sstatic.net/gKdAN.png I attempted to decrease the form width by applying padding on both sides of the form using 'px-5'. However, when I implemented this change, the column holding the '#lastName' input shifted to a new line. ...

Using `left: initial` does not function properly in Internet Explorer

Unfortunately, the tooltip does not display correctly in IE as desired. This is how it should look (in Chrome): https://i.sstatic.net/dCM9z.png However, this is how it appears incorrectly in IE: https://i.sstatic.net/Tq6rY.png Here is my CSS code for ...

Help needed with using Regex to restrict the number of alphabetical characters allowed

Struggling with configuring RegEx's. Seeking guidance to create a RegEx with the following criteria: Only allow numbers (0-9) Allow a period (.), negative sign (-), plus sign (+), dollar sign ($), and comma (,) Do not permit any alphabetic characte ...

utilizing a wildcard to aggregate various components

I am working with HTML and have multiple input elements. I want to create an XPath query using a wildcard character to replace the numeric value in a specific attribute in order to select all input elements. I tested //div/input[contains(@name, "name")] an ...

Bootstrap scrollspy feature experiencing malfunction

I am encountering an issue with scrollspy on Bootstrap version 5.1. Despite following the examples in the documentation (links provided below), I am unable to make it work; there are no visible changes when scrolling. My goal is for the corresponding link ...

Updating image attributes using jQuery within an .each loop

My challenge involves a textarea where I paste HTML code, followed by a button that should display all the images from that code along with their respective alt text and titles. The goal is to easily update the alt text and titles for each image individual ...

The header in datatables.net is positioned on the side of the table rather than at the top

I am currently facing an issue with my datatables.net datatable. While all the columns and header are displaying properly, I am unable to position the header on top of the table. Instead, it appears on the side. Here's a visual representation: Curren ...

Strange image resizing issues observed during refresh

Every time I refresh the page, I am faced with this strange resizing issue showcased in the GIF below: https://i.sstatic.net/tzlYTUyf.gif The image appears to be resized in an odd manner. <WifiWidgetContainer> <Image ...

Unable to align my navigation bar in the center

My navigation bar code is not centering on the website. Even after removing float: left, it doesn't move to the desired position. Can anyone help me with this issue? Thank you. css ul#list-nav { list-style: none; margin: 20px auto; paddi ...

Design the spans to have equal heights that adjust dynamically based on the content entered

I'm facing a challenge that I've been trying to resolve using just CSS, but I've hit a roadblock. The issue at hand involves aligning multiple spans next to each other and making them equal in height. The height is not fixed and depends on ...

Visualizing live data streaming from MySQL

I am currently using this code to retrieve values from a database and create a basic line graph (showing response time to an alert vs. UTC time). Everything works smoothly when the data is static, but now I want to try retrieving the data in "real-time" (j ...

Disable the moving of the DIV button with a left-margin of 0px

Having a bit of a challenge here. I'm attempting to craft my own slider using jQuery along with some css and javascript. I've managed to get my slider functioning, moving a Div 660px to the left and right upon button clicks. However, I'm h ...

Trouble arises when adding HTML elements to a Content Editable Div. Any text inputted after programmatically inserting HTML content will merge with the last HTML tag instead

https://i.sstatic.net/bKIVm.pngI am currently working on a project that involves creating message templates within an app. Users have the ability to add placeholders for fields like names to these templates by clicking a button. They can also remove these ...

Utilize Angular components in TypeScript to effectively manage errors within forms

I am currently developing a form in Angular/Typescript with more than 10 fields, and I want to streamline error management without redundancy in my HTML code. Here is an example of the form structure : <form [formGroup]="myForm"> <label&g ...

Expanding a feature that modifies the CSS properties of every input element

Creating a text tracking (letter-spacing) demonstration where range sliders are used to update CSS properties. I'm looking to improve the functionality so that the labels also update dynamically, without repeating output2.textContent = this.value;. An ...

Encourage UL to expand along with its contents, specifically the inline block list items

Struggling to get list items in a css menu to float left without setting the width of the parent UL. You can check out my progress on this JS fiddle: http://jsfiddle.net/FkK7Y/1/ In the "products menu," I have two sets of links that are currently stackin ...