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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | FF_1024.jpg | 68.29 KB | Alaska |
| #1 | ie_1024.jpg | 53.59 KB | Alaska |
Comments
Comment #1
Alaska commentedP 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)
The next posting will have a screen shot of the same page in FF 1.06.
Any suggestions?
Jim
Comment #2
Alaska commentedThis is a screen shot of the same page in FF 1.06 that is working properly.
Jim
Comment #3
Alaska commentedTrae:
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
Comment #4
Alaska commentedTrae:
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
Comment #5
Alaska commentedTrae:
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
Comment #6
robin monks commentedThis 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