CSS Code Snippets

CSS has never been my forte, but I do have some snippets that I refer to often.

Change Link Color, Site-Wide

a, a:link, a:visited {
color: #F73838;
text-decoration: none;
}

Adjust the Space Between Rows

p {
line-height: 150%;
}

2 Column divs

<div style=”width: 50%; float: left;”>#left content in here</div>
<div style=”width: 50%; float: right;”>#right content in here</div>

Button Styling

.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}

#left content in here
#right content in there

 

>