R
R
RedHairOnMyHead2016-05-14 19:32:02
css
RedHairOnMyHead, 2016-05-14 19:32:02

How to remove bottom padding?

For some reason, the placeholder works under the text.
How to fix?
8ce014bcd1234bd1ba6c74d64a372eb6.png

#heading {
  background: transparent url(../images/h1-bg.png);
  margin: 30px 0;
  padding-left: 20px;
}

h1 {
  display: inline-block;
  color: #111;
  font: 40px/40px 'Oswald', sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0 10px;
  
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Laid, 2016-05-14
@ThePyzhov

Make the height of the block with the caption and the block with the background the same height. This part of the background is visible

h1 {
  display: inline-block;
  color: #111;
  font: 40px/40px 'Oswald', sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0 10px 3px 10px;
  
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question