473,408 Members | 1,817 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,408 software developers and data experts.

div height changed with IE.

I have a lot of problems with IE browser, one of them is described in this topic.
in my website i have div Calculator with background image. it displayed perfectly with Firefox browser however in IE browser the height of the layer increased and it shown longer than the regular height which makes troubles with the footer of the website.

This is the CSS of the layer:
Expand|Select|Wrap|Line Numbers
  1. .demo  {position:absolute ; top:710px; left:380px; z-index:99;  visibility:hidden;}
  2. #calc * { margin: 0; padding: 0; }
  3. #calc img, #calc fieldset { border: 0; }
  4.  
  5. #calc { width: 361px; height: 100%; line-height:18px; background: url(images/bg_02.gif) repeat-y; }
  6. #calc .top { width: 361px; height: 100%; line-height:18px; background: url(images/bg_01.gif) no-repeat top; }
  7. #calc .bottom { padding-bottom: 10px; width: 361px; line-height:18px; height: 100%; background: url(images/bg_04.gif) no-repeat bottom; }
  8. #calc .container { width: 335px; height: 100%; line-height:18px; float: left; padding: 15px 0 10px 15px; overflow: auto; }
  9. #calc .prop { width: 1px; height: 464px; line-height:18px; float: right; font-size:1px; }
  10. #calc .label { margin: 15px 0 0 0; }
  11. #calc option { padding: 0 3px; }
  12.  
  13. /* calculator glass */
  14.  
  15. #calc .glass { width: 308px; height: 41px; background: url(images/glass.gif) no-repeat; text-align: right; border: 1px solid #eee; }
  16. #calc .glass div { margin: 8px 10px 0 0; }
  17. #calc .glass div input { font-size: 24px; } 
  18. #calc #amount { border: none; background: transparent; text-align: right; width: 90%; }
  19.  
  20. /* buttons */
  21. #calc .buttons { width: 335px; height: 213px; background: url(images/buttons_01.gif) no-repeat left; }
  22. #calc .buttons .button-area { width: 182px; height: 100%; float: left; }
  23. * html #calc .buttons .button-area { width: 185px; }
  24. #calc .buttons fieldset { margin: 0; padding: 0; overflow: auto; }
  25. #calc .buttons input, #calc .buttons img { margin: 0; padding: 0; float: left; display: inline; }
  26. * html #calc .close { margin-left: -4px; float: left; overflow: auto; }
  27.  
  28. /* button #s */
  29. .i1    { width: 60px; height: 43px; background: url(images/buttons_02.gif) no-repeat; border: none; }
  30. .i2 { width: 61px; height: 43px; background: url(images/buttons_03.gif) no-repeat; border: none; }
  31. .i3    { width: 61px; height: 43px; background: url(images/buttons_04.gif) no-repeat; border: none; }
  32. .i4    { width: 60px; height: 42px; background: url(images/buttons_06.gif) no-repeat; border: none; }
  33. .i5    { width: 61px; height: 42px; background: url(images/buttons_07.gif) no-repeat; border: none; }
  34. .i6    { width: 61px; height: 42px; background: url(images/buttons_08.gif) no-repeat; border: none; }
  35. .i7    { width: 60px; height: 41px; background: url(images/buttons_09.gif) no-repeat; border: none; }
  36. .i8    { width: 61px; height: 41px; background: url(images/buttons_10.gif) no-repeat; border: none; }
  37. .i9    { width: 61px; height: 41px; background: url(images/buttons_11.gif) no-repeat; border: none; }
  38. .ic    { width: 60px; height: 40px; background: url(images/buttons_12.gif) no-repeat; border: none; }
  39. .i0    { width: 61px; height: 40px; background: url(images/buttons_13.gif) no-repeat; border: none; }
  40. .calculate { width: 182px; height: 47px; background: url(images/buttons_15.gif) no-repeat; border: none; }
  41. #calc .close-button { width: 69px; height: 47px; background: url(images/buttons_16.gif) no-repeat; border: none; float: left; }
  42.  
  43. /* headers */
  44. #calc h3 { width: 100%; line-height: 2em; text-align: center; }
  45.  
  46. /* text formatting */
  47. #calc { font-size: .8em; font-family: Arial, Helvetica, sans-serif; }
  48. #calc select { font-size: 1em; font-family: Arial, Helvetica, sans-serif; }
  49.  
  50. /* font size */
  51. .f08 { font-size: .8em; }
  52. .f10 { font-size: 1em; } 
  53.  
  54. /* font colors */
  55. .fwhite { color: #fff; }
  56.  
  57. /* background colors */
  58. .c678bbb { background-color: #678bbb; } /* medium blue */
  59. .ce6e8f7 { background-color: #e6e8f7; } /* light purple */
  60.  
Screenshot of the calculator in Firefox ( OK )



and in IE 7 ( Problem ) .



Please help me asap.

Thanks in advance,
Aug 4 '07 #1
1 3341
drhowarddrfine
7,435 Expert 4TB
I have a lot of problems with IE browser
As does the rest of the world.

Showing the CSS is only half the picture. Without the html, it does little good. A link is preferable.
Aug 5 '07 #2

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

Similar topics

12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
3
by: Les Juby | last post by:
I am trying to adjust the window/table size of a website (www.worklaw.co.za) which has made use of DIV tags with its settings embedded in an CSS file. The client wants its width and height to...
22
by: Les Juby | last post by:
I am trying to adjust the window/table size of a website (www.worklaw.co.za) which has made use of DIV tags with its settings embedded in an CSS file. The client wants its width and height to...
0
by: mccoyn | last post by:
I am making a class dervied from ComboBox. The height of the items in the list will be changed by the program. I've gotten this to work with OnMeasureItem, but there is a large space left behind. ...
5
by: Dennis | last post by:
I have a class that inherits from DataGrid. I can set the rowheights in a DataGrid by tappig into the "get_Datagridrows" method. However, this does not work for classes that inherit from...
2
by: emma.sax | last post by:
My script is as follows: function setImageSizes() { var staticHeight = 70; if(!document.getElementsByTagName || !document.images) return false; var thumbnail =...
8
by: Harris Kosmidhs | last post by:
I have my whole page in a <tablejust to center it. Now I changed it and used a div instead: #wrapper { width:900px; margin:0 auto 0 auto; border-left:1px solid; border-right:1px solid;...
1
by: Danny | last post by:
Hi All, Problem: I'm adding a new span, setting its style, and after appending it to its parent-span, the offsetHeight is changed automatically for some reason... So instead of a square 14x14, I...
1
by: neridaj | last post by:
Hello, I've found a few postings of this problem but none of the answers seem to fix my problem. I have a content div wrapped around a left floated image and a right floated table. I want the...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.