Guest Jennifer Good Posted July 2, 2006 Share Posted July 2, 2006 we want to set the width of a dov tag to a php variable.Is this correct?$divwid=930;<div style="background : #ffffff; color : #ffffff; padding : 4px; width :"<?php echo $divwid ?>"px; height : 650px; overflow : auto; "> Quote Link to comment https://forums.phpfreaks.com/topic/13490-div-tag/ Share on other sites More sharing options...
karthikeyan_coder Posted July 2, 2006 Share Posted July 2, 2006 [quote author=Jennifer Good link=topic=99225.msg390685#msg390685 date=1151870133]we want to set the width of a dov tag to a php variable.Is this correct?$divwid=930;<div style="background : #ffffff; color : #ffffff; padding : 4px; width :"<?php echo $divwid ?>"px; height : 650px; overflow : auto; "> [/quote]replace the phptag... [code]<?php echo $divwid ?>[/code] with [code]<?php echo "$divwid"; ?>[/code]Thank you,Karthi Keyan Quote Link to comment https://forums.phpfreaks.com/topic/13490-div-tag/#findComment-52196 Share on other sites More sharing options...
Barand Posted July 2, 2006 Share Posted July 2, 2006 [code]<?php$divwid=930;?><div style="background : #ffffff; color : #ffffff; padding : 4px; width :<?php echo $divwid ?>px;height : 650px; overflow : auto; ">[/code] Quote Link to comment https://forums.phpfreaks.com/topic/13490-div-tag/#findComment-52224 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.