I have a question about styling a tag. I want to add 25px padding and a 15px border from the left, while also using an arrow background image. Is it possible to display this background image above the border?
Below is the HTML code:
<a id="arrow">List</a>
And here is the corresponding CSS:
a#arrow {
background:url('https://cdn4.iconfinder.com/data/icons/ionicons/512/icon-ios7-arrow-back-20.png') no-repeat;
padding-left:25px;
border-left:15px solid #f1f1f1;
}
You can view a demo of this setup on jsfiddle.