iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old May 4th, 2009, 06:22 AM   #1
New Member
 

Join Date: May 2009
Location: USA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 debauchedfish is on a distinguished road
Angry Problems with IE6

despite my urge to not make my website compatible with IE6 (they should have switched to something better by now!), I have to.
However, this is causing me lots of problems

my design is based almost entirely on iframes & div layers. The div layers aren't aligning properly in IE6 at all.
At first, they weren't working in IE7 or 8 either until I added doctype tag.

Also, the iframes—whose height (100%) is now actually working in IE7 and 8—won't appear at all in IE6.

Any thoughts? What could be causing this? What should I do?

It seems pretty clear that the answer lies in either something very fiddly and minute or in javascript somewhere, which I don't know very well.

Any help would be appreciated.

Here is the relevant part of my code:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<link rel="stylesheet" type="text/css" href="library/style.css"> 
<link rel="shortcut icon" href="favicon.ico">
</head>

<div id="sidebar1" style="position:fixed; top:190px; left:20px; width:140px">
<p align="right" class="largewhite"><a href="camp.htm" target="iframe">Camp</a></p>
  <p align="right" class="largewhite"><a href="class.htm" target="iframe">Classes</a> </p>
  <p align="right" class="largewhite"><a href="camp2.htm" target="iframe">Registration & Info</a>   
  <p align="right" class="largewhite"><a href="faculty.htm" target="iframe">Faculty</a> </p>
  <p align="right" class="largewhite"><a href="testimonials.htm" target="iframe">Testimonials</a>
</div>

<div id="iframe"; style="position:absolute; left:181px; top:80px; bottom:24px; right:0px; overflow="auto"; z-index:3">
<iframe name="iframe"; id="iframe"; src="/campclassinfo.htm"; ALIGN="top"; HSPACE="0"; VSPACE="0"; frameborder="0"; style="height:100%;min-height:400px;bottom:0px;width:100%;border:0;frameborder:0"; allowtransparency="true">
</iframe> 
</div>

<div id="base" style="position:fixed; bottom:0px; left:0px; right:0px; height:24px; background-image: url(/library/images/btm_bar.gif); background-repeat:repeat"></div>

</body>
</html>
Basically, in IE6, the sidebar aligns with the top of the page instead of where it's supposed to be (190px from the top) and the iframe won't appear at all.

Last edited by debauchedfish; May 4th, 2009 at 06:37 AM.. Reason: (added code)
debauchedfish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 4th, 2009, 09:58 AM   #2
New Member
 

Join Date: Jan 2009
Location: surrey
Age: 28
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 snazzy is on a distinguished road
Re: Problems with IE6

I have no idea what the solution is ( as I dont use iframes because they are no longer used generally ), but my suggestion is that you get away from iframes and look into css, you can create that effect without destroying your search engine optimisation and without causing any issues with your layout once you have done a bit of research

p.s - a doctype should be included on ALL web documents as it tells the browser what type of coding you are using ( in your case html - you have used the right one for someone that is just starting in web development ) but this could be xhtml or any number of possibilities, There are many reasons for this which I wont go into now.

Last edited by snazzy; May 4th, 2009 at 10:00 AM..
snazzy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 4th, 2009, 07:16 PM   #3
New Member
 

Join Date: May 2009
Location: USA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 debauchedfish is on a distinguished road
Re: Problems with IE6

what exactly do you recommend in lieu of iframes? I chose them because they make it very easy to add new content. How do I use css to this same effect?

I could put the content directly into the div layer holding the iframe, but then to add content I'd have to edit each individual content page... Is there a way to bypass that with css?

I haven't done web design in 5 or 6 years. It must show.
debauchedfish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 5th, 2009, 09:57 AM   #4
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,081
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: Problems with IE6

The problem with frames in general is that they "break" your pages, navigation etc etc.. You can simulate a frame effect fairly easily with CSS and you can use includes so you can have a single file used wherever you need so updating is quick and easy. All major programming languages such as PHP, ASP etc support including of files and you can also do it with jQuery using ().load if needed. so for example you could have something like:

Code:
<?php include "includes/php/global_header.php"; ?>

<h2>Heading Two</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>

<?php include "includes/php/global_footer.php" ?>
and as such when you edited global_header.php or global_footer.php the change would take effect site wide. if your server does not support or have PHP etc installed you can use javascript/jQuery like so:

Code:
$('#foo').load("path/to/file");
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 5th, 2009, 12:48 PM   #5
New Member
 

Join Date: Jan 2009
Location: surrey
Age: 28
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 snazzy is on a distinguished road
Re: Problems with IE6

on top of what moojoo said, have a look here for an idea on how to do it http://www.cssplay.co.uk/layouts/fixed.html have a play with the css etc, will be allot better than trying to explain it to you
snazzy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 6th, 2009, 01:30 PM   #6
New Member
 

Join Date: Mar 2009
Location: Frankfurt am Main
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 F0kke is on a distinguished road
Re: Problems with IE6

Also have a look at the W3 browser stats. Depending on what kind of visitors you have, generally speaking 20% is still using IE6, a number I wouldn't want to ignore.
F0kke is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 7th, 2009, 11:29 AM   #7
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,081
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: Problems with IE6

Quote:
Originally Posted by F0kke View Post
Also have a look at the W3 browser stats. Depending on what kind of visitors you have, generally speaking 20% is still using IE6, a number I wouldn't want to ignore.
The problem with those stats is they are just numbers for visitors to the w3c pages so the stats are biased to a more tech savvy crowd. but yeah IE 6 is roughly still in the 20% range across the board.
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 8th, 2009, 10:39 AM   #8
Reputable Member
 

Join Date: Nov 2008
Location: Lexington, KY
Posts: 243
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 Dubbs is on a distinguished road
Re: Problems with IE6

I would like to point out that your style attribute is coded incorrectly. You are closing the attribute before you finish defining what each style attribtue is.

Code:
<div id="iframe"; style="position:absolute; left:181px; top:80px; bottom:24px; right:0px; overflow="auto"; z-index:3">
You should change it to the following:
[code]
<div id="iframe" style="position:absolute; left:181px; top:80px; bottom:24px; right:0px; overflow:auto; z-index:3">
[code]

See if this makes any difference to your code.

Also, I noticed that you have when ever you are "closing" an HTML attribute you use a quote then a semi-colon. The semi-colon isn't needed to close the attribute.
Dubbs is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
div layers , html , ie6 , ie7 , ie8 , iframes , javascript , problems


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE CSS Problems robukni HTML, XHTML and CSS 4 December 4th, 2008 01:02 PM
IE Problems AndrewChip HTML, XHTML and CSS 9 December 29th, 2007 11:35 AM
Problems timmytots HTML, XHTML and CSS 8 August 27th, 2007 02:54 PM
problems with pop-up Phixon JavaScript 5 May 15th, 2007 09:21 AM
box problems Dom Platts HTML, XHTML and CSS 3 December 13th, 2006 09:48 PM


Search Engine Optimization by vBSEO 3.2.0 RC8