Quote:
Originally Posted by Cleo
I had a problem centering iframes recently using the code you posted. The solution was to give the item I was trying to center a fixed width instead of a percentage.
|
iframes behave in strange ways sometimes for me, and I also do a fixed width usually wider than the iframe and add this:
Code:
text-align: center;
to the div's properties.
But I was referring to centering the actual div, not the content within the div. Seems to behave differently in HTML 1.0 and HTML 4.0