Topic: CSS problem: Hyperlink styling & background images
I have a graphic that I'd like either side of a heading on my site, that would appear something like this:
[GRAPHIC] TITLE GOES HERE [GRAPHIC]
CONTENT
Now I'd like to achieve this in CSS where possible rather than changing the PHP files, is it possible?
I can get the graphic to appear EITHER to the left OR the right of the text, but not at the same time.
Current CSS:
.content h1 a{
background: transparent url('img/title_left.gif') no-repeat top right;
padding-right: 10px;
}
To me, the problem is that the CSS is only recognising the graphic as a background, and as such it doesn't know where the title text is, so doesn't know where to place the images.
If there's a simple workaround I'm all ears.