Why is my simple html and css code not working?
I want to have a plain text with a big background color and then align the text inside in the middle vertically. I tried the vertical align middle and it's not working. Can you please look at my code and tell me why it's not working?
<span class="intxt">this is a text centered in the middle of a box</span>
The text is not aligned vertically in the middle of the background color. Why?
- Anonymous3 days agoFavorite Answer
try adding line-height into #txtinbox