developer sign in
where » create » reference » attribute » bg

bg


A style attribute defining the background color of an element.

Details

  • In order to set the background of the entire page, apply the bg attribute to the body element.
  • As a style attribute, the bg value cascades to child elements.
  • Valid values are "0x000000" through "0xFFFFFF".
  • Default value is "0xFFFFFF" - white.

Example

<pr>
  <text>Clicking 'Ok' will delete your saved locations</text>
</pr>
<pr>
  <input type="button" value="Ok" bg="0x454545" onSelect="delete()" />
</pr>


<body bg="0xFFFFFF">
  <pr>
    <text>Clicking 'Ok' will delete your saved locations</text>
  </pr>
  <pr>
    <input type="button" value="Ok" bg="0x454545" onSelect="delete()" />
  </pr>
</body>
terms of use | privacy policy | about | FAQ | blog | jobs | contact us
For 24/7 support email support@where.com or call 888-262-1150
WHERE™ is a product from uLocate Communications, Inc. ©2007 All Rights Reserved.