Jump to content


div tag


  • Please log in to reply
2 replies to this topic

#1 Guest_Jennifer Good_*

Guest_Jennifer Good_*
  • Guests

Posted 02 July 2006 - 07:55 PM

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; ">                                   

#2 karthikeyan_coder

karthikeyan_coder
  • Members
  • PipPipPip
  • Advanced Member
  • 201 posts

Posted 02 July 2006 - 08:28 PM

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; ">                                   


replace the phptag...
<?php echo $divwid ?>
with
<?php echo "$divwid"; ?>

Thank you,
Karthi Keyan
www.karthi.us

#3 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 02 July 2006 - 09:24 PM

<?php
$divwid=930;
?>

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

If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users