943,946 Members | Top Members by Rank

Ad:
Nov 5th, 2009
0

Iframes problem

Expand Post »
Hi there,

I got the following problem with my code (which its just an extract):
1. When it loads on Firefox it looks just like I want it to look, everything ordered and in its place, BUT when I visualize the same code on Internet Explorer it shows about half or less of the content of the iframe, and the left columns just appear at a random height...
2. This is a minor thing, but it bothers me a little bit. The border of the tables looks oddly different on internet explorer...

Sso my questions are: How can I fix this? I'm I missing something? What should I change?
I don't want to force all my visitors to download firefox to be able to see my page as I want them to see it...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
        <title>Inicio</title>

	<SCRIPT language="JavaScript">
	<!--

       function changePage(filePath){
           document.location=filePath;
	}

	//-->
	</SCRIPT>
</head>


<body>

<table  border="1" cellpadding="5" cellspacing="0" style="border-width: 4px; border-style:solid; border-color: blue;">

<!-- Zero row -->
<tr>
<td width="200" style="background-color:#00008B; border-width: 4px; border-style: inset; border-color: black;">
        <table  border="1" cellpadding="0" cellspacing="0"  style="border-width: 7px; border-style:ridge; border-color: green;"><tr><td>
                    <a href="http://www.cavpollos.webs.com"><img src="http://cavpollos.webs.com/Imagenes/HexaCAV200x200%28lowWeigth%29.GIF"; border="0"; alt="Go To CAVPOLLOS Comics!!!"  /></a>
        </td></tr></table>
</td>

<td width="740" align="center" style="background-color:#00008B; border-width: 4px; border-style: inset; border-color: black;">
        <img src="http://cavpollos.webs.com/Imagenes/cavpollosHeader2conPoios(low).GIF"; style="float: center"; border="0"; alt="CAVPOLLOS Titulo Inicio!"  /><br />
</td>
</tr>
<!-- end Zero row -->

<!-- first row -->
<tr valign="top" height=100%>

<!-- side links -->
<td width="200" align="center" style="background-color:#00008B; border-width: 4px; border-style: inset; border-color: black;">

         <iframe name="cuadrosLinks" src="http://cavpollos.webs.com/iFramePages/cuadrosLinks.htm" height="516" width="216" marginwidth="0" marginheight="0" vspace="0" hspace="0" frameborder="0" scrolling="no">Sorry, your browser doesn't support iframes.</iframe><br />
        <br />
        <table border="2"; cellspacing="1"; cellpadding="5";  bgcolor="White"; style="border-width: 3px; border-color: black";>
        <tr><td align="left">
                   <a href="http://cavpollos.webs.com/apps/auth/login?next="> <font face="font-family:'Lucida Casual', 'Comic Sans MS'"; size="+1" color="blue">Log-eate!</font> </a> <br />
                   <a href="http://cavpollos.webs.com/apps/auth/signup?next="> <font face="font-family:'Lucida Casual', 'Comic Sans MS'"; size="+2" color="red">Suscribete!</font> </a> <br />
        </td></tr> 
        </table>

</td>
<!-- fin side links -->


<!-- Comienzan noticias -->
<td rowspan="3"  align="center" style="background-color:#00008B; border-width: 4px; border-style: inset; border-color: black;" >
        <font size="5"; color="red";>Para poder visualizar <u><b>bien</b></u> esta pagina debes usar</br>el browser de internet <b>Firefox. </b>Consiguelo clickeando <a href="http://download.mozilla.org/?product=firefox-3.5.3&os=win&lang=es-ES"><b>AQUI</b></a></font><br />
bla bla bla

</td>
<!-- fin noticias -->


</tr>
<!-- end first row -->

