473,807 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HOW to fix image probs in IE

4 New Member
I'm making a simple, 2 col fluid site. The problem is to do with enlarging images from thumbnails. All is fine in FF but goes haywire in IE - I'm previewing on IE8. (This is not the final version but there seems little point in continuing when there are problems)

Please see the two browsers below along with the code.

Due to a legal situation, I'm unable to upload anything at the moment.
Many thanks for any help.

Paul




Expand|Select|Wrap|Line Numbers
  1. CSS
  2.  
  3.  
  4.  
  5.  
  6. /*************************************************************
  7.         COLUMNS
  8. **************************************************************/
  9. #col1
  10. {
  11.     float: left;
  12.     margin-left:8%;
  13.     margin-right:1%;
  14.     margin-top:25px;
  15.     border-top:1px solid #999999;
  16.     padding-top:10px;
  17.     width:35%;
  18.     font-family:Garamond, "Palatino Linotype", Georgia;
  19.     font-size:17px;
  20.     color:#333333;
  21.  
  22. }
  23. #col2
  24. {
  25.     float:left;
  26.     margin-left:1%;
  27.     width: 45%;
  28.     margin-top:25px;
  29.     border-top:1px solid #999999;
  30.     padding-top:10px;
  31.     padding-left:5px;
  32.     padding-right:25px;
  33.     font-family:Garamond, "Palatino Linotype", Georgia;
  34.     font-size:18px;
  35.     color:#333333;
  36.     text-align:center;
  37. }
  38.  
  39.  
  40. /*************************************************************
  41.         FOOTER
  42. **************************************************************/
  43.  
  44.  
  45.  
  46. #footer
  47. {
  48.     width:50%;
  49.     float:left;
  50.     margin-left:8%;
  51.     margin-right:2%;
  52.     font-family:Garamond, "Palatino Linotype", Georgia;
  53.     font-size:16px;
  54.     text-align:left;
  55.     color:#ffffff;
  56.     margin-top:20px;
  57.  
  58.     }
  59. #subfooter
  60.  
  61.  
  62.  
  63.  
  64. {   
  65.     width:32%;
  66.     float:right;
  67.     margin-left:1%;
  68.     margin-right:1%;
  69.     font-family:Garamond, "Palatino Linotype", Georgia;
  70.     font-size:12px;
  71.     text-align:center;
  72.     color:#ffffff;
  73.     margin-top:23px;
  74. }
  75. /*************************************************************
  76.         DYNAMIC DRIVE images
  77. **************************************************************/
  78.  
  79.  
  80.  
  81. <style type="text/css">
  82.  
  83.  
  84.  
  85. /*Credits: Dynamic Drive CSS Library */
  86. /*URL: http://www.dynamicdrive.com/style/ */
  87.  
  88.  
  89.  
  90. .gallerycontainer{
  91. position: relative;
  92. /*Add a height attribute and set to largest image's height to prevent overlaying*/
  93. }
  94.  
  95.  
  96.  
  97. .thumbnail img{
  98. border: 1px solid white;
  99. margin: 0 5px 5px 0;
  100. float:right;
  101. }
  102.  
  103.  
  104.  
  105. .thumbnail:hover{
  106. background-color: transparent;
  107. }
  108.  
  109.  
  110.  
  111. .thumbnail:hover img{
  112. border: 1px solid #AFB3B4;
  113. }
  114.  
  115.  
  116.  
  117. .thumbnail span{ /*CSS for enlarged image*/
  118. position: absolute;
  119. background-color: #000000;
  120. padding: 5px;
  121. left: -1000px;
  122. border: 2px solid #AFB3B4;
  123. visibility: hidden;
  124. color: white;
  125. text-decoration: none;
  126. margin-top:100px;
  127. margin-left:2px;
  128.  
  129.  
  130.  
  131.  
  132. }
  133.  
  134.  
  135.  
  136. .thumbnail span img{ /*CSS for enlarged image*/
  137. border-width: 0;
  138. padding: 2px;
  139. }
  140.  
  141.  
  142.  
  143. .thumbnail:hover span{ /*CSS for enlarged image*/
  144. visibility: visible;
  145. top: 0;
  146. left: 0px; /*position where enlarged image should offset horizontally */
  147. z-index: 50;
  148. }
  149.  
  150.  
  151.  
  152. </style>


HTML

Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3.  
  4. <div id="col2"><br>
  5.  
  6.  
  7.  
  8. <div class="gallerycontainer">
  9.  
  10.  
  11.  
  12. <a class="thumbnail" href="#thumb"><img src="images/JANET1.jpg" width="250px" height="165px" border="0" /><span><img src="images/JANET1a.jpg" /><br />She's the one!</span></a>
  13.  
  14.  
  15.  
  16. <a class="thumbnail" href="#thumb"><img src="images/PUPPIES1.jpg"  width="250px" height="165px" border="0" /><span><img src="images/PUPPIES1a.jpg" /><br />
  17. Do you think they've seen us?</span></a>
  18.  
  19.  
  20.  
  21. <br />
  22.  
  23.  
  24.  
  25. <a class="thumbnail" href="#thumb"><img src="images/SLEEPIN1.jpg" width="250px" height="165px" border="0" /><span><img src="images/SLEEPIN1a.jpg" /><br />ZZZzzzzZZZZZZzzzzz....</span></a>
  26. <a class="thumbnail" href="#thumb"><img src="images/FRAN1.jpg"    width="250px" height="165px"  border="0" /><span><img src="images/FRAN1a.jpg"/><br />
  27. Have you got my left profile?</span></a>
  28.  
  29.  
  30.  
  31. <br />
  32. <a class="thumbnail" href="#thumb"><img src="images/JANET1.jpg" width="250px" height="165px" border="0" /><span><img src="images/JANET1a.jpg" /><br />She's the one!</span></a>
  33.  
  34.  
  35.  
  36. <a class="thumbnail" href="#thumb"><img src="images/PUPPIES1.jpg"  width="250px" height="165px" border="0" /><span><img src="images/PUPPIES1a.jpg" /><br />
  37. Do you think they've seen us?</span></a>
  38.  
  39.  
  40.  
  41. </div>
  42. </div>
  43. <div id="footer">Bolton <strong>&middot;</strong> Appleby in Westmorland <strong>&middot; </strong>Cumbria <strong>&middot; CA16 6AT </strong><strong>&middot;</strong> Tel.07505 267172</div>
  44. <div id="subfooter">&copy; The Magic 6 2010</div>
  45.  
  46.  
  47.  
  48. </body>
  49. </html>
Sep 22 '10 #1
4 1605
JKing
1,206 Recognized Expert Top Contributor
Could you explain exactly what is going haywire?

I checked out your code on my machine the only difference I can see is the span tag being stretched in IE 8. Is this the issue you are referring to?
Sep 23 '10 #2
PFMarconi
4 New Member
Thanks JKing

I've just uploaded an incomplete site, but you'll see the problem with this link;

http://www.cumbria-dog-training.com/Training.htm
Sep 24 '10 #3
drhowarddrfine
7,435 Recognized Expert Expert
In your CSS you have the <style> tags. Those are HTML. Remove them. They might be tripping up IE.
Sep 24 '10 #4
PFMarconi
4 New Member
Many thanks dr

I'll correct things as soon as I get home tonight.

Paul
Sep 24 '10 #5

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

Similar topics

2
1381
by: Dynamo | last post by:
Hi all Further to my earlier posting and the advice recieved I have now modified my code but it still doesn't work. I am trying to upload a file from my local PC to my remote server by using a form. This is the form <html> <head></head>
7
6622
by: A.Translator | last post by:
On this page http://huizen.dds.nl/~ochrid/Henk/biblio_nieuw.htm I try to have three divs: one containing justified text, one containing a ul and one containing an image. ul is set to float left, the div with the image in it, to float right. But both Mozilla and IE put the image underneath the ul, instead of to the right of it (so it is me, not IE!). (the image is in a div so that I can write and style text underneath it).
1
1631
by: apoorv | last post by:
Hi guys, I am writing a imaging aplication on VC++.I have to display images and apply effects onto it.Images could be of any type like jpg,gif,bmp,psd...M uding createDibSection API.it requires BITMAPINFO struc as one of its parameters.Its working well(Images are successfully displayed) but my problem is that in certain images(of any type)they are skewed and becomes B/W(means Data corruption).U can see my code of populating BITMAPINFO and...
1
1216
by: apoorv | last post by:
Hi guys, I am writing a imaging aplication on VC++.I have to display images and apply effects onto it.Images could be of any type like jpg,gif,bmp,psd... I am using createDibSection API.it requires BITMAPINFO struc as one of its parameters.Its working well(Images are successfully displayed) but my problem is that in certain images(of any type)they are skewed and becomes B/W(means Data corruption).U can see my code of populating...
0
878
by: apoorv | last post by:
Hi guys, I am writing a imaging aplication on VC++.I have to display images and apply effects onto it.Images could be of any type like jpg,gif,bmp,psd... I am using createDibSection API.it requires BITMAPINFO struc as one of its parameters.Its working well(Images are successfully displayed) but my problem is that in certain images(of any type)they are skewed and becomes B/W(means Data corruption).U can see my code of populating...
12
1393
by: EricJ | last post by:
back at the saturday job ;) all help is welcome ( if there is an other way of doing this i don't mind as long as it works) i have to compose an image in code. I have a background image (a bitmap but i can convert it if needed) and an image of a cross (bit like the close button on an xp form) i have to place the cross a limited nr of times on the background image at specific coordinates
5
4433
by: aks1232001 | last post by:
Hello Everyone, I'm new to this place. Have a few doubts hoping to get some response soon :) 1. How can i convert a color BMP file into a monochrome black and white image (NOT GRAYSCALE) in C ??? 2. Are there any routines available which can display images in my C application?? I know CImg might help but it uses C++ :(
2
1984
by: sabbas | last post by:
Sorry for my bad english. this is my second web work and things are a little bit difficult for me, so sorry if you not understand what i want for this two situations. First one is that I have 3 links made by 3 small images. (e.g the links are: videos, music, pics) These links upload 3 different .html pages in the same iframe depends on which link you click. What i want is when you make a click with mouse on the first link e.g.(videos) i want...
5
1786
by: sabbas | last post by:
Sorry for my bad english. this is my second web work and things are a little bit difficult for me, so sorry if you not understand what i want for this two situations. First one is that I have 3 links made by 3 small images. (e.g the links are: videos, music, pics) These links upload 3 different .html pages in the same iframe depends on which link you click. What i want is when you make a click with mouse on the first link e.g.(videos) i want...
0
1297
by: MATTXtwo | last post by:
I got some probs here.. I got this project upload image i have already upload that image... and i need to make the image path pass the value to crystal report and display it how to do that? how to create parameter for picturebox source file on crystal report
0
9720
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10372
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10112
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6879
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.