Answer the question
In order to leave comments, you need to log in
Set an offset to a block or element??
There is a block with images
<div class="col-md-10">
<img src="http://placehold.it/150x50" alt="advertisement" class="advert" >
<img src="http://placehold.it/150x50" alt="advertisement" class="advert">
<img src="http://placehold.it/150x50" alt="advertisement" class="advert">
<img src="http://placehold.it/150x50" alt="advertisement" class="advert">
<img src="http://placehold.it/150x50" alt="advertisement" class="advert">
</div>
Answer the question
In order to leave comments, you need to log in
Set an additional class or id to the block and then perform an action
.col-md-10 #block_name > img {
position: relative;
display: inline-block;
margin-right: 1em;
margin-left: 1em;
}
#block_name > img:first-child {
margin-left:0;
}
#block_name > img:last-child {
margin-right:0;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question