Please report all spam threads, posts and suspicious members. We receive spam notifications and will take immediate action!
Results 1 to 7 of 7

Thread: <h1> tag causing problems




  1. #1
    Join Date
    Apr 2002
    Posts
    2

    Default

    how do you set the background color of a &lt;h1&gt; tag?

  2. #2
    Beefy Guest

    Default

    use bgcolor=....

    For example:

    &lt; h1 bgcolor="#F00000"&gt;Text&lt; /h1&gt;

    For some reason it doesn't work here on TT though.. it works on normal HTML... There must be another way to do it...

  3. #3
    Join Date
    Nov 2001
    Posts
    4,723

    Default

    my limited experience with using BG tags in the forum resulted in changing the background of the page instead of the post :laugh:

    Maybe Mr. Tweak locked it down before I caused another mishap:?:
    The reason a diamond shines so brightly is because it has many facets which reflect light.

  4. #4
    Beefy Guest

    Default

    That's fair enough too.. but that method still works normally.. hope it helps.

  5. #5
    Join Date
    Mar 2004
    Posts
    2,910

    Default

    One common way to do this is with CSS.

    e.g. In the HEAD section of an HTML page:

    &lt;style&gt;h1 { background: #00aa00; color: #ff00ff; }&lt;/style&gt;

    Always specify background and color together. It doesn't do to specify green text
    if your viewer's browser is set to have green backgrounds.

    HTML includes color config for table cells as well.

    My preferred reference/tutorial for CSS is http://www.htmlhelp.com/reference/css/ , but you can find a bunch more at http://www.w3.org/Style/CSS/learning

  6. #6
    Join Date
    Mar 2004
    Posts
    2,910

    Default

    &lt;a bgcolor="#000000"&gt;test&lt;/a&gt;

  7. #7
    Beefy Guest

    Default

    whoever that was, why did you use the &lt; a &gt; tag?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •