Resolved Question
What is the difference between width=100 and width=100%?
 
Details:
  asked by: kenny88  on: Aug 11, 2009  
 Best Answer ! ! !
chztne 's Answer  ( this answer is maked as best answer of this question at: Aug 22, 2009 )


There is lot of difference between width="100" and width="100%". Suppose we have create a table. if width 100 will be 100 its a fixed width. while loading it will take default table width as 100 but in 100% it wont take like that

first of all it has to load fully and then it will take the browser window width and then 100% table will display in its full view and it could be changed according the resolution and browser.

but fixed width cant be changed if the resolution and browser changed
1 comments  answered on: Aug 17, 2009 
Other Answer (7)

width 100 means the size of the particular td or table is 100 pixels.
width 100 means the size of the particular td or table is eqaul to the length of the td or table which is have this td or table.

Both of declarations are eqaul in firefox. It consider both of them have a size of 100 pixels.
  crystal1993   answered on£ºAug 12, 2009  0 comments

i agree with the previous ans
  destinynfate   answered on£ºAug 13, 2009  0 comments

no diffrence
  hin_huat   answered on£ºAug 15, 2009  0 comments

Copy this code and make it html page
(see the difference between width ”100” and width ”100 ”)




<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<table width "100 " border "2" cellspacing "0" cellpadding "0">
<tr>
<td>width "100 "</td>
</tr>
</table>
<br />
<table width "100" border "2" cellspacing "0" cellpadding "0">
<tr>
<td>width "100"</td>
</tr>
</table>
</body>
</html>
  dias   answered on£ºAug 16, 2009  0 comments

There is lot of difference between width 100 and width 100 . Suppose we have create a table.if width 100 will be 100 than it would be fixed width.In other hand 100 means table will display in its full view and it could be change according the resolution.
  yuri   answered on£ºAug 17, 2009  0 comments

Width: 100 Table/ID width 100Px
Width: 100 Table/ID width Whole Page even 1024 or 1440 Px Resolution or more..
  strike_impulse   answered on£ºAug 19, 2009  0 comments

width 100 is fixed width.

Suppose we have created a table with the width of 100. It will show in browser with fixed width of 100 in any resolution. But in 100 width your table will strech according to the resolution of your monitor.
  tempura_knight   answered on£ºAug 20, 2009  0 comments

Hot Questions

Contact Us - IT-Interview