Strange occurrence: HTML/CSS card breaks page width unexpectedly

enter image description here

Hey there! I'm currently working with Next.js and have run into an issue where the page is overflowing on the right side for no apparent reason. This seems to be caused by an HTML/CSS card that I created, as depicted in the image below:

enter image description here

Here's the code snippet for the card:

<div className={styles.container}>
      <Row className={styles.Row}>
        <Col data-aos="flip-right" className={styles.Col} sm={'auto'} >
          <Link href={"/"}>
            <a>
              <div className={styles.aBox}>
                <div className={styles.imgContainer}>
                  <div className={styles.imgInner}>
                    <div className={styles.innerSkew}>
                      <img src="./topbanner2.jpg" />
                    </div>
                  </div>
                </div>
                <div className={styles.textContainer}>
                  <h3>Flyer</h3>
                  <div>
                    This is a demo experiment to skew image container. It looks good.
                  </div>
                </div></div></a></Link>
        </Col>
        <Col data-aos="flip-right" className={styles.Col} sm={'auto'} >
        </Col>
....

And this is the corresponding CSS:

.Col a:hover{
  text-decoration: none;
  color: black;

 }
 .Row{
   width: 80%;
   margin: auto;
 }
...

Any thoughts or suggestions on what might be causing this issue?

Answer №1

Include

body * {outline:1px solid red;}

Incorporate this code into your CSS file to visualize the overflowing component.

This helpful tip was picked up from Kevin Powell, a popular YouTuber known for his web development tutorials.

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

utilize jQuery to include a tag into every div

This is the current sample: <div class="main-wrap"> <div class="inner-wrap"> some example text here <span> <a href="1">test1</a> </span> </div> <div class="inner- ...

Having trouble getting a dropdown menu to function properly with jQuery

Within my project, I have implemented a menu that transforms into a dropdown menu for smaller screens. Below is the HTML code for this functionality: <select> <option value="index.php" id="home">Home</option> <option value="about ...

How come the chosen item is not showing up in the bootstrap dropdown on WordPress?

I'm having trouble displaying the selected item in a bootstrap dropdown menu on WordPress. You can check out my site at . Ideally, it should function similar to this example: http://www.bootply.com/62811 https://i.sstatic.net/5d5FH.png Here is my men ...

What is the best way to combine multiple CSS selectors in a single line of code?

Having trouble achieving single selection for this CSS code: .btn-primary > i.glyphicon { color: #ffffff; } .btn-primary > span.glyphicon { color: #ffffff; } However, when using the following CSS: .btn-primary > i.glyphicon, span.glyphi ...

Hover interactions with links and their associated containers

$(document).ready(function(){ $("a").mouseover(function(){ var currentId = $(this).attr('id')+"S"; $(".stay:visible").hide("explode",[],200); $("#" + currentId).show("bounce"); }); }); .stay { display:none; } <body> <div id="pare ...

Setting the height of columns in a Bootstrap panel to 100%

Is there a way to achieve 100% height for all three columns even without content? Check out this JSFiddle: <div class="row"> <div class="col-md-12"> <div class="shadow panel panel-default"> <div class="blue white-bord ...

Adjust various text lengths to fit web browser content

I am using a web browser within my Windows Form. I am populating it with text each time, with almost the same text size in each loop. The size of my web browser is fixed, and I want to automatically adjust the text content to fit the browser. For example, ...

Is it possible to incorporate a <div> element within a PHP code?

After successfully writing some PHP/SQL code, I encountered an issue when trying to create a new div called "content" along with applying a CSS class. The recommended approach was suggested as follows: $mydiv = '<div name="content">'; $myn ...

Troubles with NextJS and TailwindCSS Styling

I encountered a strange issue when I used the component separately. Here's how the code looked like: <> <Head> <title>Staycation | Home</title> <meta name="viewport" content="initial- ...

What is the reason for the error message saying "The prefix 'h' for the element 'h:head' is not bound"?

Below is the xhtml code I have created: <html> <h:head> <meta http-equiv="Content-Type" content="text/html; charset=Cp1252"/> </h:head> <h:body> <view> <h:form> <br/> ...

Struggling to remove the translucent effect when hovering over the share button

I have been struggling with a seemingly simple issue for a few hours now. On my website, I have some share buttons located at . Although I want these buttons to remain completely black when hovered over, they are inexplicably becoming slightly transparen ...

Display concealed information upon clicking

Is there a way to reveal hidden content only after clicking on the "View" link instead of hovering over it? I have tried implementing it so that the content appears on click, but it doesn't seem to be working as expected. How can I achieve this usin ...

How can I make the bottom of a background image appear first when scrolling?

My goal is to create a design similar to what can be seen on . I would like to achieve the effect where the bottom of the second image starts to appear as the first image gets cut away while scrolling down. Is there a way to achieve this using CSS? I am n ...

Error: An error occurred due to an unexpected asterisk symbol. The import call only accepts one argument in Posenet

While attempting to utilize posenet on a python http server, I encountered a syntax error in the camera.js file at this specific line. import * as posenet from '@tensorflow-models/posenet'; This piece of code has been cloned from the following G ...

Can one slider operate independently, causing the other sliders to become unresponsive?

I am currently working on developing a website for my restaurant. Initially, I had successfully integrated 2 image sliders as seen on However, when I decided to add a nivo slider and include <script src="http://ajax.googleapis.com/ajax/libs/jquery/1 ...

Setting the percentage height of parent and child divs in a precise manner

Trying to work through this without causing chaos. I have a container div containing three floated left child divs, with the container div set to 100% height like so: .Container { height: 100%; min-width: 600px; overflow-y: hidden; } One of the child divs ...

How to center align an HTML page on an iPhone device

I am currently testing a HTML5 webpage on my iPhone, utilizing CSS3 as well. The page appears centered in all browsers except for the iPhone, where it is left aligned. I have attempted to use the following viewport meta tag: <meta name="viewport" conte ...

Simple Mobile-Friendly Tabs - mobile tabs are always visible

My JavaScript skills are not the best. I have been using Easy Responsive tabs and encountered an issue on the mobile version where clicking does not hide content, but only removes the "d_active" class and adds it to another element. I believe that if the ...

What is the best way to ensure a PrimeVue TabPanel takes up the full vertical space and allows the content within the tabs to be scroll

I have created a sandbox demo to illustrate my issue. My goal is to make the content of tabs scroll when necessary but fill to the bottom if not needed. I believe using flex columns could be the solution, however, my attempts so far have been unsuccessful. ...

Having trouble displaying images in Express JS

Here are the lines of code that I wrote in Express: res.write("The current temperature is "+temp+". "); res.write("Weather is currently "+weatherDes); res.write("<img src=" +imageURL+ ">"); res.send() ...