I am setting up a bootstrap theme and I am having a problem that is probably very easy to solve.
I have a data block that looks like this:
<article class="span4 data-block"> <div class="data-container"> <section> <img src="photo.jpg" width="350" height="350"> </section> <section> <p>Some writing below here</p> </section> </div> </article>
And my CSS for this part:
.data-block .data-container { padding: 23px 23px 3px 23px; background-color:
Because of:
padding: 23px 23px 3px 23px;
I have a space around the image. I want to leave the uppercase letters the same for all other sections of the data block on the website, but they have no indentation (so that the image is completely displayed without filling inside the div) on this one data block.
I tried:
<div class="data-container nopadding">
and then added an extra class in CSS with the addition of 0px, but that didn't work for the override. I am sure that where I am doing something wrong.
Can someone lead me in the right direction? Many thanks:)
source share