Need a little help with media queries plz

Hi,
i am trying to make the box -B appear when the screen is resized to 600px.
But it is not working.can u help me?

here is the link to the code:
https://codepen.io/deadhunter/pen/abdYVMR

Hi saejim,
the margin-top: -82px moves it out of view:

1 Like

Hey,
Thanks Michael!
Can u suggest me how do i place the box-B right behind box-A otherwise?

You could just hide it by default:

.box-B {
  visibility: hidden;
  background-color: rgb(0, 247, 255);
  padding: 10px;
  margin:10px;
  border:5px solid black;
}
1 Like