0
My DIV does not get glued to the top bar of the browser. I realize that there is a space of about 10px.
I’ve used the following CSS, but it’s no use:
body{
margin: 0;
padding: 0;
}
Follow more codes:
/* CSS Document */
body{
margin: 0;
padding: 0;
}
.guaraparivirtual-topo {
position:relative;
width:1215px;
height:110px;
background-image:url(http://guaraparivirtual.com.br/novo-gv/logo.png);
background-repeat:no-repeat;
background-position:1% 50%;
margin: 0 auto;
}
.guaraparivirtual-topo-1 {
position:relative;
width:200px;
height:110px;
float:left;
}
.guaraparivirtual-topo-2 {
position:relative;
width:300px;
height:110px;
font-family:arial;
font-size:16px;
text-align:left;
line-height:110px;
float:left;
}
.guaraparivirtual-topo-3 {
position:relative;
width:400px;
height:110px;
float:left;
}
.guaraparivirtual-topo-3-1 {
position:relative;
width:450px;
height:35px;
float:left;
border-bottom:1px dotted #cccccc;
}
.guaraparivirtual-topo-3-2 {
position:relative;
width:450px;
height:70px;
float:left;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
color:#23126E;
text-align:center;
line-height:59px;
}
.input-busca-guia{
font-family: Arial, Verdana;
font-size: 15px;
padding: 8px;
border: 1px solid #ECECEC;
color: #666666;
}
Isn’t there the possibility that some tag is creating the space in question, within html? Using bootstrap?
– Marcos Barbosa
You could put in more code so we can analyze it better?
– Igor Mello
An example page would be very useful.
– Bruno Romualdo
Add an example page, it would be easier to help
– João Victor Gomes Moreira
You can put your html here?
– celsomtrindade
Sometimes extra space can be caused by other HTML elements within your div, so it would be interesting to complete the question with the HTML code referring to your question.
– Afonso