We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Fixed width across browsers

Thread ID:





43161 Apr 17,2006 11:38 AM Jun 15,2006 12:33 AM ASP.NET Web Forms (Classic) 1
Tags: FAQ
Asked On April 17, 2006 11:38 AM

What is the best way to fix a Label width size so that its the same across all browsers (IE,firefox,MAC)? I have tried Width: 20px or em in my CSS and that doesn''t seem to work. Also tried to do Label.width = Unit.Pixel(20) and Label.style.add("width") = Unit.Pixel(20) and these doesn''t work either. Any help in this would be greatly appreciated!!

Administrator [Syncfusion]
Replied On June 15, 2006 12:33 AM

Hi, you can set the width of label as follows, Label1.Width=200; If you use style sheet means, Label and also give in header tag . Thanx


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.