How do I div fill the corners of the screen?

Asked

Viewed 61 times

0

My div instead of her staying at the top of the screen, she has a small space (image attached), how do I solve this?tem espaços no canto esquerdo, e no topo da tela

  • Possible duplicate of Doubt with Flex-Box CSS

  • Other: https://answall.com/q/317187/8063, https://answall.com/q/331401/8063

2 answers

2

I’ve solved my problem! the problem is that when you have a «a href» with an image (ex: «a href="x"» «img src="x"» «/a» inside the div, even if you change the properties in css, div doesn’t move anywhere so the solution is:

• Remove «a href» with image (use «input type="image" src="image.png" onclick="eventAoSerClicate()"» • E in css define:

.classe{
  top: 0px;
  left: 0px;
}

-1

This space corresponds to the padding standard that browsers apply to BODY, to solve, just reset with the following CSS statement.

body{
    padding: 0;
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.