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

IE spacing problem and a link not showing

Okay... Goole Chrome and FireFox show my site perfect, however, IE refuses to display it perfectly...

The site I'm looking at is here and the part I'm looking at is the navigation bar and just under. In FireFox and Google chrome, there is a gap underneath each 'inactive' tab (the grey ones) and the orange tabs (or the active tabs) fade smoothly into the bar underneath. I believe most of the site has been pushed down by about 5px and I don't know the cause.

The second problem is in the top right there is a basket icon. Although there isn't yet a link location, there is a hover javascript code, and it works good in Google Chrome and FireFox, but the link doesn't display in IE and I need to get it working for when I do actually make that link accessable.

Here is a picture of it working and how it should work (in Google Chrome)
Here is a picture of it NOT working and how it SHOULDNT work :P (In Internet Explorer 7, although 6 doesn't work either... I've not tried 8 beta)

Thank you in advance

-freddukes
Oct 7 '08 #1
6 2342
David Laakso
397 Expert 256MB
Ditch the "rivers" unless your client's marketing department is on a specific mission to make the primary selling content of the page really difficult to read.
Expand|Select|Wrap|Line Numbers
  1. html
  2. <div id="col1">
  3.  <!--<div align="justify"--><div class="pictureHeader" id="special" name="special">
  4. <div class="pictureHeader" name="popular"><!-- align="justify">-->
  5.  
Re-set as follows to prevent the center section of the rounded corner box from breaking right in IE/6; and, prevent that section from looking bloated ("pregnant") in all browsers.
Expand|Select|Wrap|Line Numbers
  1. .rounded .inside 
  2. {
  3. padding-left: 10px;<------------:: delete
  4. padding-right:10px;<------------:: delete    
  5. }
  6. .rounded .inside p { <------------:: add this new ruleset to your css file
  7. padding-left: 10px;
  8. padding-right:10px;
  9. text-align: left;
  10. }
  11.  
The hasLayout[1] trigger for for the top nav in IE/7 (to make the space beneath it) is min-height.
Expand|Select|Wrap|Line Numbers
  1. #topnav
  2. {
  3. min-height: 30px;<--------- :: add
  4. }
  5.  
  6. * html #topnav <---- :: add hack for IE/6 (does not support min-height
  7. {
  8. height: 30px;
  9. }
  10.  
The IE/6 and IE/7 hasLayout [1] triggers to open/close the gap between the h-nav and the content division are width and opening, and enclosing the contained floats.
Expand|Select|Wrap|Line Numbers
  1. #content 
  2. {
  3. overflow: hidden; <---:: add
  4. float: left; <---:: add
  5. padding-top: 20px; <---:: leave
  6. margin-top:20px; <---:: delete
  7. width: 100%;  <---:: add                            
  8. }
  9.  
There may be more. I forget..., but the above should help get you on the way
[1] on having layout

FWIW: Not freezing the fonts in your client's users most popular browser is always a nice touch. And all versions of IE and all versions of Opera trip on line-height set in pixels. Use a raw number-- no unit of measure, as in: 1.3.
Oct 9 '08 #2
thank you so much for the reply, I appreciate it so much! I have done everything you hav advised, and the only thing it has done has pushed the #contact ID to "snuggle up" with the Nav... Any more ideas?

Thank you in advance

-freddukes
Oct 9 '08 #3
David Laakso
397 Expert 256MB
Compare your declaration for #content with mine.
You have both min-height and height on #topnav. Delete the height rule. Leave the min-height rule.
Put the IE/6 hack at the bottom of the style sheet.
Validate the CSS.
Validate the HTML.
I'll get back to you on the rest...
Oct 9 '08 #4
David Laakso
397 Expert 256MB
Save your style sheet.

