B
B
beduin012018-03-10 13:23:43
HTML
beduin01, 2018-03-10 13:23:43

Should you put navigation elements in separate divs?

Suppose I am doing layout on flexbox. Should I split the page into three divs at the beginning:
- Head
- Middle
- Footer
Position and then do a separate nav block inside the Head? I will make blocks with a simple template engine. Or immediately try to position the nav block as I need it through flexbox?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ink, 2018-03-10
@AskMy

head is generally a service field, and you don’t need to shove any markup there, in a rare case, you can add css there in the tag, <style></style>
what you want can be done with one name for class : flex_element and wherever you put this class will be flexBox , and header, middle ,footer and other semantic html tags for a semantics act as a regular block

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question