Hi all,
What is the difference between width="100" and width="100%"?
Thanks
What is the difference between width="100" and width="100%"?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
karthick kumar106 reputationPosted Sep 28, 2010, 11:59 PM EDT
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