1
irmtfan
an issue with float in IE
  • 2007/1/17 9:16

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i just want to use float:right; in article module for the index page.

so i change the code from
.article-header-image{
float: left;
text-align: center;
font-size: small; /* caption */
margin: 0px 10px 10px 0px;
}

to:

.article-header-image{
float: right;
text-align: center;
font-size: small; /* caption */
margin: 0px 0px 10px 10px;
}

and it works fine in FF but IE get me a messy page

see:
ok in ff:http://xoops.ir/uploads/article_ff.jpg

not ok in ie:http://xoops.ir/uploads/article_ie.jpg

i try many ways but still cant sort it out. anyone can help?

2
rabideau
Re: an issue with float in IE
  • 2007/1/17 11:31

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


Two things worth checking.

1. IE 6- does not deal well with float, check and see if things work with IE 7
2. use Clear:both command before using the float; often there are other float blocks getting "in the way"
; see:
http://www.w3schools.com/css/pr_class_clear.asp


Good Luck!
Pax vobiscum,
...mark

may the road rise to meet your feet!

http://treemagic.org

Login

Who's Online

158 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits