![]() |
Centering div with HTML 4.01 Transitional
To center divs on a page, I usually use:
Code:
margin-right: auto; |
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.
|
Quote:
Code:
text-align: center; 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 |
the |
Yeah it was the content within the div that I was talking about.
Despite using text-align: center; my iframe still wasn't centering. I did some Googling and found the suggestion to give my iframe a fixed width instead of a percent and it fixed it. I still struggle with css but thought that maybe it would work with your issue too. Just a guess but maybe display:block; margin-right:auto; margin-left:auto; |
using
I use of course you can use styling to the div tag too |
Quote:
link http://slut-fest.com/gay-twinks-fuck/ |
Quote:
http://www.w3schools.com/tags/default.asp |
Quote:
|
Quote:
|
All times are GMT -4. The time now is 02:33 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc