does anyone know html as to why my clock doesnt have transparent background

  • 1 Replies
  • 2339 Views

0 Members and 1 Guest are viewing this topic.

*

Offline helenw

  • Super Guru
  • ***
  • 23
  • 0
i went to the website i saw recommended on this help site.  www.timeanddate.com. i found a digital clock with date i wanted to use. while going thru my options (color, font) i said transparent for clock background and page background. and then the site built html code. but when i bring the clock up on the screen , the background is white and not transparent. here is the code:
<html>
<head>
</head>
<iframe src="http://free.timeanddate.com/clock/i2ijk3kk/n179/fs48/tct/pct/tt0/tw1/tm1/td2/th2/tb4" frameborder="0" width="420" height="112" allowTransparency="true"></iframe>

</body>
</html>
 

*

Offline dssc

  • SuperHero & MegaGuru
  • ******
  • 100
  • 31
the iframe is transparent, the default background color for the html page is white.
there is no body starting tag in your page.
Below is the code with red background:
<html>
<head>
</head>
<body bgcolor=red>
<iframe src="http://free.timeanddate.com/clock/i2ijk3kk/n179/fs48/tct/pct/tt0/tw1/tm1/td2/th2/tb4" frameborder="0" width="420" height="112" allowTransparency="true"></iframe>

</body>
</html>
 
You can try CSS style for transparent body background. <body style="background-color: transparent;">  this can work.