<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<a href="">a href</a>
<a>
<button style="display:block;">a button</button>
</a>
</body>
</html>
According to the rending result, I tried to explain: block-level element
<button> generates a block box, and according to the containing block's
definition in css2.1 spec, it's containing block should be the block box
generated for <body> element; Because a containing block can only contain
either block boxes or inline boxes, two anonymous block box should be
generated, each wrapping a inline box generated for <a> elements, so the
button box's containing block should be the anonymous block box, right? and
what is the second <a>'s inline box? Does it contain the button's block box?
TIA.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/