I am very new to this, so sorry for any misuse of vocab. I want to have a space between two buttons, which have an inline-block display. The "margin" property doesn't do what I need it to do.
CSS:
.pagination{
background:#155484;
padding:20px;
border:2px solid #155484;
border-radius:3px;
position:absolute;
left:75%;
top:75%;
}
.pagination li{
display:inline-block;
list-style-type:none;
}
.pagination a{
color:#fff;
text-decoration:none;
}
HTML
<div class="pagination">
{block:Pagination}
{block:PreviousPage}
<a href="{PreviousPage}">←</a>
{/block:PreviousPage}
{block:NextPage}
<a href="{NextPage}">→</a>
{/block:NextPage}
{/block:Pagination}
</div>
(This is using Tumblr-specific variables.)
Also if there's anything in here that can be changed or omitted, that would be great to know!
Here are 3 examples that will add spaces in this scenario:
Using codes between links
link # 1 ( a href ...)
link # 2 (a href ...)
2. Using an empty <span class="spacing"></span>
'spacing' can be defined in css as:
.spacing {
padding-right: 20px;
}
3. Adjusting the padding-right property of <a> tag
.pagination a {
padding-right: 20px;
// other attributes
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With