I completed the footer on my website, but as I zoom in on the page, everything becomes jumbled and overlapped

Hey there, I'm currently dipping my toes into the world of HTML and CSS with hopes of creating a visually appealing website. Everything was going smoothly until I reached the footer section. At first glance, it looked perfect but upon zooming in, all the elements in the footer started overlapping each other. Can anyone provide some guidance on how to resolve this issue? Any assistance would be greatly appreciated.

This is what my current footer code looks like:

.footer {
    background: #323132;
    text-transform: uppercase;
    width: 100%;
    height: 350px;
    color: white;
}

.footer a {
    text-decoration: none;
    color: #a2a4a7;
    font-family: Arial,sans-serif;
    font-size: 14px;
}
.vertical-right-1 {
    border-right: 2px solid black;
    height: 200px;
    position: absolute;
    margin: 15px 0;
    left: 20%;
    box-shadow: 0.2px 0.2px;
}
.vertical-right-2 {
    border-right: 2px solid black;
    height: 200px;
    position: absolute;
    margin: 15px 0;
    left: 45%;
    box-shadow: 0.2px 0.2px;
}
.vertical-right-3 {
    border-right: 2px solid black;
    height: 200px;
    position: absolute;
    margin: 15px 0;
    left: 70%;
    box-shadow: 0.2px 0.2px;

}
 <div class="footer">
            <div style="float: left; margin: 0 auto; padding: 10px 0 0 40px;">
                <p><a href="#"><strong>Find a Store</strong></a></p>
                <p><a href="#"><strong>Sign Up For Email</strong></a></p>
                <p><a href="#"><strong>Become A Member</strong></a></p>
                <p><a href="#"><strong>Site Feedback</strong></a></p>
            </div>
            <div class="vertical-right-1">

            </div>

            <div style="float:right; margin: 0 auto; width: 300px;">
                <p style="font-family: 'Cabin Condensed', sans-serif;font-size: 20px;">Need To Talk?</p>
                <p><a href="#">Order Status</a></p>
                <p><a href="#">Shipping and Delivery</a></p>
                <p><a href="#">Returns</a></p>
                <p><a href="#">Payment Options</a></p>
                <p><a href="#">Contact Us</a></p>
            </div>
            <div class="vertical-right-2">

            </div>
            <div style="float:right; margin: 0 auto; width: 330px;">
                <p style="font-family: 'Cabin Condensed', sans-serif;font-size: 20px;"><strong>Sports</strong></p>
                <p><a href="#">Soccer</a></p>
                <p><a href="#">Basketball</a></p>
                <p><a href="#">NFL</a></p>
                <p><a href="#">Tennis</a></p>
            </div>
            <div class="vertical-right-3">

            </div>
            <div style="margin:0 auto; width:630px; padding:4px 0 0 0;">
                <strong>
                    <p style="font-family: 'Cabin Condensed', sans-serif; font-size: 20px;">About The League</p>
                </strong>
                <p><a href="#">News</a></p>
                <p><a href="#">Careers</a></p>
                <p><a href="#">Investors</a></p>
                <p><a href="#">Sustainability</a></p>
            </div>
            <div style="margin: 30px; color: white;"><br>
                <hr>
                </hr>
            </div>
            <a href="#"><i class="fa fa-facebook"
                    style="padding: 25px;font-size: 30px; width: 80px; text-align: center; text-decoration: none; border-radius: 50%;"></i></a>

            <!-- <a href="#"><i class=&...
        </div>

Currently dealing with overlapped lines in the footer that are making it look unappealing. It seems fine in full-screen mode but not when zoomed in. Hoping for some assistance!

Thanks in advance!

Answer №1

To optimize your website design, consider implementing media queries to customize CSS for various screen sizes.

Avoid using absolute and left for positioning elements on a page unless absolutely necessary. Instead, utilize grid systems or flexbox for a more efficient approach moving forward.

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

Disallow the use of punctuation marks such as dots, plus signs, minus signs, and the letter 'e' when entering

Is there a way to restrict the input of a dot, plus sign, minus sign, or letter 'e' when using semantic-ui-react library? I have searched for solutions but have not found any that work. Can someone provide assistance with this issue? ...

Adding variables to a div using jquery

Is there a way to use jQuery to append variables to a div? Below are my codes, but I am looking to display div tags in the append. For example: .append("" + p + "") var image = item.image; var label = item.label; var price = item.price; ...

Steps for Adding an H1 Tag Using GWT

