• Resolved paddyinthesun

    (@easylifespain)


    I want to insert a title/heading (not Header!!) into the text of my home page and have the heading background a different color than the rest of the background. The background color should be the full width of the content but be only 1 line height.

    Not sure if that makes sense but its a really simple request and i’m struggling to find the answer or the words to describe it.

    Here is an example, its not a wordpress site but you can see the value of the black bar behind “Remote Monitoring Vs. Local” and “Who is SniperSpy For:”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter paddyinthesun

    (@easylifespain)

    Ok, i’ve almost solved it by using a table:
    <table WIDTH=100%>
    <tbody>
    <tr bgcolor=”#073776″>
    <td colspan=”3″ align=”left”>
    <h2><font color=”#FFFFFF”>Text</font></h2>
    </td>
    </tr>
    </tbody>
    </table>

    Only 1 problem remaining, the table height is slightly too large, how can i reduce the height of this single row table? Anyone??

    Thread Starter paddyinthesun

    (@easylifespain)

    Ok,sorted. For anyone who may need this also:

    Remove the <h2> tags and add height=”x” in the <td> record.

    <table WIDTH=100%>
    <tbody>
    <tr bgcolor=”#073776″>
    <td colspan=”3″ align=”left” height=”10″>
    <font color=”#FFFFFF”>Text</font>
    </td>
    </tr>
    </tbody>
    </table>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Text Background color / Heading’ is closed to new replies.