-----Original Message-----
From: Sheila Fenelon 
Re: php and css tables

Hi drew,

I'm confused, where exactly are you doing this

> 
> .top{background-color:"$top_row_color";}
> table{border: 1px solid "$main_table_border_color";}
> 

Is it in a .css file or a .php file? It needs to be in a .php file and 
the values need to be echo'd like of so,

top{background-color:<?php echo $top_row_color ?>;}
table{border: 1px solid <?php echo $main_table_border_color ?>;}

Sheila


=========================================================================

The script is PHPSlideShow v0.6.2 by Greg Lawler. It functions fine. I'm
just trying to modify his table from tag soup to css. I'm expanding the
embedded css style sheet within the php scripted page. That is to say the
entire page is written by the script. It is not a page with an embedded
script. The background colors, border colors, font colors, and several
others are defined as variables early in the script. The html includes those
variables along with an exploded array to create the slideshow page.

Your solution doesn't work. Although I'm sure if my explanation were more
articulate your answer would have changed and worked. What does turn out to
work is just to drop the quotes in the embedded style sheet. So both of
these work:

<table width="$main_table_width" align="center" valign="center" 
        border="0" cellspacing="0" cellpadding="1"
bgcolor="$main_table_border_color">

and:

<style type="text/css">
table{border:1px solid  $main_table_border_color;
               text-align:center;width:600px;  margin-left:auto;
margin-right:auto;}
</style>

I remain confused as to why quotes and not quotes. I do understand why echo
doesn't work. Thanks for your help it actually did get me to try the
combination that worked, even if I thought I had tried it already. 

drew

____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to