Hy, I have a problem, when I using height attribute in % it's not working, working when I use in px, I want to use height attribute in %, please someone help.
<!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">
<head>
<title>Width and Height </title>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8"/>
The problem with % height is that it needs to be measured in relation to something. The element will ask itself "50% of what?" Unless the parent has a set height, there's no basic on which to set a height. Setting heights is rarely a good idea anyhow.
Bookmarks