minxie6 Posted February 25, 2008 Share Posted February 25, 2008 I need to know how to use php in html,css eg PHP <? $left = 10 ?> HTML <div style=" top: 2; left: $left; position: absolute; z-index: 1; visibility: show;"> <p>eg<a href="eg.php">eg</a></P> </div> how can i make this work? help me please! this is driving me mad!!! ??? Link to comment https://forums.phpfreaks.com/topic/92955-help-needed-please-using-php-in-html/ Share on other sites More sharing options...
revraz Posted February 25, 2008 Share Posted February 25, 2008 <div style=" top: 2; left: <?php echo $left ?>; position: absolute; z-index: 1; visibility: show;"> <p>eg<a href="eg.php">eg[/url]</P> </div> Link to comment https://forums.phpfreaks.com/topic/92955-help-needed-please-using-php-in-html/#findComment-476238 Share on other sites More sharing options...
minxie6 Posted February 25, 2008 Author Share Posted February 25, 2008 thank you im so dumb thats lovely!! Link to comment https://forums.phpfreaks.com/topic/92955-help-needed-please-using-php-in-html/#findComment-476244 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.