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

<div style="display:hidden"> not working in IE

4
I'm building a new site and using the Lightbox2 photo gallery(http://www.huddletogether.com/projects/lightbox2/). I have several images...each open up their own gallery. I was having a problem with my cells increasing in height when applying the galleries to the image source. A forum member from Lightbox suggested using <div style="display:hidden">.....which works well in Firefox 2 and Netscape 8, but not in IE6(not sure about IE7). I know many people who still use IE6 so its preferred that IE6 is able to properly load the webpage. My layout doesn't shift in Dreamweaver but when viewed on the web using IE6, the cell still shifts. The following is a portion of my source code:

<tr>
<td width="167" height="32" valign="top">
<a href="images/pic1.jpg" rel="lightbox[imageset]"><img src="images/designer.gif" width="167" height="32" border="0"></a>
<div style="display:hidden">
<a href="images/pic2.jpg" rel="lightbox[imageset]"></a>
<a href="images/pic3.jpg" rel="lightbox[imageset]"></a>
</div>
</td>
</tr>

The following link is the webpage I'm working on. Notice in IE the space under the name "Candace Ang":

http://marybrennanco.com/designer_test.html

From my research online, IE doesn't seem to do well with DIVs. Haven't been able to find a fix for my problem. Any suggestions would be greatly appreciated...this appears to be the last hurdle.

Thank You ahead of time.

Tony
Sep 13 '07 #1
4 22138
Death Slaught
1,137 1GB
I'm building a new site and using the Lightbox2 photo gallery(http://www.huddletogether.com/projects/lightbox2/). I have several images...each open up their own gallery. I was having a problem with my cells increasing in height when applying the galleries to the image source. A forum member from Lightbox suggested using <div style="display:hidden">.....which works well in Firefox 2 and Netscape 8, but not in IE6(not sure about IE7). I know many people who still use IE6 so its preferred that IE6 is able to properly load the webpage. My layout doesn't shift in Dreamweaver but when viewed on the web using IE6, the cell still shifts. The following is a portion of my source code:

<tr>
<td width="167" height="32" valign="top">
<a href="images/pic1.jpg" rel="lightbox[imageset]"><img src="images/designer.gif" width="167" height="32" border="0"></a>
<div style="display:hidden">
<a href="images/pic2.jpg" rel="lightbox[imageset]"></a>
<a href="images/pic3.jpg" rel="lightbox[imageset]"></a>
</div>
</td>
</tr>

The following link is the webpage I'm working on. Notice in IE the space under the name "Candace Ang":

http://marybrennanco.com/designer_test.html

From my research online, IE doesn't seem to do well with DIVs. Haven't been able to find a fix for my problem. Any suggestions would be greatly appreciated...this appears to be the last hurdle.

Thank You ahead of time.

Tony
go here and enter your web address and you will get a list of errors fixing them may help it may not.

Thanks, Death


PS- to get a list of the errors you got to click on whatever is says next to "jump to".
Sep 13 '07 #2
epots9
1,351 Expert 1GB
hidden is not a value you can asign to display, what you would want to use is:
Expand|Select|Wrap|Line Numbers
  1. /*hides the element(s)*/
  2. display: none;
  3. /*shows the elements(s)*/
  4. display: block;
  5.  
good luck
Sep 14 '07 #3
xoinki
110 100+
Thnx this helped me :)

Regards,
Xoinki
Jan 11 '08 #4
garrow
32
Alternatively if you want to hide an element, but leave a space as if it was still here you can use
Expand|Select|Wrap|Line Numbers
  1. element { visibility: hidden; } 
Jan 12 '08 #5

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

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
6
by: SouthSpawn | last post by:
I am looking for a way to add tabs to my asp.net pages. I saw an application that had tabs on it. It seem as they did it with javascript, because when you click on each tab. It didn't post back to...
7
by: Tim Slattery | last post by:
I'm trying to handle the onChange event in an <input type="file"> element. In IE, there's no problem: the event fires when a file in the "open" box is doubleclicked, or the "Open" button in the box...
1
Fary4u
by: Fary4u | last post by:
Hi Guys i'm trying to upload a file, i've tried 3 different methods but still not work out i don't know how to over come this problem hidden file value, multiple form or popup uploading. 1-...
0
Fary4u
by: Fary4u | last post by:
Hi Guys i'm trying to upload a file, i've tried 3 different methods but still not work out i don't know how to over come this problem hidden file value, multiple form or popup uploading. 1-...
32
by: fran7 | last post by:
Hi, Trying to solve a problem with no knowledge of asp. I have a dropdown list populated from my database with card decription. The output is names like, abstract,illustration etc. I am sending...
1
by: Webstorm | last post by:
Hi, I hope someone can help me sort this out a bit, Im completely lost. Here is the page I am working on: http://www.knzbusinessbrokers.com/default.asp I have 3 search critera that I need to...
17
by: malathib | last post by:
Hi, I have used a rich text editor in my application. I got it from one of the site.all are JS files. My problem is, i want to call a javascript function from the iframe. Can anybody help...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.