Forum Moderators: not2easy
I have a page background image which is black and yellow. In order to make the text more readable in areas that cross over the yellow portions, I have specified the text background as black:
p{
font-family: Verdana,Arial,Helvetica,Sans-Serif;
color: #ffffff;
background-color: #000000;
}
However, I am seeing that the entire "row" of text is now black.
In other words if I had a page with <p>hello world</p> centered on a page, the black background extends for the entire width of the page.
Is there some sort of way to have *only* the text portion with the alternate background color - or is it one or the other?
thanks.
In order to make the text more readable in areas that cross over the yellow portions, I have specified the text background as black
You will probably have a difficult time with this because the text may not always be located in exactly the same spot, due to different user text sizes and screen resolutions etc.
You will probably have a difficult time with this because the text may not always be located in exactly the same spot, due to different user text sizes and screen resolutions etc.
It is a repeating pattern, just decorative. I am not trying to get a particular block of text to align exactly on top of it of the light or dark parts - but to make sure the text is readable, I required the text to show its own black background - to make sure that it is always white on black.