From: Camille Petersen on 4 Feb 2010 12:10 Assume I have the following HTML code (for simplicity with embedded CSS instructions): <html>.... <body width="1000px"> <div width="800px"> <div width="80%"> <table margin-left="20px" width="90%"> .... </table> </div> ... </div> .... </body> </html> Unfortunately the width value of 90% in <table> refers to its parent container which in turn refers to its parent container. So the table width in reality is 800 * 0.8 * 0.9 - 20 = 556px Is there a way to refer the width of the table to the width of the browser window regardless of what is spcified in the parent container(s) cascade? Camille
|
Pages: 1 Prev: Style first list item differently Next: Selector for content? |