0

Is it possible to nest <div></div> inside of each other?

7th Oct 2022, 1:57 PM
MyNameIsNotBob
MyNameIsNotBob - avatar
5 odpowiedzi
+ 4
Have you tried it? What did you experience?
7th Oct 2022, 2:14 PM
Lisa
Lisa - avatar
0
Yes it is possible. You can nest inside any block tags both inline tags and other block tags, while inside inline tags you can only nest other inline tags. A more reccomended way to do it in order to improve code lisibility is to use tags like article, section, aside, nav, header and footer. In case of errors feel free to offer details
8th Oct 2022, 5:47 AM
Stefan Corneteanu
Stefan Corneteanu - avatar
0
Lisa I was styling the divs individually, and it never styled.
8th Oct 2022, 8:51 PM
MyNameIsNotBob
MyNameIsNotBob - avatar
0
AJ 🇺🇦#PeaceForUkraine🇺🇦 could you give us an example?
9th Oct 2022, 4:16 AM
Stefan Corneteanu
Stefan Corneteanu - avatar