Jump to content

How to do padding-bottom in css?


newcoder1010

Recommended Posts

Hi,

 

I have the below css and it works:

 

 .print-content .field-name-field-carinfo  .field-label{    font-size: 30px;    color: red;    padding-top: 25px;    padding-right: 10px;    padding-bottom: 5px;    padding-left: 5px;    background-color: gray;    text-decoration: underline;     }
In addition to that, I would like to do padding-bottom. If i just change padding-bottom from 5px to 10px, it expands with the background color gray. Instead, I would like to do padding-bottom after the gray background?
Many thanks,
N
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...