<!-- second row -->
<!--comienza facebook-->
<tr valign="top" height=100%>
<td width="200" align="center" style="background-color:#00008B; border-width: 4px; border-style: inset; border-color: black;">
          <table cellpadding="0" cellspacing="0">
          <td>
          <script>
                 function fbs_click() 
                      {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}
          </script>
          <a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank" class="share">
                      <img width="180" height="75" src="http://cavpollos.webs.com/Imagenes/comparteFB%28GIF%29.GIF"; border="0"; style="float: left"; alt="Comparte en Facebook"  />
           </a>
           <script type="text/javascript">
            if (top.location != location) {
                 top.location.href = document.location.href;
              }
            </script>
          </td>
          </table>
</td>
</tr>
<!--fin facebook-->
<!-- end second row -->

<!-- third row -->
<!--comienzo banners-->
<tr valign="top" height=0%>
<td width="200" align="center" style="background-color:#00008B; border-width: 4px; border-style: inset; border-color: black;">
        <table  width="180" border="1" cellpadding="5" cellspacing="0"  style="border-width: 7px; border-style:ridge; border-color: green;"><tr><td align="center" bgcolor="White">
                 <a href="http://www.pageresource.com"><img src="http://www.pageresource.com/images/pr88x31_01.gif" border="0" target="_blank" alt="PageResource.com" /></a><br />
                 <a href="http://www.vetealaversh.com"><img src="http://www.vetealaversh.com/images/afiliados/valv.gif" border="0" target="_blank" alt="Vete a la Versh" /></a><br />
                 <a href="http://gamegnome120.webs.com/"><img src="http://gamegnome120.webs.com//photos/Fan%20Art%20from%20Riley%20M/game%20gnome%20small%20image.bmp" border="0" target="_blank" alt="Game Gnome" /></a><br />

                 <br />
                 <a href="http://cavpollos.webs.com/asociate.htm">
                               <font face="font-family:'Lucida Casual', 'Comic Sans MS'"; size="+2" color="gree"><center>Asociate<br />a esta<br />pagina web!<br /<br />Tu banner<br />aqui! =D</center></font>
                </a>
        </td></tr></table>
</td>
</tr>
<!--fin banners-->
<!-- end third row -->

</table>

<br />
<br />
CAVPOLLOS.WEBS.COM

</body>
</html>
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cavpollo is offline Offline
18 posts
since Sep 2009
Nov 6th, 2009
1
Re: Iframes problem
don't worry they want!
you've coded for firefox and firefox it gave.

there are two ways of fixing this, you either give your images enough space (width) to fit in that container, or you force style display block on their inline wraper tags, <a> .

I would suggest you go with :
td a{display:block} !in your frame document source Style, which is at:
http://cavpollos.webs.com/iFramePages/cuadrosLinks.htm
Reputation Points: 120
Solved Threads: 61
Posting Pro
Troy III is offline Offline
511 posts
since Jun 2008
Nov 8th, 2009
0
Re: Iframes problem
Hello unthankfull.
- Why don't you mark the thread "solved"?
p.s.:
(by the way: Its something that we all can see, right from your site!)
Reputation Points: 120
Solved Threads: 61
Posting Pro
Troy III is offline Offline
511 posts
since Jun 2008
Jan 11th, 2011
0
Re: Iframes problem
A little late, but I seem to have found a way to solve this.

If EVERYTHING inside the iframe is absolutely positioned, IE will not make a fuzz about it. But if you instead use tables and some toher stuff to position them... then you are bound to having weird results...

p.s.:
(tanx for the help Troy, even though it just partially fixed the whole problem)
Last edited by cavpollo; Jan 11th, 2011 at 2:18 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cavpollo is offline Offline
18 posts
since Sep 2009
Jan 14th, 2011
0
Re: Iframes problem
Using tables for a layout is an outdated technique from 1996.

Regards, Arkinder
Reputation Points: 113
Solved Threads: 59
Posting Pro in Training
Arkinder is offline Offline
441 posts
since Nov 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Hanging text
Next Thread in HTML and CSS Forum Timeline: css drop down menu





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC