Could anyone tells me how to decrease the height of the content area for p tag with css?
I want to, 1. bring the bottom orange dotted line closer to the text above. (border-bottom: 3px orange dotted;) 2. reduce the height of the yellow highlighting box. (body { background-color:yellow })
adjusting the properties "line-height" and "height" don't help...
Thanks!
You should be able to change the height with the "line-height" property make sure there is not another css overwriting it. to make sure you can add !important at the end like this:
if that worked go back to your code and make sure you dont have another element changing the line-height
take the margin and padding off your p tag.
if that does not work for you put it in a div with a specified height;
style;