PDA

View Full Version : float: right;?


doggo18
08-06-2003, 02:23 PM
Hello again,

I have ran into a problem with float: right;.

Look here: news item with comments (http://www.worstje.mine.nu/?comment=2)

Every comment has a few fields. The comment id and date are floated right. But the date seems to appear a few pixels down compared to the item to the left of it. How can I solve this?

(Using IE 6)

ronaldb66
08-06-2003, 02:51 PM
Try clear: both; on the commentcontent class; that should force the float up to the one above it. It could also be a margin issue; read the Brainjar article on CSS Positioning (http://www.brainjar.com/css/positioning/default.asp) about when margins collapse or not using float.

doggo18
08-06-2003, 04:58 PM
Your tip about using clear: both; did not help. The first content block would get a huge gap into it. I will see if I could solve the problem by using absolute positioning..

Thanks anyway :)