
0
Is it possible to change text alignment on different devices without media queries?
hy guys i have 2 block, one on text align-left and one text align-right on desktop its fine but on mobile i want both on center, its that possible without media queries, i have this for start but its not working https://webdesign.tutsplus.com/tutorials/creating-a-future-proof-responsive-email-without-media-queries--cms-23919
tks
I think you absolutely need media queries for that, why is it that you can't use them? If you're having trouble with them you can use this query at the end of your style sheet:
@media screen and (max-width: 480px) {
p {
text-align: center !important;
}
It works for me just fine.
Hy, tks for your reply, reason is simple android mail :(((
You shouldn't have any problem doing this through media query if you are using Android's Native Email app (not Gmail App).
i dont have problems with gmail, only with native android email ;/
Then you shouldn't have any problem as you can easily make it work using media query.
media queries are not reliable, there are some places where dont work , such as
gmail IPOP/iMAP
gmail "view entire message" bye bye media queries
until android 5