Right aligned main content text gets truncated by a few characters.

P00595 - August 15, 2005 - 15:19
Project:Sunflower
Version:4.6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

The Sunflower theme works fine for me when using the FireFox browser, but when using IE V6.0, I notice that any right aligned text within the main content appears to get truncated by a few characters.

To resolve the issue I added the HTML tags "" to the following lines within sunflower.theme

$output .= "\n\n";
$output .= $content;
$output .= "\n\n";

$output .= " \n";

I.e:

$output .= "\n\n";
$output .= $content;
$output .= "\n\n";

$output .= " \n";

Don't know if it is the best solution, but the content now displays correctly for both FireFox and IE.

Calvin

#1

P00595 - August 15, 2005 - 15:26

Oops! That HTML didn't come through very well. I'll try again.

The problem of truncating text was fixed by changing the following lines in sunflower.theme:

     $output .= "\n<!-- begin content -->\n";
     $output .= $content;
     $output .= "\n<!-- end content -->\n";
 
     $output  .= "    </td>\n";

to:

     $output .= "\n<!-- begin content -->\n";
     $output .= $content;
     $output .= "\n<!-- end content -->\n";
 
     $output  .= "    </td><td></td>\n";

Regards,

Calvin

#2

vph - January 11, 2006 - 07:04

I tried but did not like the look of this suggested fix. I like the look of my fix more. Others can try and decide for themselves. My fix is to modify the file sunflower.css in the following ways:

1. in div.mysubject, change width=100% to width=98%
2. in div.mybody, change width=100% to width=95%

I think this problem of horizontal misalignment is completely about the (slight) imcompatibility between the sunflower style and IE browser (remove sunflower.css and you'll see everything perfectly aligned).

More generally, I have a suspicion that many folks who design Drupal themes somehow fail to test their themes on IE browers (at least in comparison to Firefox). If true, this is very *bad* because I believe an overwhelming number of users will still be using MS IE.

There are two themes that I like, kubrick and sunflower because of their simple elegance. Both seem to have problems with IE browers. These problems are small, but could be very annoying. Fortunately, sunflower is so simple that (temporarily) fixing it to my taste is not too difficult. I hope that drupal theme developers test there contributions more extensively on IE browers.

 
 

Drupal is a registered trademark of Dries Buytaert.