S
S
Sanan Yuzb2015-10-25 11:40:26
css
Sanan Yuzb, 2015-10-25 11:40:26

Why does the block move down when text is added to it?

When you add text to any of the blocks, it will blend down. Please explain what's the matter?
link

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
holfza, 2015-10-25
@Sanan07

jsfiddle.net/oekq71yg/1

C
coderisimo, 2015-10-25
@coderisimo

add to an empty block  
or vertical-align: bottom; in divs,
as I understand it, inline-blocks without text are rendered incorrectly. to solve the problem, add vertical-align: bottom;

K
Kirill, 2015-10-25
@GoooodBoy

This is because the header has a margin by default. Reset it and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question