X
X
xlo2402016-11-25 15:54:16
HTML
xlo240, 2016-11-25 15:54:16

How to match html5 semantics with bootstrap markup?

How to match html5 semantics with bootstrap markup?
If the example header
How to write correctly?
<header class="row">...</header>
Or

<header>
<div class="row">...</div>
</header>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
iBird Rose, 2016-11-25
@iiiBird

need so.

<header>
<div class="row">...</div>
</header>

Let's start with the fact that row is used only in conjunction with col. writing <header class="row">...</header>, you limit yourself to the fact that inside the header you can’t even put a regular div without classes if you don’t wrap it in col. because row has margin: -15px;

N
Nikita Kit, 2016-11-25
@ShadowOfCasper

боооже, сколько сказочников собралось)))
Ребят, бутстрап-классы кидать в html - полный тухляк. Никто не слышал про sass? Про то, что бутстрап можно ставить через bower? Про что, что классы бутстрапа в разметку кидать быдлокод, и что нормальные люди юзают @extend??)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question