Forgive me for what may be a silly question, but I'm truly struggling to understand how to dynamically add an HTML heading tag to my page using the Google Web Toolkit. My motivation is not related to styling purposes, as any label can be styled. Inst ...

I'm using SASS in my project, can you provide guidance on customizing the UI with @aws-amplify/ui

I've recently taken over a Next.js (React) project from another developer and they've used .scss files (SASS) for styling. The specific project I'm working on can be found here https://github.com/codebushi/nextjs-starter-dimension My task n ...

Navigating through various folders to access files in HTML

I am facing an issue with my folder structure and includes in my PHP files: index.php includes/header.php includes/conn.php contents/ad_list.php contents/ad_posting.php In my index.php, I successfully included includes/header.php. However, in contents/a ...

Increasing the size of the .ui-btn-left component

Seeking advice on a Javascript query that I can't seem to resolve online. As a beginner in Javascript, I'm struggling with what seems like a simple issue. My dilemma lies in enlarging the close button on a jQuery page. .ui-dialog .ui-header .ui- ...

As the page is resized or zoomed in and out, the div elements start shifting in different directions

When I apply position:absolute to prevent the elements from moving when zooming in and out of the page, they all end up congregating in one place. Can anyone help me with this issue? None of the solutions I've found have worked so far. I'm develo ...

Implementing div elements in a carousel of images

I've been working on an image slider that halts scrolling when the mouse hovers over it. However, I'd like to use div tags instead of image tags to create custom shapes within the slider using CSS. Does anyone have any advice on how to achieve th ...

Maintain continuous visibility of horizontal scroll in Bootstrap responsive tables

When utilizing responsive bootstrap tables in a .net web application to showcase data, the issue arises when a substantial amount of information is returned. In such cases, a horizontal scroll bar appears at the bottom of the page. This forces users to s ...

ReactJS input range issue: Cannot preventDefault within a passive event listener invocation

I've been encountering some issues with the react-input-range component in my React App. It functions perfectly on larger viewports such as PCs and desktops, but on smaller devices like mobile phones and tablets, I'm seeing an error message "Unab ...

The CSS selectors wrapped in jQuery vary between Chrome and Internet Explorer 11

When utilizing a jquery wrapped css selector such as $($("#selector").find('input[type="textarea"])'), I am able to input values into the textarea in Chrome using $($("#selector").find('input[type="textarea"]).val(someValue)') but encou ...

The CSS module is disappearing before the Framer Motion exit animation finishes when the path changes

Source Code Repository: https://github.com/qcaodigital/cocktail_curations Live Site: I recently deployed my NextJS project to Netlify and everything seems to be working fine, except for one issue. Each page has an exit animation (currently set to change ...

Prevent scrolling within input field

I have a text entry field with background images that separate each letter into its own box. Unfortunately, an issue arises when I reach the end of the input: the view automatically scrolls down because the cursor is positioned after the last letter enter ...

How can I position a floating label within a form-control in Bootstrap 5, while also setting its width to

I am currently utilizing Bootstrap 5 and attempting to incorporate floating labels with centered form controls that have a width set to auto, as opposed to the default 100% in Bootstrap. My challenge lies in getting the floating labels to remain inside the ...

Unusual syntax in Symfony framework

I am currently working on a new project for a website using the Symfony3 framework, and I have encountered an issue with understanding the syntax in Twig: <li><a href="{{ path('contact') }}">{{ 'site.template.menu.contact'| ...

What is the process for extracting HTML tables from files using pandas?

I am a beginner at pandas and I am attempting to extract data from HTML files. How can I convert multiple HTML tables like the ones below: PS4 Game Name | Price GoW | 49.99 FF VII R | 59.99 XBX Game Name | Price Gears 5 | 49.99 For ...

Setting button height dynamically in React Native

I've implemented a button using React Native Elements in my layout. Here's the code snippet: <Button title="Login" buttonStyle={{ backgroundColor: Colour.green }} containerStyle={{ ...

Creating interactive tabs within the HTML document with AngularJS

Trying to customize the tab layout on my HTML page and I have a code similar to this: <form name="requestForm"> <div class="form-group col-md-6 md-padding"> <div class="text-primary"> <h3>Create Request</h3> ...

How can I utilize the Facebook API on Tizen to share a video?

Could someone please provide guidance on how to incorporate video uploading functionality into a Tizen application using the Facebook API and HTML5? ...

Swap Text/Characters When Hovered Over

I'm looking to add a fun interactive element to my webpage where the letters in certain text rearrange when a user hovers over it. For instance, hovering over "WORK" would display "OWKR" instead. I have a feeling that some JavaScript is needed for thi ...