Replace your style sheet in its entirety with mine. Too many changes were made to even think of trying to do it piecemeal. See if my style sheet yields what you are after. You will need to change both the names of the images and the paths to them to yours in the style sheet, as the image names and paths to them I used are different than yours.
Expand|Select|Wrap|Line Numbers
  1. * {
  2. padding : 0;
  3. margin : 0;
  4. }
  5. body {
  6. font : 100%/1.35 "Trebuchet MS", Arial, Helvetica, sans-serif;
  7. color : #000;
  8. background : #ddd;
  9. }
  10. .clear {
  11. clear : both;
  12. }
  13. #col1 h1 {
  14. font-size : 140%;
  15. line-height : 1;
  16. margin : 0;
  17. }
  18. #col1 p {
  19. font-size : 100%;
  20. margin : 10px 0;
  21. }
  22. #col2 h1 {
  23. color : #feffef !important ;
  24. font-size : 125%;
  25. margin : 0;
  26. }
  27. h2, h3, h4 {
  28. color : #fff !important ;
  29. font-size : 100%;
  30. display : block;
  31. margin : 0 0 0 40px;
  32. text-align : left;
  33. }
  34. ul {
  35. list-style : none;
  36. }
  37. a {
  38. color : #fff;
  39. text-decoration : none;
  40. }
  41. a:visited {
  42. color : #fff;
  43. text-decoration : none;
  44. }
  45. a:active {
  46. color : #ff8800;
  47. text-decoration : none;
  48. }
  49. a:hover {
  50. text-decoration : none;
  51. }
  52. #content {
  53. overflow : hidden;
  54. float : left;
  55. padding-top : 8px;
  56. width : 100%;
  57. }
  58. #main {
  59. background : #ddd;
  60. padding : 10px;
  61. width : 750px;
  62. margin : 30px auto 30px auto;
  63. }
  64. #headerHome {
  65. display : block;
  66. height : 100px;
  67. margin : 0;
  68. margin-top : -40px;
  69. background : url(header00.htm) no-repeat center top;
  70. text-align : center;
  71. }
  72. #basket {
  73. height : 50px;
  74. text-align : right;
  75. color : #000;
  76. }
  77. .sitename {
  78. display : block;
  79. font-size : 150%;
  80. color : #fff;
  81. height : 30px;
  82. padding : 0 5px;
  83. margin : 0;
  84. letter-spacing : 12px;
  85. }
  86. .sitename a, .sitename a:visited, .sitename a:active {
  87. color : #fff;
  88. border : none;
  89. text-decoration : none;
  90. }
  91. .sitename a:hover {
  92. color : #eee;
  93. text-decoration : none;
  94. }
  95. .pictureHeader {
  96. padding : 0;
  97. margin : 0;
  98. }
  99. .pictureHeader .picture {
  100. width : 49%;
  101. float : left;
  102. margin : 8px 0 15px 0;
  103. }
  104. .pictureHeader .text {
  105. width : 49%;
  106. float : right;
  107. margin : 8px 0 15px 0;
  108. }
  109. #topnav {
  110. width : 750px;
  111. min-height : 30px;
  112. }
  113. #topnav {
  114. padding-top : 10px;
  115. }
  116. #topnav ul {
  117. margin : 0;
  118. padding : 0;
  119. }
  120. #topnav li {
  121. display : inline;
  122. font-size : 90%;
  123. }
  124. #topnav a {
  125. display : block;
  126. background : url(tab-grad.png) repeat-x top 0%;
  127. height : 30px;
  128. padding : 0 10px 0 10px;
  129. float : left;
  130. margin : 0 10px 0 0;
  131. color : #fff;
  132. text-decoration : none;
  133. }
  134. #topnav a:hover {
  135. background : url(tab-grae.png) repeat-x;
  136. color : #000;
  137. text-decoration : none;
  138. }
  139. #topnav .active a {
  140. background : url(tab-graf.png) repeat-x;
  141. color : #fff;
  142. text-decoration : none;
  143. }
  144. #pageLinkBar {
  145. overflow : hidden;
  146. width : 750px;
  147. height : 30px;
  148. background : url(menubar0.png) repeat-x;
  149. text-decoration : none;
  150. float : left;
  151. }
  152. #pageLinkBar ul {
  153. margin : 0;
  154. padding : 0;
  155. }
  156. #pageLinkBar ul li {
  157. font-size : 95%;
  158. display : inline;
  159. list-style : none;
  160. }
  161. #pageLinkBar li a, #pageLinkBar li a:link, #pageLinkBar li a:visited, #pageLinkBar li a:hover {
  162. height : 28px;
  163. padding : 0 10px;
  164. color : #fff;
  165. text-decoration : none;
  166. }
  167. #pageLinkBar li a:hover {
  168. color : #000;
  169. }
  170. #col1 {
  171. float : left;
  172. width : 367px;
  173. }
  174. #col2 {
  175. float : right;
  176. width : 367px;
  177. }
  178. #col2 #footer {
  179. width : 367px;
  180. padding : 10px 0 10px 0;
  181. margin-bottom : 15px;
  182. margin-left : -10px;
  183. }
  184. #col2 #footer #column1 {
  185. float : left;
  186. width : 180px;
  187. padding : 0;
  188. }
  189. #col2 #footer #column2 {
  190. float : right;
  191. width : 180px;
  192. padding : 0;
  193. }
  194. input, textarea {
  195. display : block;
  196. background : #f4f4f4;
  197. border : 1px solid #ddd;
  198. padding : 5px;
  199. }
  200. input:hover, textarea:hover {
  201. background : #fff;
  202. border : 1px solid #bbb;
  203. }
  204. input:focus, textarea:focus {
  205. background : #fff;
  206. border : 1px solid #333;
  207. }
  208. img.alignleft, img.alignright {
  209. padding : 3px;
  210. background : #efefef;
  211. border : 1px solid #333;
  212. margin : 5px;
  213. }
  214. #bottom {
  215. text-align : center;
  216. padding-top : 10px;
  217. clear : both;
  218. border-top : 1px solid #333;
  219. margin-top : 15px;
  220. }
  221. #bottomNav {
  222. width : 750px;
  223. overflow : hidden;
  224. color : #000;
  225. margin-bottom : 10px;
  226. }
  227. #bottomNav a, #bottomNav a:visited, #bottomNav a:hover, #bottomNav a:active {
  228. text-decoration : none;
  229. color : #000;
  230. padding : 0 10px;
  231. }
  232. #bottomNav a:hover {
  233. color : red;
  234. }
  235. #bottomNav li {
  236. display : inline;
  237. }
  238. #contact {
  239. margin-top : 30px;
  240. margin-bottom : 30px;
  241. }
  242. #contact .firstTwoWrap {
  243. width : 385px;
  244. float : left;
  245. }
  246. #contact .contactCol1 {
  247. width : 365px;
  248. float : left;
  249. text-align : center;
  250. }
  251. #contact .centerBar {
  252. width : 20px;
  253. text-align : center;
  254. background : url(bar-grad.png) repeat-y center 0%;
  255. margin-left : 365px;
  256. }
  257. #contact .contactCol2 {
  258. width : 365px;
  259. text-align : center;
  260. margin-left : 385px;
  261. }
  262. #contact #shops {
  263. width : 750px;
  264. padding-top : 10px;
  265. padding-bottom : 10px;
  266. }
  267. #contact #shops .shopDetails {
  268. width : 700px;
  269. margin-left : 50px;
  270. }
  271. #contact #shops .shopDetails p {
  272. font : bold 12px Arial, Helvetica, sans-serif;
  273. color : #000;
  274. }
  275. .rounded .top-left, .rounded .top-right, .rounded .bottom-left, .rounded .bottom-right {
  276. background-image : url("corners0.png");
  277. height : 30px;
  278. font-size : 2px;
  279. margin-top : 0;
  280. margin-bottom : 0;
  281. }
  282. .rounded .top-left, .rounded .bottom-left {
  283. margin-right : 90px;
  284. }
  285. .rounded .top-right, .rounded .bottom-right {
  286. margin-left : 30px;
  287. margin-top : -30px;
  288. }
  289. .rounded .top-right {
  290. background-position : 100% 0;
  291. }
  292. .rounded .bottom-left {
  293. background-position : 0 -30px;
  294. margin-top : -20px;
  295. }
  296. .rounded .bottom-right {
  297. background-position : 100% -30px;
  298. }
  299. .rounded .inside {
  300. background : #ff8800;
  301. color : #000000;
  302. }
  303. .rounded .inside p {
  304. color : #feffef !important ;
  305. font-size : 95%;
  306. margin : 0 35px 0 40px;
  307. text-align : left;
  308. }
  309. #basketToolTip {
  310. width : auto;
  311. }
  312. #content #contact #shopToolTipDerby, #content #contact #shopToolTipLeeds, #content #contact #shopToolTipSheffield, #content #contact #shopToolTipNottingham {
  313. background-color : #ffffff;
  314. border : 10px;
  315. width : auto;
  316. padding : 5px;
  317. }
  318. .tip {
  319. font-size : 85%;
  320. border : 1px solid #666666;
  321. width : auto;
  322. padding : 1px 5px 1px 5px;
  323. position : absolute;
  324. z-index : 100;
  325. visibility : hidden;
  326. color : #000000;
  327. top : 0;
  328. left : 0;
  329. background-color : #ff8800;
  330. }
  331. * html #topnav {
  332. height : 30px;
  333. }
  334.  
  335.  
