Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a limit to how deep an HTML document or CSS tree can be?

Tags:

html

css

I've been wondering this for a while, because I've got some pretty deep HTML structures going on. My points are these:

  • Is there a maximum limit to the number of nesting levels for HTML?
  • Likewise with CSS - I need to select stuff from the leaf nodes of the HTML DOM tree?
  • Is it browser dependent?

Thanks for any help,

James

like image 332
Bojangles Avatar asked Dec 16 '22 12:12

Bojangles


1 Answers

I'm going to lean toward no limit that I'm aware of. You should check this one out: http://www.geeksaresexy.net/2009/09/01/a-hidden-gem-in-html/. The site is nested deeply enough to recreate a skyline using font tags.

like image 80
g.d.d.c Avatar answered Dec 19 '22 08:12

g.d.d.c