I installed and enabled conditional stylesheets module and

comment out ie6,7,8 stylesheet fix in theme info file

however blocks in region (secondary) mess up with main content region (primary region) in IE 6 and IE 7

CommentFileSizeAuthor
#1 Capture.JPG50.8 KBadrianmak
ie7.JPG47.32 KBadrianmak
ie8.JPG48.78 KBadrianmak

Comments

adrianmak’s picture

StatusFileSize
new50.8 KB

secondary region mess up with primary region under IE6 and 7

adrianmak’s picture

I think the inline css generated from template.php which control the region position is IE6,7 incompatible.

update:
I found that this problem occur when there is no block put in tertiary region.

Sarenc’s picture

Hi, Rene will get to this soon but in the mean time you can edit your template.php file in your starter theme. The problem area is as follows:

		// Specify adjustments on pages with no tertiary content
		if (!$variables['tertiary_first'] && !$variables['tertiary'] && !$variables['tertiary_last']) {
			if ($layout == 'layout1') {
				$data .= '.no-tertiary #primary {margin-right: 0;};';
				$margin_left_width = $page_width - $secondary_width;
				$data .= '.no-tertiary #secondary {margin-left: -'. $margin_left_width .'px;}';
			}

There are two issues here. The first is that the line $data .= '.no-tertiary #primary {margin-right: 0;};'; has a semicolon after the bracket. This causes newer browsers to miss the next selector. This is actually a good thing because the value in the next selector is actually wrong. The margin-left should be the full $page_width. In fact because this margin has already been set this selector can be deleted entirely. The end result should be:

		// Specify adjustments on pages with no tertiary content
		if (!$variables['tertiary_first'] && !$variables['tertiary'] && !$variables['tertiary_last']) {
			if ($layout == 'layout1') {
				$data .= '.no-tertiary #primary {margin-right: 0;}';
			}
rhache’s picture

Assigned: Unassigned » Sarenc
rhache’s picture

Assigned: Sarenc » rhache

This has been fixed.

I found a few of those semi-colons that were misplaced. Changes are pushed in latest 6.x-2.7 version.

Thanks,
Rene

rhache’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.