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

Vertical alignment in IE

hey everyone, i have a site that i have designed in dreamweaver. In firefox, the site looks fine, but in IE the whole thing is vertically missalligned, apart from the header / menu.

I have created the site using css, which i include below. the site can be viewed at http://www.catalystpics.co.uk/dev/index.html
Expand|Select|Wrap|Line Numbers
  1. Thanks in advance to anyone who can help
  2.  
  3. This is my css
  4.  
  5. body {
  6.     padding: 0;
  7.     margin: 0;
  8.     font-size: 12px;
  9.     font-family: Tahoma, Arial; 
  10.     text-align: justify;
  11.     color: #5C5C5C;
  12.     border:0px;
  13.  
  14. /* Header */
  15. #header {
  16.     width: 1200px;
  17.     margin: 0 auto;
  18.     height: 60px;
  19. }
  20.  
  21. /* Menu */
  22. #menu {
  23.     float: left;
  24.     background: url(images/menu.gif) repeat-y top center; 
  25.     width:1200px; 
  26.     height:95px; 
  27.     margin:0 auto;    
  28. }
  29.  
  30. #menu ul {
  31.     font-weight:bold; 
  32.     font-size:16px;
  33.     text-decoration:none;
  34.     margin: 0;
  35.     padding: 23px 0 0 20px;
  36.     list-style: none;
  37.     line-height: normal;
  38.     text-align:center;
  39.  
  40. }
  41.  
  42. #menu li {
  43.     text-align: center;
  44.     display:inline;
  45. }
  46.  
  47. #menu a {
  48.     font-weight:bold; 
  49.     font-size:16px;
  50.     text-decoration:none;
  51.     color:#ffffff; 
  52.     background-color:#000000; 
  53.     padding:0px 30px 2px 30px;
  54. }
  55.  
  56. #menu a:hover { 
  57.     background-color:#FAE707;    
  58.     font-weight:bold; 
  59.     font-size:16px;
  60.     text-decoration:none; 
  61.     color:#000000;
  62. }
  63.  
  64. #menu .current_page_item a {
  65.     background-color:#FAE707;
  66.     color: #000000;
  67. }
  68.  
  69. /* Page */
  70. #page {
  71.     width: 1200px;
  72.     background-image:url(Images/body.JPG);
  73.     margin-top: 0;
  74.     margin-right: auto;
  75.     margin-bottom: auto;
  76.     margin-left: auto;    
  77. }
  78.  
  79. /* Content */
  80. #contenttop {
  81.     position:relative;
  82.     font-family: Tahoma, Arial;
  83.     margin-left:180px;
  84.     margin-right:180px;
  85.     margin-top:10px;
  86.     float: left;
  87.     width: 840px;
  88.     height: 100px;
  89.     left: 00px;
  90.     top: 00px;
  91. }
  92.  
  93. #contentmiddle {
  94.     position:relative;
  95.     font-family: Tahoma, Arial;
  96.     margin-left:180px;
  97.     margin-right:180px;
  98.     margin-top:15px;
  99.     float: left;
  100.     width: 840px;
  101.     height: 450px;
  102.     left: 0px;
  103.     top: 000px;
  104. }
  105.  
  106. #contentmiddlework {
  107.     position:relative;
  108.     font-family: Tahoma, Arial;
  109.     margin-left:113px;
  110.     margin-right:113px;
  111.  
  112.     float: left;
  113.     width: 963px;
  114.     height: 495px;
  115.     left: 0px;
  116.     top: 000px;
  117.     background-color: #FFFFFF;
  118. }
  119.  
  120. #contentleft {
  121.     position:relative;    
  122.     font-family: Tahoma, Arial;
  123.     margin-left:180px;    
  124.     margin-top:15px;
  125.     float: left;
  126.     width: 540px;
  127.     height: 550px;
  128.     left: 0px;
  129.     top: 30px;
  130. }
  131.  
  132. #contentright {
  133.     position:relative;
  134.     font-family: Tahoma, Arial;
  135.     margin-right:180px;
  136.     margin-top:15px;
  137.     float: left;
  138.     width: 300px;
  139.     height: 550px;
  140.     left: 0px;
  141.     top: 30px;
  142. }
  143. #contentbottom{
  144.     position:relative;
  145.     font-family: Tahoma, Arial;
  146.     margin-left:180px;
  147.     margin-right:180px;
  148.     margin-top:15px;
  149.     float: left;
  150.     width: 840px;
  151.     height: 350px;
  152.     left: 0px;
  153.     top: 40px;
  154. }
  155.  
  156. #contentbottomwork {
  157.     position:relative;
  158.     font-family: Tahoma, Arial;
  159.     margin-left:113px;
  160.     margin-right:113px;
  161.     margin-top:0px;
  162.     float: left;
  163.     width: 963px;
  164.     height: 350px;
  165.     left: 0px;
  166.     top: 10px;
  167.     background-color: #FFFFFF;
  168. }
  169.  
  170.  
  171. /* Footer */
  172. #footer {
  173. position:relative;
  174.     background: url(images/footer.jpg) repeat-y top center;
  175.     width:1200px;
  176.     height:138px;
  177.     margin:0 auto;
  178.     top:-25px;
  179. }
  180.  
  181. #footermenu {
  182.  
  183.     width:840px;
  184.     height:138px;
  185.     margin-left:180px;
  186.     margin-right:180px;
  187. }
