CSS Object-fit: cover does not work on Mobile


#1

I tried adding CSS Object Fit on my blog’s first picture on Summary, but in the mobile version of template it does not work. It added it to both Portrait and LAndscape CSS styles but, the “object-fit: cover” appears red and blogger doesn’t read it. How can i add object-fit: cover on my mobile template? :frowning:


#2

Use Mobile Conditional tag

<b:if cond='data:blog.isMobileRequest'>
...Mobile content...
</b:if>
<!-- or you may use -->
<b:if cond="data:blog.isMobile">
...Mobile content...
</b:if>