Solved

text doesn't float around image in IE7

Posted on 2009-05-18
5
419 Views
Last Modified: 2012-05-07
text does not float afround image in IE7 on xp or windows. Correct behaviour in Firefox or IE 6 or less.

Site:
http://espace.agirlocal.com

On the main page, in 6 boxes, like "les Seronais", "l'universe bois" etc, the text is not floating corectly around little image, you can see corect behaviour in Firefox
0
Comment
Question by:Darko_Kantic
  • 2
  • 2
5 Comments
 

Author Comment

by:Darko_Kantic
ID: 24410286
forgot to mention, this site is done using Drupal and zen theme
0
 
LVL 7

Expert Comment

by:thiyaguk
ID: 24410296
Try this in lieu of the css assigned to ".right", adjust to your taste:


.right {
margin-left: 100px
}


Hopefully that's more of what you were looking for...
0
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 24410408
It's acting differently in IE7 because ".fp-teaser-text p" has min-height and max-height set. Both of those properties trigger hasLayout which triggers or fixes many IE bugs.

To understand more about what hasLayout is, read this: http://reference.sitepoint.com/css/haslayout


One solution would be to move the ".fp-teaser-image" <div>s inside the ".fp-teaser-text" <div>s.
0
 

Author Closing Comment

by:Darko_Kantic
ID: 31582519
I tried to put ".fp-teaser-image" s inside the ".fp-teaser-text" s. as you suggested but it didn't work, same problem. So I got rid of max and min-height property and the problem disapeared. So I still have to solve problem of making those boxes of same hight.
0
 
LVL 42

Expert Comment

by:David S.
ID: 24411099
> I tried to put ".fp-teaser-image" <div>s inside the ".fp-teaser-text" <div>s. as you suggested but it didn't
> work, same problem. So I got rid of max and min-height property and the problem disapeared. So I still
> have to solve problem of making those boxes of same hight.

Sorry. I forgot to add that the min-height and max-height declarations would need to be moved to the rule for ".fp-teaser-text".

You didn't need to create a separate question.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question