GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Web  >  Html
Go To First  |  Previous Question  |  Next Question 
 Html  |  Question 33 of 39    Print  
What is the difference between width=”100” and width=”100%”?

  
Total Answers and Comments: 6 Last Update: July 16, 2008     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
October 24, 2007 03:15:27   #1  
psuresh1982 Member Since: September 2006   Contribution: 1018    

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 | No
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=&quot;100%&quot;</td>
  </tr>
</table>
<br />
<table width="100" border="2" cellspacing="0" cellpadding="0">
  <tr>
    <td>width=&quot;100&quot;</td>
  </tr>
</table>
</body>
</html>

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

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    


 
Go To Top


 Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape