Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-02 22:01:34

growtrees
Member
Registered: 2009-06-02
Posts: 10
Website

How Do I Fix Floating Comment Forms?

For some reason on all my permalinked entries my comment form tends to just float in the middle of the entry.
Example: http://11.acesaura.com/articles/46/metallic-gold

I can’t do nopop up comments because it always does the same thing. I can’t see anything wrong in my coding but I’m hoping this is a common problem that can be easily fixed. I looked through the FAQs but didn’t see anything unless I missed it.
I’d appreciate any guesses as to whats wrong with it because I can’t figure it out!

Thanks

Offline

#2 2009-06-03 06:32:01

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

Re: How Do I Fix Floating Comment Forms?

Hi Crystal,

You are missing some elements like the <body> tag in your template. Also doctype is missing. Try to validate your page. Once some of those are corrected I guess all that you will need is something like

.comments-wrapper {clear:both;}

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

Offline

#3 2009-06-03 11:39:35

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: How Do I Fix Floating Comment Forms?

The issue is not that it floats but that it is absolutely positioned.

On line 48 of your CSS you have a selector:-

div {
...
position:absolute;
...
}

Set the styling for .comments-wrapper to static or relative.

By the way, positioning a generic tag like div with such specific CSS isn’t a good idea. I noticed that most things are positioned absolutely which will make things difficult to order. I think you are going to need to take another look at the whole CSS and use position:static, floats and clearers instead of absolutely positioning everything.

Last edited by Timid&friendly (2009-06-03 11:49:53)


I think, therefore I AM, … … er … I think :-?

Offline

Board footer

Powered by FluxBB