Mar 25 '09 #1
5 4101
hey everyone, i have a site that i have designed in dreamweaver. In firefox, the site looks fine, but in IE the whole thing is vertically missalligned, apart from the header / menu.

I have created the site using css, which i include below. the site can be viewed at http://www.catalystpics.co.uk/dev/index.html

Thanks in advance to anyone who can help

This is my css
Expand|Select|Wrap|Line Numbers
  1. body {
  2. padding: 0;
  3. margin: 0;
  4. font-size: 12px;
  5. font-family: Tahoma, Arial; 
  6. text-align: justify;
  7. color: #5C5C5C;
  8. border:0px;
  9.  
  10. /* Header */
  11. #header {
  12. width: 1200px;
  13. margin: 0 auto;
  14. height: 60px;
  15. }
  16.  
  17. /* Menu */
  18. #menu {
  19. float: left;
  20. background: url(images/menu.gif) repeat-y top center; 
  21. width:1200px; 
  22. height:95px; 
  23. margin:0 auto; 
  24. }
  25.  
  26. #menu ul {
  27. font-weight:bold; 
  28. font-size:16px;
  29. text-decoration:none;
  30. margin: 0;
  31. padding: 23px 0 0 20px;
  32. list-style: none;
  33. line-height: normal;
  34. text-align:center;
  35.  
  36. }
  37.  
  38. #menu li {
  39. text-align: center;
  40. display:inline;
  41. }
  42.  
  43. #menu a {
  44. font-weight:bold; 
  45. font-size:16px;
  46. text-decoration:none;
  47. color:#ffffff; 
  48. background-color:#000000; 
  49. padding:0px 30px 2px 30px;
  50. }
  51.  
  52. #menu a:hover { 
  53. background-color:#FAE707; 
  54. font-weight:bold; 
  55. font-size:16px;
  56. text-decoration:none; 
  57. color:#000000;
  58. }
  59.  
  60. #menu .current_page_item a {
  61. background-color:#FAE707;
  62. color: #000000;
  63. }
  64.  
  65. /* Page */
  66. #page {
  67. width: 1200px;
  68. background-image:url(Images/body.JPG);
  69. margin-top: 0;
  70. margin-right: auto;
  71. margin-bottom: auto;
  72. margin-left: auto; 
  73. }
  74.  
  75. /* Content */
  76. #contenttop {
  77. position:relative;
  78. font-family: Tahoma, Arial;
  79. margin-left:180px;
  80. margin-right:180px;
  81. margin-top:10px;
  82. float: left;
  83. width: 840px;
  84. height: 100px;
  85. left: 00px;
  86. top: 00px;
  87. }
  88.  
  89. #contentmiddle {
  90. position:relative;
  91. font-family: Tahoma, Arial;
  92. margin-left:180px;
  93. margin-right:180px;
  94. margin-top:15px;
  95. float: left;
  96. width: 840px;
  97. height: 450px;
  98. left: 0px;
  99. top: 000px;
  100. }
  101.  
  102. #contentmiddlework {
  103. position:relative;
  104. font-family: Tahoma, Arial;
  105. margin-left:113px;
  106. margin-right:113px;
  107.  
  108. float: left;
  109. width: 963px;
  110. height: 495px;
  111. left: 0px;
  112. top: 000px;
  113. background-color: #FFFFFF;
  114. }
  115.  
  116. #contentleft {
  117. position:relative; 
  118. font-family: Tahoma, Arial;
  119. margin-left:180px; 
  120. margin-top:15px;
  121. float: left;
  122. width: 540px;
  123. height: 550px;
  124. left: 0px;
  125. top: 30px;
  126. }
  127.  
  128. #contentright {
  129. position:relative;
  130. font-family: Tahoma, Arial;
  131. margin-right:180px;
  132. margin-top:15px;
  133. float: left;
  134. width: 300px;
  135. height: 550px;
  136. left: 0px;
  137. top: 30px;
  138. }
  139. #contentbottom{
  140. position:relative;
  141. font-family: Tahoma, Arial;
  142. margin-left:180px;
  143. margin-right:180px;
  144. margin-top:15px;
  145. float: left;
  146. width: 840px;
  147. height: 350px;
  148. left: 0px;
  149. top: 40px;
  150. }
  151.  
  152. #contentbottomwork {
  153. position:relative;
  154. font-family: Tahoma, Arial;
  155. margin-left:113px;
  156. margin-right:113px;
  157. margin-top:0px;
  158. float: left;
  159. width: 963px;
  160. height: 350px;
  161. left: 0px;
  162. top: 10px;
  163. background-color: #FFFFFF;
  164. }
  165.  
  166.  
  167. /* Footer */
  168. #footer {
  169. position:relative;
  170. background: url(images/footer.jpg) repeat-y top center;
  171. width:1200px;
  172. height:138px;
  173. margin:0 auto;
  174. top:-25px;
  175. }
  176.  
  177. #footermenu {
  178.  
  179. width:840px;
  180. height:138px;
  181. margin-left:180px;
  182. margin-right:180px;
  183. }
Mar 25 '09 #2
Frinavale
9,735 Expert Mod 8TB
Hi Wastedguitarist,

I visited the site and everything looks fine to me.
What is the problem exactly?
Mar 25 '09 #3
drhowarddrfine
7,435 Expert 4TB
Since IE fixed a lot of their CSS in IE8, it works there. It might have something to do with "margin collapse" but I don't have a Windows box to test on right now.

In #page, did you mean to have 'margin:0 auto auto'? See if removing one of the autos helps.
Mar 25 '09 #4
Frinavale
9,735 Expert Mod 8TB
Oh that explains why it looks fine for me...I was viewing in IE8.
Mar 25 '09 #5
yeah im trying to view it in IE6 and IE7

Removing one of the autos had no effect

Thanks for trying though !
Mar 25 '09 #6

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

Similar topics

8
by: abracad | last post by:
Hi Is it possible to vertically align an image in the middle of a DIV of fixed height?
10
by: Markus Ernst | last post by:
Hi I have a strange problem with vertical-align. The case can be viewed at http://www.brainput.info/geschichte.html. HTML code: <div id="bild"><img src="geschichte.gif" width="274"...
3
by: Frank Wheeler | last post by:
Why am I unable to attain proper vertical alignment between a DIV and a TABLE here: http://www.whbvillage.com/agenda-archives/agendex.html The DIV is coded: <DIV style="float: left;...
1
by: Kenneth | last post by:
Okay, I've been scouring Google for hours looking for a solution to this problem, but as of yet I can't find one. XHTML Transitional seems to specify that I can no longer set a table's height to...
5
by: Rico | last post by:
I have label that I need to be vertical. The problem is that when I select "Vertical=yes" the label reads from top to bottom rather than bottom to top (which i need). Can this be done? Any...
6
by: Andy Mabbett | last post by:
Please can someone remind me of the most elegant fix for the way Firefox fails to vertically align cell content by default? For example, the second event on: ...
11
by: C.W.Holeman II | last post by:
I what to hide an input element and the following text. I have the selector for the input working and just need to grab the text following it. CSS: form{ display:table; text-align:center; }
2
by: esteuart | last post by:
I need to get the right combination for a div to clip any text inside and allow vertical alignment. I only have this problem in FireFox. I have 3 divs nested within each other. The outer div has...
8
by: ayamopamo | last post by:
Hi- I am trying to center a web page. It seems like this should be very simple to do, but apparently it isn't my day. I have successfully centered the background by calling it in the css body tag:...
13
by: Bill | last post by:
Hi How can I have IE7 act correctly on that ? The rules make the link text go down when hovered. It works in FF , I had to add a hard space right after the LI tag to have OP9 work but I can't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.