Remove the space above content in zendframework layout
I have a zend framework layout like this:
...
<div id="div1"></div>
<?php echo $this->layout()->content; ?>
...
The problem is a space between div1
and content
about 15px.
How can i remove it?
EDIT: I use inspect element in chrome, there is a " " (spaces between double quotations) above content that i don't add it.
EDIT: Please 开发者_如何学运维see below picture, I don't add the selected area.
try setting a negative bottom margin for your div
http://www.w3schools.com/CSS/css_margin.asp
My content page's encoding was UTF 8 with BOM
.
This encoding add a character in the begin of file, and that character cause to those spaces.
I use encoding UTF 8 witout BOM
.
精彩评论