Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-16 19:35:36

lwray
Member
From: Allston, MA
Registered: 2004-12-02
Posts: 21
Website

Article div overlap in Firefox

This is an odd problem that I find only happens in short articles with thumbnail images, but I can’t think of how to solve it. You can see it (unfortunately) happening right now on the front page of my journal. The following article floats over the first and overlaps it. But, and here’s the weirdest part, it’s only in Firefox!

Here it is in action: xwray

Can anyone give me any input on why this is happening? I keep examining my CSS code without success.

Thanks.

Offline

#2 2006-02-16 20:11:58

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Article div overlap in Firefox

Unfortunately, the same thing also happens in Mac OS X’s Safari.

I don’t have the time to check out the source now, but I thought I’d let you know. Hopefully, I can find the time later tonight to figure out what’s wrong.

Offline

#3 2006-02-16 20:55:51

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Article div overlap in Firefox

Add a clear:both to either div.small or div#content > div.article > h3. This will fix the overlapping. However div#content won’t behave properly after you do that. Float div#content left and remove the margin-left.

That makes it work in Firefox. Don’t know how to attach a user style sheet in Safari to test.

You could probably get away with just a clear:left but I like clearing everything in row clearing items. Personal preference.

Last edited by hakjoon (2006-02-16 21:05:32)


Shoving is the answer – pusher robot

Offline

#4 2006-02-16 21:41:40

lwray
Member
From: Allston, MA
Registered: 2004-12-02
Posts: 21
Website

Re: Article div overlap in Firefox

<b>hakjoon</b>: I tried your suggestions, but they break other stuff as they fix the overlapping. All the content in the blog entries drops to below the sidebar and fills up the white area, leaving blank space on the right of the sidebar where they should be. Not sure how to clear only some divs and not all of them.

(undoing changes now)

Any other suggestions?

Offline

#5 2006-02-16 23:33:16

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Article div overlap in Firefox

I totally had this working at work. I just tried it at home though and it doesn’t work. This however seems to work without any other changes.

<pre><code>
div.article { float:left;
}
</code></pre>

I’m doing this just using the edit CSS tool in Firefox so maybe it’s not super accurate, but adding that rule seems to make everything else work properly.

Last edited by hakjoon (2006-02-16 23:33:28)


Shoving is the answer – pusher robot

Offline

#6 2006-02-16 23:56:13

lwray
Member
From: Allston, MA
Registered: 2004-12-02
Posts: 21
Website

Re: Article div overlap in Firefox

Beautiful! Thanks so much.

I now notice I have some other IE issues, but I’ll work them out.

Offline

#7 2006-02-27 03:53:16

lwray
Member
From: Allston, MA
Registered: 2004-12-02
Posts: 21
Website

Re: Article div overlap in Firefox

Actually, it’s still not working in Firefox! It’s still squished!

It looks okay in IE and in Firefox … <i>after you refresh</i>. What gives? Can this even be a CSS issue?

Help!

Offline

#8 2006-02-27 04:27:47

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Article div overlap in Firefox

I’m seeing it too, and like you said it looks perfect after you refresh. That’s pretty weird, not sure what would cause that.


Shoving is the answer – pusher robot

Offline

#9 2006-02-27 13:55:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,122
Website GitHub Mastodon Twitter

Re: Article div overlap in Firefox

<a href=“http://www.positioniseverything.net/easyclearing.html”>This</a> might help you.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB