Jump to content

CSS background color for text

Recommended Posts


I got a problem with some css settings. In the block headers I got a background pic. So for the block titles I need a background color to make them readable.

here is my css settings

div.block h4 {
text-transform: uppercase;
font-family: Helvetica, Sans-Serif;
font-weight: bold;
font-size: 1.2em;
border-bottom:0px solid #595A5E;
color: black;
background-color: white;
height: 19px;
background: transparent url('../img/block_header.gif') no-repeat top left;
div.block h4 a { color: #374853;
background-color: white;

It works well for all block with a linked title but doesnt work for the rest. Guess somehow the background color is under the background pic.

Any simple solutions for that?


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More