centering, style="text-align:center;" not working |
centering, style="text-align:center;" not working |
pcfw |
Aug 28 2009, 09:33 AM
Post
#1
|
Group: Members Posts: 2 Joined: 28-August 09 Member No.: 9,602 |
I used <div style="text-align;">script</div> to try to center Amazon car parts finder at
<a href="http://automotivetipstricks.blogspot.com/">Automotive Tips and Tricks</a> but the parts finder is only centered when viewed with IE but not with Firefox and Chrome. What tag should I use to center the widget? Thanks |
pandy |
Aug 28 2009, 10:14 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,731 Joined: 9-August 06 Member No.: 6 |
CODE Possible Blogger Terms of Service Violations This blog is currently under review due to possible Blogger Terms of Service violations. If you're a regular reader of this blog and are confident that the content is appropriate, feel free to click "Proceed" to proceed to the blog. We apologize for the inconvenience. If you're an author of this blog, please follow the instructions on your dashboard for removing this warning page. For centering see: http://www.w3.org/Style/Examples/007/center.html . IE wrongly lets text-align affect block level elements when it's in Quirks Mode. That's what I predict is the problem here. Or you actually wrote what you wrote in your post above, but then again it wouldn't work in anything. |
pcfw |
Aug 28 2009, 10:50 AM
Post
#3
|
Group: Members Posts: 2 Joined: 28-August 09 Member No.: 9,602 |
CODE Possible Blogger Terms of Service Violations This blog is currently under review due to possible Blogger Terms of Service violations. If you're a regular reader of this blog and are confident that the content is appropriate, feel free to click "Proceed" to proceed to the blog. We apologize for the inconvenience. If you're an author of this blog, please follow the instructions on your dashboard for removing this warning page. For centering see: http://www.w3.org/Style/Examples/007/center.html . IE wrongly lets text-align affect block level elements when it's in Quirks Mode. That's what I predict is the problem here. Or you actually wrote what you wrote in your post above, but then again it wouldn't work in anything. Dang - Blogger splog robot giving false positive again. But nevermind, it is a demo blog Can I use <div style="margin-left: auto; margin-right: auto;">widget to be centered</div> |
Darin McGrew |
Aug 28 2009, 08:02 PM
Post
#4
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
QUOTE Can I use Yes, that's the right way to do it. But MSIE doesn't support it in quirks mode; it supports it only in standards mode.<div style="margin-left: auto; margin-right: auto;">widget to be centered</div> |
Lo-Fi Version | Time is now: 26th April 2024 - 02:20 PM |