Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest Jennifer Good

div tag

Recommended Posts

Guest Jennifer Good
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; ">                                   

Share this post


Link to post
Share on other sites
[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

Share this post


Link to post
Share on other sites
[code]<?php
$divwid=930;
?>

<div style="background : #ffffff; color : #ffffff; padding :
4px; width :<?php echo $divwid ?>px;
height : 650px;
overflow : auto; ">[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.