cosmoshell Posted March 28, 2008 Share Posted March 28, 2008 how can i controll the position of stuff in php for example <?php include ("template.php"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/98419-how-can-i-controll-the-position-of-stuff-in-php/ Share on other sites More sharing options...
wildteen88 Posted March 28, 2008 Share Posted March 28, 2008 PHP has no control where content shows on a page. This is down to your HTML/CSS Quote Link to comment https://forums.phpfreaks.com/topic/98419-how-can-i-controll-the-position-of-stuff-in-php/#findComment-503671 Share on other sites More sharing options...
cosmoshell Posted March 28, 2008 Author Share Posted March 28, 2008 how can i add a setting for that to this like to center it and move it down a couple <br>s html, body { background: #000000 url(bg_tile.gif); margin: 0px; color: #848484; font-family:Arial, Helvetica, sans-serif; font-size:9pt; } Â .logo { width: 100%; background: url(antrix.png) no-repeat center; height: 200px; } Â table { background: #1f1f1f; border: 1px solid #363636; margin-bottom:20px; } Â td { background-color:green; font-size:9pt; } Â th { background: #373737 url(gradient_thead.gif) repeat-x top left; font-size:9pt; text-align: left; color:#FFFFFF; border-top: 1px solid #363636; } Â tr.head th { background: #5b8d22 url(gradient_tcat.gif) repeat-x top left; text-align:center; font-size:10pt; color:#000000; padding:5px; } Â .footer { font-size:7pt; margin:10px 0 10px 0; } Â .button { background: #373737 url(gradient_thead.gif) repeat-x top left; color: #FFFFFF; border: 1px solid #5b8d22; width:120px; margin:0px 10px 0px 10px; font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } Â .error { color:#FF0000; } Â Quote Link to comment https://forums.phpfreaks.com/topic/98419-how-can-i-controll-the-position-of-stuff-in-php/#findComment-503673 Share on other sites More sharing options...
wildteen88 Posted March 28, 2008 Share Posted March 28, 2008 Position your css code? Your CSS should be in between the <head></head> tags wrapped in <style></style> tags. Quote Link to comment https://forums.phpfreaks.com/topic/98419-how-can-i-controll-the-position-of-stuff-in-php/#findComment-503675 Share on other sites More sharing options...
cosmoshell Posted March 28, 2008 Author Share Posted March 28, 2008 Position your css code? Your CSS should be in between the <head></head> tags wrapped in <style></style> tags. I ment to add something in the "pages css file" to position the include Quote Link to comment https://forums.phpfreaks.com/topic/98419-how-can-i-controll-the-position-of-stuff-in-php/#findComment-503678 Share on other sites More sharing options...
wildteen88 Posted March 28, 2008 Share Posted March 28, 2008 What does the included file template.php contain? You can only position html. The browser will not even know the html is being included. Quote Link to comment https://forums.phpfreaks.com/topic/98419-how-can-i-controll-the-position-of-stuff-in-php/#findComment-503680 Share on other sites More sharing options...
cosmoshell Posted March 28, 2008 Author Share Posted March 28, 2008 template.php <script type="text/javascript" language="javascript" src="sniffer.js"></script> <script type="text/javascript" language="javascript1.2" src="custom.js"></script> <script type="text/javascript" language="javascript1.2" src="style.js"></script> <script type="text/javascript" language="javascript1.2" src="menu.js"></script> Quote Link to comment https://forums.phpfreaks.com/topic/98419-how-can-i-controll-the-position-of-stuff-in-php/#findComment-503682 Share on other sites More sharing options...
wildteen88 Posted March 29, 2008 Share Posted March 29, 2008 Well that javascript that can't be positioned. Quote Link to comment https://forums.phpfreaks.com/topic/98419-how-can-i-controll-the-position-of-stuff-in-php/#findComment-503851 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.