Announcement

Collapse
No announcement yet.

<h1> tag causing problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • <h1> tag causing problems

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

  • #2
    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...

    Comment


    • #3
      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.

      Comment


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

        Comment


        • #5
          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

          Comment


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

            Comment


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

              Comment

              Working...
              X