Jump to content

inChaos

Members
  • Posts

    4
  • Joined

  • Last visited

inChaos's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. inChaos

    Tables

    sorry guys, i added height 100% to body and it works....perhaps should read more carreffully...and learn to write en english, of course:)see ya:)
  2. inChaos

    Tables

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title>table-exp</title><style type="text/css"><!--body{margin:0px;}table{width:770px;height:100%;}.menu{width:200px;background:pink;height:100%;}.content{background:blue;height:100%;}.footer{background:red;height:20px;}--></style></head><body><table cellpadding="0" cellspacing="0" border="0"><tr><td class="menu">menu</td> <td class="content">content</td></tr><tr><td colspan="2" class="footer">footer</td></tr></table></body></html> ************************next one is simular, but with div-s:************************ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title>div-exp</title><style type="text/css"><!--body{margin:0px;}.menu{width:200px;float:left;background:pink;height:100%;}.content{width:570px;float:left;background:blue;height:100%;}.footer{width:770px;clear:left;background:red;height:20px;}--></style></head><body><div class="menu">menu</div><div class="content">content</div><div class="footer">footer</div></body></html> try this examples - it fits all the body ONLY if you remove the doctype tag, or if the doctype tag is for html...
  3. inChaos

    Tables

    in the XHTML doctype i tried all to make element - <p>, or <div>, or table, or table cell with 100% heightit works, at the moment i change the doctype to html 4.01 for example....is it possible they simply do not have 100% height of the element in the xhtml?
  4. this works if you have:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">(or the default doctype...) but this is HTNLbut if doctype is:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">wich is XHTML...then there is no 100% of height...the same for tables or any tag - az i see...Is XHTML can support height:100% at all?as much as i can see - no... anyone?
×
×
  • Create New...