Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   Excerpts do not align well in IE (http://forum.bytesforall.com/showthread.php?t=7268)

JFG May 24, 2010 02:07 PM

Excerpts do not align well in IE
 
Hi,

I'm using Atahualpa 3.4.6 on WP 2.9.2

When using thumbnails and excerpts, the text does not align well (horizontally) with the image in IE. There is an empty space above the text that I cannot get rid of. It looks fine in other browsers.

After playing with all padding and margin settings, my only guess as to what may be causing this is the <p> tag that Atahualpa places in front of the text excerpts. Could this be causing the space in IE?

To see example, you can see : www.mangersantebio.org
Look at the bottom left of the page for the post excerpts in IE and you'll see what I'm talking about. The same problem occurs with 3.4.9 on another site.

Thanks for any tip. Doesn't anyone else have their IE excerpts show up this way?

JF

JFG May 24, 2010 09:01 PM

Well, I found what was causing this:

In the css.php there is this:

Code:

div.post-bodycopy p {
        margin: 1em 0;
        padding: 0;
        display: block;
        /* The rule below would create hor. scrollbars in Firefox,
        which would be better than overflowing long strings, but the
        downside is that text won't float around images anymore.
        Uncomment this if you don't float images anyway */
        /* overflow: auto; */
        }

by simply removing the vertical margin value the excerpt text in IE now aligns with the thumbnail image while it remains well aligned in other browsers as well. Hope this helps someone.

JFG May 25, 2010 08:58 AM

Actually, doing what I described in the last post also changes the value of all P tags in the posts and pages... so it would actually be better to leave the vertical margin value as is and remove the P tag altogether when an excerpt is being displayed....

Anyone knows where I can remove the P tag that appears before each excerpt?


All times are GMT -6. The time now is 03:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.