Site Reference Forums

You are not logged in.

#1 2007-01-24 22:41:06

MajorMelody
Member
From: Terica Islands
Registered: 2007-01-18
Posts: 155
I've been thanked 5 times.

Thank me Website
Buy me a beer

Correcting IE/Firefox Incompatibility Issue

It is probable the answer to my problem lies somewhere within these archives but I was unable to locate it...

I have set up a template page for a client site located at www.jaywalkersjamband.com/template.html.  For the life of me, I cannot correct the imbalance of the right column when switching between Internet Explorer and Firefox.  In IE, it shows up a few lines shorter than the left column and in Firefox it shows up a line longer than the left column.  In an effort to compensate/disguise the problem, I deleted my custom footer background and simply left the background black and stretched the text across the screen. furious

Am I stuck with this problem or is there some piece of script or HTML programming I can insert to correct this?  I seem to recall there might be some sort of work-around...

Thanks!

Offline

 

#2 2007-01-24 22:51:29

programming-designs
Member
Registered: 2005-09-07
Posts: 257
I've been thanked 0 times.

Thank me Website

Re: Correcting IE/Firefox Incompatibility Issue

MajorMelody wrote:

It is probable the answer to my problem lies somewhere within these archives but I was unable to locate it...

I have set up a template page for a client site located at www.jaywalkersjamband.com/template.html.  For the life of me, I cannot correct the imbalance of the right column when switching between Internet Explorer and Firefox.  In IE, it shows up a few lines shorter than the left column and in Firefox it shows up a line longer than the left column.  In an effort to compensate/disguise the problem, I deleted my custom footer background and simply left the background black and stretched the text across the screen. furious

Am I stuck with this problem or is there some piece of script or HTML programming I can insert to correct this?  I seem to recall there might be some sort of work-around...

Thanks!

Actually I had discovered an easy CSS hack just yesterday that might do the trick. I'm not sure exactly how to fix your problem but there is indeed a way to set properties only in IE and vice versa. I wrote the article here:

http://xperiment.programming-designs.co … _hack.html

Using the applied method in the example provided at that link you can set margins/padding specifically for IE or for non-ie browsers. Let me know if you find a way to use this trick.

Offline

 

#3 2007-01-24 23:20:05

laurie_m
Member
From: Bega, Sapphire Coast Australia
Registered: 2005-08-18
Posts: 1245
I've been thanked 22 times.

Thank me Website
Buy me a beer

Re: Correcting IE/Firefox Incompatibility Issue

Well, G'day MajorMelody.

You seem to have made quite a splash on the forum. Looks like you're here to stay. Welcome. blinka

Don't know if you're aware, but you seem to have a couple of problems with the template:

1)  In IE6, your animations: top left, top right and bottom left, aren't loading properly but they're OK in FF.

2)  In IE6, the bottom of the page is OK except for the height discrepency that you mentioned, but in FF it's all up the spout. There is a flag background sticking out of the bottom and the text is missaligned with the grey bar. This grey bar isn't there in IE6.

I note that your code is valid. tummenupp

I think that what you need isn't a workaround. Rather, there may be some problem with the way you have your divs in the css file. Perhaps something to do with border or padding. Maybe to do with the flag background image.

I'd try removing the background image from the css file as a starter and see how it goes. Might give you a clue as to the problem.

Can be infuriating, huh? furious

Regards,
Laurie.


John McDouall Stuart's Journal Greatest of the Australian Inland Explorers
Wilderness Travel Compulsive Wilderness Photographer
Sapphire Coast News computer

Offline

 

#4 2007-01-25 11:29:51

Steven_A_S
Member
From: San Antonio, TX
Registered: 2006-08-07
Posts: 403
I've been thanked 16 times.

Thank me Website

Re: Correcting IE/Firefox Incompatibility Issue

What I'm noticing is very minor differences in spacing between everything in those columns.  These are adding up in the end.  You may want to try setting specific margins and padding to control the variance between how the browsers display by default.  For the most part you should be able to set your own defaults for each type of object.

Offline

 

#5 2007-01-25 16:48:09

Northie
Moderator
From: Yorkshire, UK
Registered: 2006-08-19
Posts: 2502
I've been thanked 53 times.

Thank me Website
Buy me a beer

Re: Correcting IE/Firefox Incompatibility Issue

Really really easy

use this global style

Code: css

* {
     margin:0;
     padding:0;
}


step 2 - design for firefox. forget IE even exists

step 3 - tweak for IE, using this is you really have to

Code: html

  <!--[if IE]>
   <style type="text/css">

   </style>
  <![endif]-->
 

call it at the bottom of your html head tag, that way it over-rides any previously declares class/id styles (ie cascades). Great for changing the varius margin differences between FF and IE


Now taking free-lance inquiries; Please contact me for more details
Xeneco - SEO and Design Services
Web 20 - Web Apps
Nothing's Impossible, just let me think about it for a while....

Offline

 

#6 2007-01-25 19:20:33

programming-designs
Member
Registered: 2005-09-07
Posts: 257
I've been thanked 0 times.

Thank me Website

Re: Correcting IE/Firefox Incompatibility Issue

Northie wrote:

Really really easy

use this global style

Code: css

* {
     margin:0;
     padding:0;
}


step 2 - design for firefox. forget IE even exists

step 3 - tweak for IE, using this is you really have to

Code: html

  <!--[if IE]>
   <style type="text/css">

   </style>
  <![endif]-->
 

call it at the bottom of your html head tag, that way it over-rides any previously declares class/id styles (ie cascades). Great for changing the varius margin differences between FF and IE

much easier to use the method i specified in my post, eg:

Code:

div#whatever{
        margin: 5px;
        padding: 5px;
        //margin-top: 0px;
}

That would set the top margin for div "whatever" to 0 only in internet explorer. no need for the conditional if/endif statement.

Offline

 

#7 2007-01-26 06:48:59

droolin
Member
From: Parma, Oh. United States
Registered: 2006-03-10
Posts: 65
I've been thanked 0 times.

Thank me Website

Re: Correcting IE/Firefox Incompatibility Issue

I would like to thank you also for posting how to set different css styles for different browsers.  I have some pages that I am working on that are just doing some plane funky things between IE and FF.  I ended up setteling for something that wasn't quite what I wanted, but close. 

What you just posted might help me tweak it where it is exactly what I want.

Again, thank you.

Dan


Jack of all, master of none.  Know a little bit of this, and a little bit of that.  But, I do not know everything about anything.  Thats what keeps me going, always learning something new.
http://www.awesomechat.net

Offline

 

#8 2007-01-26 09:05:44

os2-systems
New member
From: Nottingham, UK
Registered: 2006-07-13
Posts: 5
I've been thanked 0 times.

Thank me Website

Re: Correcting IE/Firefox Incompatibility Issue

Im having the exact same problem with IE/FF, with FF my drop down menu works perfect over my DIV's, but in IE, it only drops down as far as the DIV's and bits of the menu are blocked out etc.

The same is happening with things like alignment, FF is fine, but IE isnt.

Would anyone be able to help me if I was to email them the coded page, css, etc. ?

If so please PM me, etc.

I am willing to return the favor or I may have something of interest to you.

Thanks in advance.

Steven

Offline

 

#9 2007-01-26 10:18:21

TA
Banned
Registered: 2004-11-25
Posts: 4913
I've been thanked 39 times.

Thank me Website
Buy me candy

Re: Correcting IE/Firefox Incompatibility Issue

os2-systems wrote:

Im having the exact same problem with IE/FF, with FF my drop down menu works perfect over my DIV's, but in IE, it only drops down as far as the DIV's and bits of the menu are blocked out etc.

The same is happening with things like alignment, FF is fine, but IE isnt.

Would anyone be able to help me if I was to email them the coded page, css, etc. ?

If so please PM me, etc.

I looked at your HTML coding and it's somewhat of a mess; your CSS doesn't appear to have anything set-up correctly for viewing in Internet Exploder.

Offline

 

#10 2007-01-26 14:20:49

schachin
New member
Registered: 2007-01-26
Posts: 1
I've been thanked 0 times.

Thank me 

Re: Correcting IE/Firefox Incompatibility Issue

The issue is most likely in the p tag underneath your left column that does not exist in the right

WIth div's they are treated as independent units - unless you trick the columns they will only fill up the space needed and FF does not acknowledge height in the same way as IE , so that will not fix it - I cannot remember exactly myself but easy to look up - but for now you might try removing the extra paragraph at the bottom of the left column and seeing if that works for you -- if not try to locate the fix for column height .. hope this helps glad

Offline

 

#11 2007-01-26 15:19:40

thebjer
Member
From: Cali
Registered: 2006-09-04
Posts: 185
I've been thanked 4 times.

Thank me Website
Buy me a beer

Re: Correcting IE/Firefox Incompatibility Issue

I just went through my own little war with this IE image compatiblity issue...at least that was the final word.  In a template that I was/am designing for a client, the .png logo would not show up in IE, but the .jpg background image would - after I set the joomla site for friendly urls.  Before that...everything was fine.

None of my geeky server buddies could help me figure it out, so I eventually just pasted the logo to the background pic, removed the logo image from the configuration settings and called it a day.

Now granted...I am not a wiz at this stuff like Northie is - who knows how to always force them to get along, but why can't these GUI inventors learn to play together?  What would seriously be the harm?

*Perhaps a whole different topic to argue  gloria


"Success follows your passion...so brave your life a smile"...bj
The Artist

Offline

 

#12 2007-01-26 17:20:00

Steven_A_S
Member
From: San Antonio, TX
Registered: 2006-08-07
Posts: 403
I've been thanked 16 times.

Thank me Website

Re: Correcting IE/Firefox Incompatibility Issue

Y'know, I feel silly that I didn't think about it before, but you could put a second wrapper div around that whole area, then add a background image to each div using an image the same width and color as your sidebars but 1px tall.  you would use something like the following to set the images:

Code: css

#wrap { background:#000 url(images/sidebar.gif) repeat-y left top; }
#wrap2 { background:#000 url(images/sidebar.gif) repeat-y right top; }

This would have the effect of extending both sidebars down to the bottom of the divs

Offline

 

#13 2007-01-28 07:04:40

os2-systems
New member
From: Nottingham, UK
Registered: 2006-07-13
Posts: 5
I've been thanked 0 times.

Thank me Website

Re: Correcting IE/Firefox Incompatibility Issue

Hi, Im trying to use the drop down menu which is on my homepage which is on my profile, etc., but this is the link to the new style layout code http://www.os2-systems.co.uk/demo.htm, Im trying to incorporate the drop down menu in the Top Div.

Offline

 

#14 2007-01-28 09:31:35

Gannyaa
New member
From: Nelson, BC - Canada
Registered: 2007-01-10
Posts: 8
I've been thanked 0 times.

Thank me Website

Re: Correcting IE/Firefox Incompatibility Issue

Hello All,

My solution would be to have two CSS style sheets. One for w3dom class browsers and one for IE.

If you're coding is XHTML 1.0 and CSS compliant than it will be viewed properly in all modern browsers including the new IE 7 !

" Programming-designs " is very much on track.

Name The first Style sheet -- mozstyle.css
Name that second style sheet -- iestyle.css

Code for FireFox first.  Then tweak for IE 5. Essentially the iestyle.css is a copy of the mozstyle.css with
a few different values to make the page work in IE5.

<!-- The file with the moz style sheet works for all browsers including IE 7-->
<link href="mozstyle.css" rel="stylesheet" type="text/css" />

<!-- The file with the IE5 style sheet works only for IE 5 browsers eXcluding IE 7-->
<!--[if lt IE 7]>
    <link href="iestyle.css" rel="stylesheet" type="text/css" />
<![endif]-->


Then it will work all the time in all browsers (except ns4 which I don't code for anymore)

Regards,

Todd (Gannyaa)

Offline

 

#15 2007-01-29 01:25:38

os2-systems
New member
From: Nottingham, UK
Registered: 2006-07-13
Posts: 5
I've been thanked 0 times.

Thank me Website

Re: Correcting IE/Firefox Incompatibility Issue

I also find it strange when I validate this; http://www.os2-systems.co.uk/demo.htm, it validates fine, but when I add some more stuff it goes crazy with errors.

Offline

 

#16 2007-01-29 01:33:24

laurie_m
Member
From: Bega, Sapphire Coast Australia
Registered: 2005-08-18
Posts: 1245
I've been thanked 22 times.

Thank me Website
Buy me a beer

Re: Correcting IE/Firefox Incompatibility Issue

G'day os2-systems.

This has got quite confusing.

I sugest you delete your two posts and start a new thread to deal with your questions.

Regards,
Laurie.


John McDouall Stuart's Journal Greatest of the Australian Inland Explorers
Wilderness Travel Compulsive Wilderness Photographer
Sapphire Coast News computer

Offline

 

#17 2007-02-28 18:52:37

MajorMelody
Member
From: Terica Islands
Registered: 2007-01-18
Posts: 155
I've been thanked 5 times.

Thank me Website
Buy me a beer

Re: Correcting IE/Firefox Incompatibility Issue

You know, I posted this a few weeks ago and it was still coming across as a foreign language to me...until tonight.  I "bandaged" the original site issues I started this thread with and was asked to do a new website facing similar incompatibility issues.

I must admit that I still don't understand exactly how the IF/Then statement works, but having 2 different CSS sheets saved me a world of time...and subsequent hurt.  I think someone mentioned start with a sheet that works in Firefox, save it and then tweak the other one to work in Internet Explorer, which is what I did and I'm happy with the "work smart, not hard" balance such a strategy offers someone of my limited CSS knowledge.

I couldn't grasp how to place the // marks in the CSS sheet, and that is on me so maybe the other suggestions work as well.  Regardless, thank you to everyone who contributed to this thread.  Twice it has provided quick and direct assistance!  guitarist

Offline

 
Never
Sponsored Results


Board footer

Powered by PunBB
© Copyright 2002–2008 Rickard Andersson