php - Blank white space on top of the webpage -
what possible cause blank space on top of page
i want provide photo clarification due low reputation in stackoverflow couldn't upload it. using smarty php template engine.
<html> <head> {include file="_js.tpl"} <title>{$title|escape}</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> {literal} <style type="text/css"> body{ margin:0; padding:0; display: block; font-family: arial; } #main_iframe { position: relative; width: 100%; height:665px; border:0px; } #iframe_setting{ padding-left: 220px; background: url('{/literal}{$vir_img}{literal}background.png'); } #content-wrapper{ height: 665px; padding-left: 10px; } </style> <script type="text/javascript"> $(document).ready(function(){ $("button#logout").click(function(){ window.location = "{/literal}{$url_app}{literal}?m=account&c=do_logout"; }); }); function go(loc) { document.getelementbyid('main_iframe').src=loc; } function go3(loc) { document.getelementbyid('iframeid').src=loc; } </script> {/literal} </head> <body>{include file="header.tpl"} <div style="position:absolute;z-index: 999;"> {include file="sidebar.tpl"} </div> <div id="iframe_setting"> <div id="content-wrapper"> {$content} </div> </div> {include file="footer.tpl"} </body> </html>
using notepad++, make sure files included in file, itself, "encode in utf-8 without bom". so, follow below:
in notpad++ -> (menu) encoding -> (click) encode in utf-8 without bom
this happens if have used utf8 characters , saved file utf8. then, there 3 invisible characters causes white space.
Comments
Post a Comment