Display in IE6

bwv - July 5, 2008 - 15:38
Project:AD Blueprint
Version:6.x-1.2
Component:User interface
Category:support request
Priority:critical
Assigned:Alan Cooney
Status:closed
Description

Hi, this exquisite theme displays nicely in FF and IE7, but in IE6 all the content is moved slightly to the right (see pic). Can you please tell me how to fix? Thanks.

AttachmentSize
ad_blueprint_ie6.jpg296.61 KB

#1

JubW - July 7, 2008 - 00:12

I am having the exact same problem. It would be great if this could be fixed

#2

sciman - July 7, 2008 - 19:42
Version:5.x-1.2» 6.x-1.2

You should see it in Drupal 6. It displays in IE 6 without any styles.

The Demo site

http://www.duplika.com/blog/ad-blueprint

however, does display correctly in IE6.

AttachmentSize
ad_blueprint_ie6_dp6.jpg 31.54 KB

#3

obeliscus - July 8, 2008 - 02:09
Priority:normal» critical

Hi, I'm having the same issue here. The page is not working properly on any version of IE, not even IE 7.
Firefox,though, is working perfectly.

Any solutions?

Thks.

AttachmentSize
ad_blueprint_ie7_dp6.jpg 52.4 KB

#4

Jerimee - July 11, 2008 - 16:04

having the same problem in Drupal 6

#5

bwv - July 11, 2008 - 16:53

I went to the blog (http://www.duplika.com/blog/ad-blueprint), went to view source, and noticed this at the top:

  <!--[if IE]>
  <style>#sidebar-right {position:relative;left:-1px;}
  #page2 {border-bottom:2px solid #CCC;}
  .site-name {position:relative;top:-20px;}
  .site-slogan {position:relative;top:-35px;}</style>

I might add it and see if it helps.

#6

JubW - July 15, 2008 - 18:01

Thats already inside page.tpl of the template

#7

Alan Cooney - July 16, 2008 - 13:19
Assigned to:Anonymous» Alan Cooney
Status:active» needs work

This can be fixed for anyone using 1/2 collumns by changing this:

<?php
if ($right);else echo "<style type=\"text/css\" media=\"all\">#main {margin-right:0;} #page{background-image:none;}</style>";
?>

In page.tpl.php to:

<?php
if ($right);else echo "<style type=\"text/css\" media=\"all\">#main {margin-right:0;} #page{background-image:none;} <!--[if IE]>#main {position:relative;left:-190px;}<![endif]--></style>";
?>

I am working on a complete fix and will post it shortly.

--------------------------------------

Obeliscus, you have a different problem. Please post your support request separately.

#8

JubW - July 20, 2008 - 23:47

This patch does not fix the problem

#9

qwertydub - August 2, 2008 - 16:03

I'm also having a similar issue as post #2 and #3, where the site name is cut off half way and the navbar is missing entirely, etc. Also the footer message isn't centered like it should be.

I did some tests and it seems to only happen when custom colors are chosen. If i leave the site on the default configuration (green for example) then the issues are almost all but gone. Or at least the navbar colour displays - the site name is still cut off, but at least its better.

I'm going to try to edit the default css file instead of modifiying the colours in the configuration area as a workaround - but just thought i'd post this this in case it helps debug. I've attached 2 images, one is of the site as seen in IE 5 (ancient i know), and then how the same site displays correctly in safari and firefox on all platforms in the second picture.

AttachmentSize
ie5.png 44.91 KB
safari_firefox.png 166.59 KB

#10

nut - August 4, 2008 - 04:26

Doesn't work.

#11

talyia - August 4, 2008 - 12:23

Okay, this sounds like the IE double margin bug.
Go here, this should fix it: http://www.jaymeblackmon.com/ie6-double-margin-bug-fix
A very easy fix! All you need to do is add display:inline; to your floating element, which, in this case is your #main so that it reads

#main {
margin: 0 191px 0 191px;
float:left;
padding: 25px 48px 20px 48px;
display:inline;
}

That should fix it. If it doesn't however, I have another alternative.

Also, I suggest fixing the following code at the top of your html source code so that it reads:

<!--[if IE]>
  <style>#sidebar-right {position:relative;left:-1px;}
  #page2 {border-bottom:2px solid #CCC;}
  .site-name {position:relative;top:-20px;}
  .site-slogan {position:relative;top:-35px;}</style>
  <![endif]-->

(The <!--[if IE]> needs to be moved back into the correct place.)

Good luck & hope this helps!
Christine

#12

bwv - August 4, 2008 - 13:50

Thank you, the first suggestion works great!

#13

sciman - August 4, 2008 - 20:43

#11,

Not working for me. The changes now cause problems with FireFox, and the theme still doesn't work with IE 6 or 7.

It seems all of the ADxx themes have problems.

#14

talyia - August 5, 2008 - 00:07

Then change the direction of the float of #main so that it floats right instead of left, and then just fiddle with the margins of #main until you get it back to the way you want it:)

#15

talyia - August 5, 2008 - 12:11

I have just checked it in Drupal 6.3 in Firefox 2, Firefox 3, Safari 3, IE 6 and it works perfectly.

Here is what you need to do:

in the style.css, change the following to fix the double margin bug:
Beginning at line 109, change the code for the #margin to read:

#main {
margin: 0px 191px 0px 191px;
float:left;
padding: 25px 48px 20px 48px;
display: inline;
}

and then to fix the problem with the header at the top in IE 6, try the following:

in the page.tpl.php, just add the following code to the IE conditional comments at the top:

#header {
height:99px;
padding: 40px 0px 0px 50px;
}

Insert it just after line 32, so that the conditional comments, with the above code, will now read:

<!--[if IE]>
<style>#sidebar-right {position:relative;left:-1px;}
#page2 {border-bottom:2px solid #CCC;}
.site-name {position:relative;top:-20px;}
.site-slogan {position:relative;top:-35px;}
#header {
height:99px;
padding: 40px 0px 0px 50px;
}
</style>
<![endif]-->

Good luck!

#16

Alan Cooney - August 6, 2008 - 09:42

This is fixed in the 2.0.x dev branch - http://drupal.org/node/291833

#17

Alan Cooney - August 6, 2008 - 09:48
Status:needs work» needs review

And in the 6 dev branch - http://drupal.org/node/291836

#18

sciman - August 7, 2008 - 02:16

>> And in the 6 dev branch - http://drupal.org/node/291836

When enabling the theme, it produces this error:

Fatal error: Call to undefined function phptemplate_body_attributes() in /home/www/Drupal6/sites/all/themes/ad_blueprint/page.tpl.php on line 22

Have to remove the theme directory in order to access the site.

#19

Alan Cooney - August 7, 2008 - 06:34

Thanks, I fixed that

#20

sciman - August 7, 2008 - 20:31

Still have issues with IE 6 & 7

The left column extends down the page.

See attached image. the Page should end at the search box and feed icon. Instead, the left column extends down the page quite a ways.

AttachmentSize
ad_blueprint_1.jpg 11.05 KB

#21

Alan Cooney - August 13, 2008 - 07:50

Sciman, are you using the 2.0.x dev version?

#22

sciman - August 13, 2008 - 23:57

>> are you using the 2.0.x dev version?

Yes, I'm using 6.x-2.x-dev.

Also, notice in the image in #20, the bottom left corner where the Vertical and Horizontal borders meet? In this case, you can see that the bottom line is actually missing in the corner. This occurs in Firefox as well as IE.

Edit: The broken corner lines are also in the right hand corner.

Steve

#23

Alan Cooney - September 21, 2008 - 20:24

Thanks Steve, and sorry for the delay. I have updated the 5.2.x dev branch with a huge number of fixes and will be porting this shortly to Drupal 6. Please give your comments.

#24

Alan Cooney - September 22, 2008 - 06:33
Status:needs review» fixed

#25

Alan Cooney - September 22, 2008 - 13:25
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.