[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 385
  • Last Modified:

Smarty Background Color

I am having a small issue with my .tpl file.

I have a div that has a table within it.
My main page background color is gray.
The table in the div background is not set.(Needs to stay transparent like normal.
My div background is white.

The div backgorund works fine when loaded up in the browser. The issue though is the background color to that table in the div is showing the main page background color gray.

Anyone have any ideas on this? A normal html page would show the div background which is white.

I have added a picture for you to view.
untitled.bmp
0
scprogs
Asked:
scprogs
  • 3
  • 2
1 Solution
 
TheYanCommented:
Why not setting white color to the table?

Best wishes, Yan
0
 
scprogsAuthor Commented:
Major issue with that is like that top box where you see Home Products Services etc is a image. So putting a colored box over top of a image is not really a option.
0
 
TheYanCommented:
Then you'll have to post in your code. Otherwise I can't figure out what is the problem you're having.

Best wishes, Yan
0
 
scprogsAuthor Commented:
This issue is just with Smarty. If I paste my code into a normal html document its fine.



<td align="center" valign="top" style="background-color:#FFFFFF;"><div style="position:absolute; height:23px; width:700px; left: 50px; top: 260px; border: 1px none #000000;">
              <table width="600" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
              </table>
            </div>
0
 
TheYanCommented:
Some kind of issue with Smarty... try work around. Set the table background to white, and lay your image on top.

Best wishes, Yan
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now