I'm having a hard time pinpointing the issue in this code

I'm struggling with this code that displays an image of a broken layout when I try to move the p tag with the class .mailtext inside the footer instead of outside. It's been frustrating me for the past couple of days. The first p tag, which is the copyright text, is working fine but the second one isn't. Despite trying various solutions like adjusting the overflow, z-index, and increasing the size of the container div, nothing seems to fix it. As a student with limited experience, I could really use some suggestions. Any ideas?

.footer {
  /* more info footer  */
  height: 200px;
  background-color: black;
  margin-top: 80px;
  position: absolute;
  right: 0;
  left: 0;
  overflow: hidden;
}
.rights {
  /* copyright paragraph */
  text-align: center;
  color: white;
  margin-top: 170px;
}
.mail {
  /* mail icon properties */
  position: relative;
  bottom: 140px;
  left: 377px;
}
.mailtext {
  /* my email text properties */
  position: relative;
  color: red;
}
.feedback {
  /* feedback icon properties */
  position: relative;
  bottom: 190px;
  left: 430px;
}
<footer class="footer">
  <div class="moreinfo">
    <!-- more info footer -->
    <p class="rights">&#169;2017 annu.com. All rights reserved.</p>
    <a target="_blank" href="">
      <img class="feedback" src="">
    </a>
    <img class="mail" src="">
    <p class="mailtext"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1b7a7a7a7a7a7a5b7c767a727735787476">[email protected]</a></p>
  </div>
</footer>

Answer №1

.rights has a significant margin-top applied to it, causing it to be positioned close to the bottom of the footer.

The following paragraph content is displayed below the footer and out of view.

To ensure your content is visible, adjustments such as increasing the footer height, using a minimum instead of fixed height, reducing the margin on the paragraph, or implementing other solutions are necessary.

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 is the best way to incorporate navigation options alongside a centered logo?

Looking to create a unique top header layout with the logo positioned in the center and navigation options on both sides. Below is the initial code, but unsure how to proceed further. Any suggestions on achieving this design? <div class="header"> ...

Achieving horizontal center alignment for two rows in bootstrap

I'm in the process of building a website that features two rows with 3 columns each. For some reason, all my content is aligned to the left. Do you see anything wrong with my code? Below is the code snippet I'm using: <html lang="en"> ...

Styling with CSS in Play Framework version 2.0.3

Running into issues when using CSS in Play Framework 2.0.3 and could really use some help spotting where I'm going wrong. My view, called siteview.scala.html, is defined as: @(name: String, records: List[Record]) @import helper._ @main(name) { < ...

Internet Explorer's support for the `<summary>` tag in HTML

Is there a method to enable the summary tag in Internet Explorer 11, such as using an external library? <details> <summary>Here is the summary.</summary> <p>Lorem ipsum dolor sit amet</p> </details> App ...

Mastering Knockout: Extracting the selected value from a dropdown and transferring it to an AJAX request

http://jsfiddle.net/smihit_123/kopp8h53/ self.selectedCity.subscribe(function () { alert("this is percentage" + this.percentBonus); }) Is there a way to retrieve the value of an observable property in knockout? For instance, in the jsfiddle ...

What is the best way to display <br> using an ajax response?

ajax.php foreach ($errors as $e) echo "<br>".$e; // not functioning correctly echo $e."<br>"; // not working properly echo "\n\n".$e; // no desired effect echo $e."\n\n"; // issue with line breaks My java ...

WordPress footer widgets appearing misaligned

I have made a child theme for Twenty Thirteen and am in the process of making some updates to it. My development site is essentially a replica of the live site. The only modification I made in the footer section was to change the widget title styles, but I ...

Reduce the file size of CSS and JS files for Magento

We are facing an issue with minifying CSS and Javascript for our Magento website. Currently, the size of our website is 1.1 MB and we aim to reduce it to 1 MB or even lower if possible. I tried using the "CSS Settings" and "Javascript Settings" functions ...

What could be causing the second image to not drop in the proper position in an HTML and JavaScript environment?

I am encountering an issue with a simple drag and drop implementation using images in my code. The first image works fine, but for some reason the second image does not display correctly when dragged inside the div boxes; it appears outside of the box. Can ...

Displaying a specific item in react js with the help of bootstrap version 5.0

I am currently working with Bootstrap v5.0 and facing an issue with displaying the selected item from a drop-down menu. Ideally, when I click on "Action," it should show "Action" instead of the default "Dropdown Link" text. Can anyone provide guidance on ...

How can the input within a div be iterated most effectively using this approach?

Can anyone help me figure out the best way to iterate through all input elements with a specific class within a particular div after clicking on a button? <div> <input type="text" class="inputtext"> <input type="text" class="inputte ...

JavaScript's inability to load images lazily poses a significant challenge

I'm having trouble implementing lazy loading for my images using JavaScript. When I change the html attribute from src to data-src, the images do not display at all. Additionally, when attempting to use an intersectionObserver to lazily load the image ...

Header components struggling with proper alignment in CSS

I'm facing an issue with the navigation bar elements in my header. They are currently aligned to the left side of the screen, but I want them to move to the right. Does anyone know why they are not moving? Also, is there a specific rule or method for ...

allowing absolutely positioned region to expand

For further information, please visit this page: test page In the process of designing a website, I have implemented a sidebar featuring an accordion style vertical navigation bar. The sidebar is set to be absolutely positioned in relation to its containi ...

Issue with Table Tags Not Being Properly Nested Within P Tags in the Document Object Model

While experimenting with dynamic changes to innerHTML content, I have observed some peculiar behavior when it comes to tables nested inside other elements. For instance, when creating a form with a table nested within paragraph tags like this: p /p p tabl ...

Is there a way to temporarily halt a CSS animation when it reaches the final frame

Can anyone assist me with getting the "-webkit-animation-fill-mode: forwards;" to work? It seems like it's getting stuck on the first frame, and I can't figure out why. JS FIDDLE <div class="logo"></div> .logo { width: 328px; ...

What is the best way to eliminate the dotted border from clickable images?

The client has expressed their dislike for the dotted border, but I believe it is important to keep it for accessibility reasons. However, I suppose I will have to remove it since the client requested it. How should I proceed? ...

The cascading style sheet used by a lightbox

I constructed a lightbox using the following HTML code: <a id="show-panel" href="#">Show Panel</a> <div id="lightbox-panel"> <h2>Lightbox Panel</h2> <p>You can add any valid content here.</p> <p align="center" ...

Expanding DIV Box with jQuery

Have you ever come across those cool jQuery Expandable box features that expand to reveal a larger image in the center of the screen when you click on a Thumbnail image? But what if I want to achieve something similar, where instead of just an image insid ...

transferring data from one HTML file to another using a loop with technologies such as HTML,

As a beginner in front end development, I am finding it a bit challenging at the moment. Here's what I have so far: 1 main HTML file (index.html) 1 JavaScript file (something.js) 2nd HTML file (something.html) Main HTML: <!DOCTYPE html> < ...