<ul class="list">
<section class="info2">
<li> id="airtime">
<span>
AIRTIME TOP UP
</span>
</li>
<li id="data">
<span>
DATA RECHARGE
</span>
</li>
<li id="account">
<span>
ACCOUNT OPENING
</span>
</li>
</section>
</ul>
.list {
list-style-type: square;
list-style-position: inside;
position: relative;
right: 40px;
text-indent: 10px;
bottom: 15px;
font-family: tusker;
}
.info2 {
font-size: 13px;
position: relative;
text-indent: 20px;
}
#airtime {
border: 1px solid coral;
}
#data {
border: 1px solid coral;
}
#account {
border: 1px solid coral;
}
I want bullet and the list item to move right, inside the border. I tried using margin but it moves the border instead and when I try using left it moves list item away from bullet
2
Answers
Here is what you wanted. Use padding instead of margin. The distance between the border and the content is padding.
Looks like you are looking for padding-left 🙂
Also there is an error in your html snippet, first li tag closes prematurely.