473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

ASP.NET button height is not working in IE7

Hi,

i have a asp button that i want to set its height from C# Code:
Expand|Select|Wrap|Line Numbers
  1. <asp:Button ID="DCs_Green" runat="server" >
  2. </asp:Button>
the CSS is as following:
Expand|Select|Wrap|Line Numbers
  1. #DCs_Green
  2. {
  3.     width:70px;
  4.     background:green;
  5.     float:left;
  6.     border:0px;
  7.     padding:0px;
  8.     margin:0px;
  9. }
then i set the height based on a some calculations from C# code behind as following:
Expand|Select|Wrap|Line Numbers
  1. DCs_Green.Style.Add("height", percentageOf.ToString() +"%" );
Every thing works fine when i open the page from IE8, but when i open the page in compatability view the height property doesn't take effect and doesn't work as it should. I'm assuming that it won't work with IE7 or IE6 as well.

what is the right CSS that i should use to get that working with IE7 and compatability view?

Thanks in advance
Eihab Isaac
May 17 '10 #1
0 1458

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: ravey | last post by:
I would like to use a Form "button" (or "input", either one) within an anchor, instead of using text or creating a graphic. This works fine in all browsers but IE, but IE, while showing the...
3
by: crosser | last post by:
Hi, I want to adjust button height based on label text. Normally I have standard height because label text has one row, but the text can change in runtime. I want to adjust height of the button...
3
by: kashif_khan | last post by:
hi everyone, can anybody please tell me why reset button is not working in the following code, i tested it in opera, firefox and konqueror, <form action='edit_links.php' method='POST'...
5
by: vagrantbrad | last post by:
I've created a short test program that uses tkFileDialog.askdirectory to help the user input a path into a tk entry widget. The problem I'm having is that when I run the code as listed below, the...
2
by: rhyme2ri2 | last post by:
Hi!! I'm using asp.net 1.1 I have a datalist which gets dynamic data which is of unbound size may be small sometimes and may be very very long sometimes....... Whatever the size of data may be...
2
by: guile | last post by:
Hi, I have wasted quite some time trying to insert a very simple yes/no radio button on the page. Everything works fine except for that the default state of button is not being set in any of the...
18
by: bning | last post by:
Hmm this forum really doesn't give you long enough to type in your question before logging you out.. well here goes my second attempt: I'm trying to teach myself javascript with dom scripting and...
9
by: anuparvathy | last post by:
i am using a flash template for my website.i am working on asp.net 2.0 for creating my website. this flash template has got buttons.on the click of the button i want the user to be redirected to the...
6
by: lewis905 | last post by:
Hi, Ive been working on an Access database for over a month now and I have had some trouble with creating a search button, and making it work. I can create the button but for some reason it stil does...
1
by: ismailc | last post by:
Good day, i have been trying a few things to get around setting the height. But no luck, i dont htink the default button height can be set in IE7. Please help {padding: 0px 0px 0px 0px; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.