Oct 9 '08 #5
OMG!!! You are such a ledgend ^_^ I can't believe you re-wrote my entire CSS!!! It now works perfect (and looks cool with the text changes, I've gotta learn how to do that...) The only gripe I have left is the fact the "link" in the top right (the basket text) isn't a link in IE... Any ideas? I'm thankful for everything you have done so far! Hats off to you man!

-freddukes
Oct 9 '08 #6
David Laakso
397 Expert 256MB
the "link" in the top right (the basket text) isn't a link in IE... Any ideas?
-freddukes
I did not look at the link you mention, nor will I look at it, until you try and resolve the problem yourself. If other links within that page do work, in whatever one or more versions of IE you are talking about, what is it about them that is different than the one that does not work? In all likelihood, you may already have the answer in front of you. Or do you?

PS
The above does not mean you need live in fear of asking a question if you are truly stuck in resolving it yourself. If that be the case, do indeed write back-- if not myself, I can assure you that someone on this forum will be more than willing to give an assist...
Oct 9 '08 #7

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

Similar topics

5
by: Poonam | last post by:
Hi there. How can i maintain the spacing between to divs if palced side by side with 10px spacing between them.. Not using any tables. And atleast making one of the div relative positioning. ...
4
by: Bernd Goldschmidt | last post by:
Hi. I've got a somewhat wired problems with an extra space between table rows in Mozilla and Opera (IE works fine). With the code below, cells within a row align seamlessly, but there is a...
5
by: Andrew Poulos | last post by:
If I have a text INPUT within a block of text how do I 'correct' for the line spacing. The line spacing above and below the INPUT is larger than the line spacing generally: <div...
24
by: JB | last post by:
Hi All, This is doing my head in! Please help. I've built a simple <ul> to serve as a menu for a page I'm working on. I have tested the menu in Mozilla Fireworks 1.5 and it's fine - nice and...
10
by: phil-news-nospam | last post by:
I have a table with 3 columns in 1 row. I want to increase the spacing _between_ the columns (gutter) _without_ increasing the spacing between those columns and the table itself. Is there a way...
2
by: kemton | last post by:
I may be double posting here, but I think this is the more accurate group to post this question. I have a table in which I'm using css to set up the options of the page, and I cannot get the...
2
by: BT | last post by:
I inherited a website to maintain and there is a minor spacing glitch that shows up in IE v6, but not in FireFox v1.5. The website is www.crhschoir.org and the problem is with the second row of...
5
by: Memphis Steve | last post by:
Is is possible to control spacing between two lines when using <br />? I would like to be able to adjust the spacing between the two lines in each link below so that the two lines sit snugly on top...
3
by: shapper | last post by:
Hello, I have a form with various labels, inputs and spans for comments. Each element is in a different line. I want to create some spacing between each element. For example, if I have: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.