GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Web  >  Html
Go To First  |  Previous Question  |  Next Question 
 Html  |  Question 33 of 43    Print  
What is the difference between width=”100” and width=”100%”?

  
Total Answers and Comments: 9 Last Update: November 08, 2009     Asked by: BestGuy 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: raosekar_237
 
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

Above answer was rated as good by the following members:
webyfelix, amitverma
October 24, 2007 03:15:27   #1  
psuresh1982 Member Since: September 2006   Contribution: 1027    

RE: What is the difference between width=”100” and wid...

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.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
April 24, 2008 00:17:31   #2  
bisht Member Since: March 2008   Contribution: 1    

RE: What is the difference between width=”100” and width=”100%”?
i agree with the previous ans
 
Is this answer useful? Yes | No
June 05, 2008 02:47:58   #3  
sarlajswl Member Since: June 2008   Contribution: 1    

RE: What is the difference between width=”100” and width=”100%”?
no diffrence
 
Is this answer useful? Yes | No
June 19, 2008 02:17:11   #4  
Ambaresh Member Since: June 2008   Contribution: 1    

RE: What is the difference between width=”100” and width=”100%”?

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>

 
Is this answer useful? Yes | No
July 05, 2008 01:08:02   #5  
rakeshcrazyaccess Member Since: July 2008   Contribution: 3    

RE: What is the difference between width=”100” and width=”100%”?
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.
 
Is this answer useful? Yes | No
July 16, 2008 07:39:16   #6  
raosekar_237 Member Since: July 2008   Contribution: 2    

What is the difference between width=”100” and width=”100%”?
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

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 30, 2009 08:25:12   #7  
rahulsinghbpr Member Since: July 2009   Contribution: 1    

RE: What is the difference between width=”100” and width=”100%”?
Width: 100 Table/ID width 100Px
Width: 100 Table/ID width Whole Page even 1024 or 1440 Px Resolution or more..

 
Is this answer useful? Yes | No
August 01, 2009 00:15:00   #8  
rakeshcrazyaccess Member Since: July 2008   Contribution: 3    

RE: What is the difference between width=”100” and width=”100%”?
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.

 
Is this answer useful? Yes | No
October 27, 2009 23:09:45   #9  
MohammedArif Member Since: October 2009   Contribution: 1    

RE: What is the difference between width=”100” and width=”100%”?
Suppose we are giving width 100 in an image tag then the width of the image is 100
pixel which too small and if we give width 100 then the width of the image is 100 of the window. Just try this

<img src Location of Image width 100 height 100 >


and


<img src Location of Image width 100 height 100 >


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape