Add CSS code to the PHP variable.
#scrolling_1 {width:635px; height:240px; overflow:hidden; padding:1px; border:1px solid #999; margin:0 auto; Text-align: Left }
#scrollnews_1 {position:absolute; width:645px; height:240px; overflow:hidden; display:inline; top:1; left:1;}
#scrollnews_con_1 {width:645px; overflow:hidden;}
#scrolling_1 ul {display:block; height:240px; width:645px;}
#scrolling_1 ul li {height:240px; width:205px; float:left; overflow:hidden; display:inline; margin-right:10px;}
This I want to give the PHP variable value after output.
for (i=0; i=100; i++) {
echo "#scrolling_1 {width:635px; height:240px; Overflow:hidden; padding:1px; border:1px solid #999; margin:0 Auto; Text-align:left; }";
#scrollnews_1 {position:absolute; width:645px; height:240px; overflow:hidden; display:inline; top:1; left:1;}
#scrollnews_con_1 {width:645px; overflow:hidden;}
#scrolling_1 ul {display:block; height:240px; width:645px;}
#scrolling_1 ul li {height:240px; width:205px; float:left; overflow:hidden; display:inline; margin-right:10px;}
}
?>
After writing this, it's not normal.
How do I write it?
Share to:
------Solution--------------------
Add $ to the variable before
That
for ($i =0; $i =100; $i + +) {
------Solution--------------------
for ($i =0; $i <=100; $i + +) {
echo "#scrolling_1 {width:635px; height:240px; Overflow:hidden; padding:1px; border:1px solid #999; margin:0 Auto; Text-align:left; }
#scrollnews_1 {position:absolute; width:645px; height:240px; overflow:hidden; display:inline; top:1; left:1;}
#scrollnews_con_1 {width:645px; overflow:hidden;}
#scrolling_1 ul {display:block; height:240px; width:645px;}
#scrolling_1 ul li {height:240px; width:205px; float:left; overflow:hidden; display:inline; margin-right:10px;}