Link to home
Start Free TrialLog in
Avatar of Brad Bansner
Brad Bansner

asked on

text in DIV with border on top, move text away from border downward

In attached code, the text is basically touching the top border of the DIV. I want to bump it down 4 pixels. Adding a margin-top moves the border and the text down. Adding a padding-top appears to do nothing. What is the correct way to do this? Thank you!
#exerciselist {margin: 0px 0px 9px 0px; padding 0px; width: 173px; border-top: 1px solid #c8cfd0;}

<div id="exerciselist">Exercise List</div>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of oleggold
oleggold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brad Bansner
Brad Bansner

ASKER

Ah, darn it. So I was correct, padding-top is the right way to do it. I had a typo in my syntax:

padding 0px

Was missing the colon!

padding: 0px

Thanks anyway.