master maste
New Member
- Reaction score
- 32
OK I have some troublesome css...
the element is supposed to have a 1px solid white line around a green box, with some text on the inside. The text is inside paragraph tags.
The problem is that it shows the white border and has the green background, but when the text is added the background on the whole line where the text is goes see through (what ever is on the background color). Any reasons?
the element is supposed to have a 1px solid white line around a green box, with some text on the inside. The text is inside paragraph tags.
Code:
CSS:
#header }
background: #009933;
border: 1px solid white;
}
HTML:
<div id="header">
<p>header</p>
</div>
The problem is that it shows the white border and has the green background, but when the text is added the background on the whole line where the text is goes see through (what ever is on the background color). Any reasons?