I want to float a div
to center. Is it possible? text-align: center
is not working in IE.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
This has always worked for me.
Provided you set a fixed width for your DIV, and the proper DOCTYPE, try this
Hope this helps.
There is no float to center per se. If you want to center a block element inside another do this:
with:
Now that won't make the text wrap around it (like it would with a float left or right) but like I said: there is no float center.