Using Drupal 4.6.2 with CivicSpace as a story in the center liquid column. Images are added as inline CSS with the text block being set for full HTML.

P tags are used (actually Drupal places the P tag with double spacing) to break the text. All text wraps in IE 6 and FF 1.06 in an 800 wide browser. However, at 1024 FF works, but IE adds additional white space and will not wrap the text from one image/paragraph to the next P tag.

The work around was to remove the double space in the text box and replace it with a double set of BR tags. This removed the possibility that Drupal would add P tags for paragraph spacing.

My concern is what is not working in IE at 1024 and what can be done to once again use the P tag?

Sample code follows.....

<img style="width: 40%; margin-left: 0px; margin-top: 5px; margin-right: 10px; margin-bottom: 0px; float: left; border: 1px solid black; " src="/images/family.jpg">In 1944 Bob's' dad, Frank came to Adak with..... 



Brooks Range. <img style="width: 40%; margin-left: 5px; margin-top: 5px; margin-right: 10px; margin-bottom: 0px; float: right; border: 1px solid black;" src="/images/plane.jpg">Bob  earned a degree in Mining Engineering from the University....



the family moved to Texas. <img style="width: 40%; margin-left: 0px; margin-top: 5px; margin-right: 10px; margin-bottom: 0px; float: left; border: 1px solid black;" src="/images/birch_family.jpg">Logan and Tom are both....

Let me know if there is a better solution as the issue may not be with the theme and with IE. However, it would be great if the theme would work in both IE and FF at 1024.

Thanks,

Jim

CommentFileSizeAuthor
#2 FF_1024.jpg68.29 KBAlaska
#1 ie_1024.jpg53.59 KBAlaska

Comments

Alaska’s picture

StatusFileSize
new53.59 KB

P Tags and Image Floats

Attached is a image of what the page looks like in IE 6 at a browser set at 1024 wide. The line break converter is being used in Full HTML as an Input Format.

The lines break at the P tags as inserted by Drupal when using double space in the story input box. In FF 1.06 the text wraps properly.

What is interesting is that when the IE browser is resized in 1024 by using the handle the text will wrap properly as the browser window narrows. It would just seem that the normal CSS element flow in IE is not working the same as in FF.

This is the code from the browser source. The P tags are in the correct location along with the inline CSS for left and right image floats. (note: Drupal inserted the P tags version 4.6.2)

<p><img style="width: 40%; margin-left: 0px; margin-top: 5px; margin-right: 10px; margin-bottom: 0px; float: left; border: 1px solid black; " src="images/family.jpg">In 1944 Chris' dad, Frank came to Adak with the US Marine Corps. After the war he returned to Alaska with his wife, Bettijeanne. Frank worked as a mining engineer and Bettijeanne as a geologist, camp cook and bookkeeper in placer and hard-rock mines around the state. When the couple was expecting their first child, Chris, they were employed at the Independence Mine at Hatcher Pass.</p>


<p>Chris and his sisters grew up in camps near Fairbanks and in the Brooks Range. <img style="width: 40%; margin-left: 5px; margin-top: 5px; margin-right: 10px; margin-bottom: 0px; float: right; border: 1px solid black;" src="images/plane.jpg">Chris earned a degree in Mining Engineering from the University of Alaska Fairbanks in 1972 and later earned a Masters degree in Engineering Management. He married Pam in September of 1978.</p>


<p>They have two children Logan and Tali, who were born in Fairbanks. When Chris took a job with Alyeska Pipeline Service Company in 1991 the family moved to Anchorage. <img style="width: 40%; margin-left: 0px; margin-top: 5px; margin-right: 10px; margin-bottom: 0px; float: left; border: 1px solid black;" src="images/birch_family.jpg">Logan and Tali are both graduates of the Anchorage School District and the University of Washington. Logan and his wife Heather reside and work in Anchorage.  Tali is a law student at Lewis and Clark College in Portland, Oregon and Pam is a technical communication consultant. Chris is a Senior Engineer with Tryck Nyman Hayes, Inc. in Anchorage.</p>


<p>He has served as President of the Chugach Electric board where he effectively supported member approval of free and open competitive bidding, president of the Mid-Hillside Community Council of the nonprofit Hilltop Ski Area, President of the Valli Vue Homeowner Association, board member with the Anchorage branch of the Alaska Miners Association and active with Anchorage East Rotary. Chris was elected to the Fairbanks North Star Borough Assembly in 1984 and 1987, serving twice as Presiding Officer.</p>

The next posting will have a screen shot of the same page in FF 1.06.

Any suggestions?

Jim

Alaska’s picture

Title: CivicSpace Image Floats with Wrapped Text Fails in IE » P Tags with Image Float in FF
StatusFileSize
new68.29 KB

This is a screen shot of the same page in FF 1.06 that is working properly.

Jim

Alaska’s picture

Trae:

That is some bug for sure. I just gave up and decided to use BR tags in place of P tags. Then of course it works in IE. Have not tried playing with width at 100%. Read some material that IE has a issue with that and perhaps changing to 99% would take care of the issue.

Another issue that is related to a lot of themes is that the use of the event module (calendar) causes all sorts of issues. i.e if more than 4 days are entered in a week the calender pushes out the right margin of the page even in Civicspace. It would be nice if it could be contained in some way. To decrease the width, I just took out all of event.css and that solved most of the issues. However, this is another issue that, as best I can tell, needs to be resolved by the events folks.

Oh, back to the tags issue. Here is a URL for a site that has the issue. www.politicalsite.com/folder. (note: URL changed as client does not desire to have site public at this time) If you look at the source code at node/10 you will see that the block has only an opening and closing P tag with BR's to simulate paragraph breaks. This solves the issue at both 800 and 1024 wide browsers in IE. What is interesting is that if P tags are used the text wraps nicely at 800 in IE but as the screen shows breaks at 1024. Also set the image height and width vs % but that did not make any difference. Thinking that IE could not correctly calculate a percent image size.

Jim

Alaska’s picture

Trae:

Have you been able to duplicate the issue on your end?

As a note, the political site was installed around the 17th of July or so.

On 7/30/05 I downloaded Drupal and Civicspace thinking that perhaps some fixes had been applied. Now have that running on my test site. Just a few minutes ago I added 3 pictures and it is playing well in IE at 1024. You can see it at www.mysite.com/folder at node/6 on the front page.

If you look at it in FF 1.06 at 1024 you will notice that the bottom picture and the read more line collide. That does not occur in IE 6. Have not put that fix into the CSS at this time, but when I did it solved the FF issue. Used .read-more {clear:both;} . Let me know if that is the correct fix for this issue. The same thing happens if the image is larger (vertically) that the text. Seems that it will just not clear in FF.

If the solution is to use a latter edition of CS with Drupal I sure can do that to solve the issue. But before I do, let me know if you are seeing the same issues on your end.

Jim

Alaska’s picture

Trae:

Just did another test. Took the same chris birch info from his site and placed it on my new site. www.mysite.com/folder/node/13. It still breaks in IE 6 at 1024 but OK in IE at 800.

Removed the CSS width of 40%. Added width="40% height="40% and this did not solve the issue. Then tried width="40% scalefit="1" - no go here either. And the last at height="150" width="150" - no go.

Was hoping that the issue went away. But at least it can be reproduced which is half the battle. Have the page now set at height/width 150 but will have to change it out and back to width: 40% in CSS at some time.

And of course the issue of the PNG in the header in IE. It flashes to a reverse color. Solved that by making it a transparent GIF as IE has problems with transparent PNGs.

Jim

robin monks’s picture

Version: 4.6.x-1.x-dev » master
Status: Active » Closed (won't fix)

This bug is a MSIE problem, documented here: http://www.positioniseverything.net/explorer/percentages.html

Obviously, we can't fix Microsoft's bugs for them (that's what Firefox is for ;-) ) so I'm going to close this bug.

Please feel free to forward this to Microsoft.

Robin