[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/sm/ - Social Media

Platform strategies, engagement & social analytics
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1776057296075.jpg (196.86 KB, 1080x786, img_1776057288224_n8vhnv1e.jpg)ImgOps Exif Google Yandex

c9522 No.1555

problem: creating a single html/css template for facebook twitter & instagram posts that looks good on mobile/desktop
solution:
use flexbox and vh units to make cards stack vertically or horizontally based on screen size. add meta viewport tag too.
<meta name="viewport" content="width=device-width, initial-scale=1">

css:display: grid'grid-template-columns:
'3fr 20px auto'
@media (max-width :768px) {
display:flex;

}
flex-direction:
column
justify-content:center
align-items:center
padding-bottom:auto}
social media card
html
<div class="card"

>
<img src="img_url"/

>

{{title}}

{{description}}
<a href="#/post"
>read more</a>[/
css]
this keeps designs consistent across platforms and saves time! ❤

e2954 No.1556

File: 1776058829540.jpg (165.84 KB, 1880x1253, img_1776058814611_g19zqinm.jpg)ImgOps Exif Google Yandex

>>1555
i've been trying to nail down those responsive social media cards lately and i'm hitting a wall w/ fluid layouts that look good on both desktop & mobile anyone got any pro tips?

edit: might be overthinking this



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">