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


  
Total Answers and Comments: 4 Last Update: May 28, 2009     Asked by: goldenstars.nirmala 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: phull.neha
 

width="100" means only 100px of the computer screen
however width="100%" means it will cover the whole screen



Above answer was rated as good by the following members:
amitverma
November 05, 2008 16:24:57   #1  
SJose Member Since: January 2008   Contribution: 2    

RE: HTML Width Attribute
Width attribute in HTML can be expressed in pixels or percentage.The example of width expressed in pixels is :
<HR WIDTH "100">

If you are expressing the same in percentage then it would be

<HR WIDTH "100 ">

Remember to enclose the value in quotes if you use a percentage width.

I hope this will help you

Best

SJose

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 18, 2008 12:02:20   #2  
princesh Member Since: November 2008   Contribution: 2    

RE: HTML Width Attribute
When you say width 100 it gives 100px of width however width 100 is to cover 100 of the resolutin of the client.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
January 12, 2009 09:04:02   #3  
phull.neha Member Since: January 2009   Contribution: 2    

RE: HTML Width Attribute

width "100" means only 100px of the computer screen
however width "100 " means it will cover the whole screen


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 28, 2009 11:43:22   #4  
srikanth2961 Member Since: May 2009   Contribution: 1    

RE: HTML Width Attribute
Basically it's all about layouts

Fixed and flow layout are two different types. We use Flow layout when we want our web page to fix in any resolution. In flow layout we use to match the of the screen while in fixed we use pixels

So 100px stands fixed
while 100 stands for Flow which will adjust itself

 
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