Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using php to make css dynamic...

Status
Not open for further replies.

dongbamage

Programmer
Nov 3, 2004
32
GB
is this possible?

<?
$d=10;

echo ('<div align="center" style="width:10%; border-style:dashed; left:' .$d .'%; ">');

</div>

$d++;
?>
 
This is not how you would want to do it though.
Either:
a)
Make one stylesheet with the different designs defined (.bgcolor1, .bgcolor2, .bgcolor3, etc)
b)
define styles in database and parse them out.

the stylesheet can be attatched, or defined in the document.

If you dont understand what I mean, please ask me to tell more in depth. As then I can give you an example, but now I have to drive to the post-office.

good luck!



Olav Alexander Mjelde
Admin & Webmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top