php - Push box to top of page without overlapping other content -


i writing error console run after output of html within framework. console capture php errors, notices , other application related notices. php function generate box run after output of the page html, error console positioned @ bottom of page.

i able push console top of page before other output. understand use position: absolute, appears overlap other content have. console never fixed height cannot use margins or padding try push other content out.

is there way achieve without relying on javascript me?

you can capture of normal output output buffering, i.e., enclose in ob_start() , ob_get_clean(), prepare error console data, output client , output content captured output buffering.

a trivial example:

<?php     ob_start();     echo 'normal content';     $normalcontent = ob_get_clean();      echo 'error console';      echo $normalcontent; ?> 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -