Hi all,
What is the difference between width="100" and width="100%"?
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
karthick kumarPosted Sep 29, 2010, 3:59 AM
width="100" represents the pixel size of the Control and width="100%" Fixes the size of the control based on the Parent control.
for example:
If a Gridview is inside a panel and panel having a width say for example 300 px . Then when we provide width="100%" for the Gridview it takes the width of the Panel(ie. 300px).
if we provide width="50%" for the Gridview it takes the half of width of the Panel(ie. 150px)
mark i as answrerd if it is correct