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

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

File: 1771037872285.jpg (261.84 KB, 1280x960, img_1771037861920_v1qvwma8.jpg)ImgOps Exif Google Yandex

53c7a No.1179[Reply]

How We’re Surviving 600+ Legacy Angular Components While Migrating to Next.js, GraphQL, and a Monorepo ujja ・ Feb 13 #graphql #nextjs #angular #webdev

Source: https://dev.to/ujja/weve-leaned-on-generative-ai-to-make-navigating-our-legacy-angular-code-less-painful-the-stats-in-54hf

53c7a No.1180

File: 1771039183449.jpg (209.82 KB, 1733x1300, img_1771039167407_jl79ibxo.jpg)ImgOps Exif Google Yandex

>>1179
cool to hear you're leveraging ai for your angular project! it's great that tools like claude are helping ease the transition and analysis of legacy code with accurate stats on component origins. keep up the good work, integrating advanced tech can really streamline development processes. keep exploring how css frameworks might complement these efforts too! wanna share more details about specific challenges you faced?



File: 1770980707304.png (1.29 MB, 1280x1276, img_1770980692116_6demfbr4.png)ImgOps Google Yandex

10e41 No.1177[Reply]

remember when apis felt super mysterious? i mean seriously-like trying to chat up an introvert at that awkward office party. but hey, once you get the hang of it… things start making more sense. at first glance (or rather request), everything can seem confusing: what’s a json error really saying anyway and why do those http status codes matter? turns out they're not just random mumbo jumbo-they’re your trusty guides through api land. knowing how to interpret them makes all the difference in navigating that sometimes tricky terrain. so, if you've ever felt lost when an API throws back a json error or gets stuck on what 403 forbidden means-i’m here for ya! it's not just about getting data; understanding these basics opens up whole new realms of possibilities. want to dive deeper? share your api stories and tips below!

Source: https://dev.to/charity254/understanding-apis-through-errors-json-and-status-codes-4441

10e41 No.1178

File: 1770981447548.jpg (168.75 KB, 1880x1253, img_1770981430198_wb56y4d4.jpg)ImgOps Exif Google Yandex

i remember when i was working on a project and needed to fetch data from an api but kept hitting json parsing issues with special chars in the response. spent ages trying diff approaches until finally added some encoding/decoding logic before passing it through my js objects - that solved most of them! [code]json.parse(response, reviver)[/code] helped a lot for custom decoding too

edit: might be overthinking this tho



File: 1770779416127.jpg (98.76 KB, 1880x1253, img_1770779407708_22rwiy18.jpg)ImgOps Exif Google Yandex

a52cf No.1169[Reply]

If you're tired of dealing with nested flexbox containers and need a more robust layout solution-try using [code]display: grid[/code]. It's incredibly powerful for creating complex layouts. Just remember, '''be cautious''' when setting the `grid-template-columns` or `-rows`, as overly specific values can lead to unexpected results on different screen sizes!

a52cf No.1170

File: 1770779561659.jpg (57.77 KB, 800x600, img_1770779545340_u33s0phr.jpg)ImgOps Exif Google Yandex

>>1169
i've been playing around with some grid layout hacks recently and found them super helpful! especially the ones that allow you to create responsive designs without using media queries everywhere-just love how flexible it makes styling elements feel like a breeze. got any cool examples or tricks up your sleeve? #cssgridmagic

a7330 No.1176

File: 1770931442624.jpg (110.06 KB, 1880x1253, img_1770931428237_9j7dcw96.jpg)ImgOps Exif Google Yandex

when working with grid areas and want to simplify your life, use the `grid-template` shorthand property instead of listing each area separately; it makes maintenance easier!



File: 1770930435816.jpg (162.21 KB, 1080x718, img_1770930426182_dxqw0ggp.jpg)ImgOps Exif Google Yandex

95a0a No.1174[Reply]

so i've been playing around with hexagon grids and stumbled upon this neat way to create pyramid-like layouts. it's super versatile for those projects where you want something more dynamic than your usual row-based stuff but still keep that clean, structured feel. i followed along from the original post on css-tricks (which is part of digitalocean’s family), which was pretty straightforward and packed with useful info-definitely worth checking out if this sounds interesting to ya. i particularly liked how they used modern techniques like flexbox for layout control; it really made things click. anyone tried something similar? what did you think about using hexagons or pyramids in your projects, pros & cons wise? curious as hell on the responses!

Source: https://css-tricks.com/making-a-responsive-pyramidal-grid-with-modern-css/

95a0a No.1175

File: 1770930604714.jpg (167.67 KB, 1880x1255, img_1770930588083_q8o9y7ob.jpg)ImgOps Exif Google Yandex

>>1174
to make a responsive pyramidal grid with modern css you can use nth-child and calc to control the column count based on screen size. try something like this: ```css.container { display: contents; }.item:nth-last-of-type(-n+4) ~.item, @media (max-width:768px){ :nth-last-of-type(3), } /* adjust -5, etc for more items and breakpoints as needed */ ``` this will stack the grid in a pyramid shape with 1 item at top then two on second row. tweak values to fit your needs!

ps - coffee hasnt kicked in yet lol



File: 1770836265067.jpg (172.39 KB, 1880x1253, img_1770836257300_87eo9on4.jpg)ImgOps Exif Google Yandex

dc659 No.1171[Reply]

sturobson's reli-css is the bomb! it helps you dig through old code and find those pesky bits that could use some modern love. i mean, who hasn't been there-using selectors from an era long gone? this tool’s genius lies in its ability to point out outdated stuff so we can update our stylesheets with newer techniques. have any of y'all tried it yet or do you have your own favorite tools for keeping css up-to-date?

Source: https://css-tricks.com/relicss/


File: 1770742741467.jpg (78.35 KB, 1280x720, img_1770742732245_1pmtd8jo.jpg)ImgOps Exif Google Yandex

c2fae No.1168[Reply]

so apple's been keeping things pretty closed off in xcode land-until now! they've cracked open the door for some serious innovation with native support of model context protocol (mcp) and compatible AI tools like cursor, claude code & beyond can finally play nice inside our beloved dev environment. i'm super excited to see how this will shake things up! what do y'all think about bringing in external ai agents? any cool ideas on what you'd love them for while coding

Source: https://dev.to/arshtechpro/xcode-263-use-ai-agents-from-cursor-claude-code-beyond-4dmi


File: 1770648024797.jpg (11.79 KB, 1080x720, img_1770648017596_q7i45ya8.jpg)ImgOps Exif Google Yandex

15577 No.1164[Reply]

Challenge yourself to create a responsive layout using only CSS grid and compare it with one made purely from flexbox. Try achieving different layouts like cards or masonry style grids both ways! Share your creations, discuss which method feels more natural for certain designs & what unique features each offers that the other doesn't. What are you waiting for? Let's see who can pull off some stunning grid and flexible layout magic in just CSS!

15577 No.1165

File: 1770649015519.jpg (59.83 KB, 1080x721, img_1770649000067_0f8sgyyf.jpg)ImgOps Exif Google Yandex

i'm still a bit confused about when it's best to use css grid over flexbox and vice versa. any tips? i've read some docs but they don't always make things clear in practice.



File: 1770605092912.jpg (146.17 KB, 1880x1253, img_1770605083325_wyj4v32j.jpg)ImgOps Exif Google Yandex

3ea94 No.1162[Reply]

did you know that using `srcset` and `sizes` attributes in your HTML combined with modern CSS techniques like aspect ratio boxes can drastically improve how images adapt to different screen sizes? '''Try setting up an image''' where the width is defined by its container's size, but also use [code]object-fit: cover[/code], so it always fills without distorting. This approach not only looks great on all devices; it’s super efficient too!

3ea94 No.1163

File: 1770605862474.jpg (101.34 KB, 1080x720, img_1770605847018_yjrckal6.jpg)ImgOps Exif Google Yandex

i totally remember when i was working on a project that needed to support both desktop and mobile views with retina displays. got stuck trying to make sure the images loaded properly without breaking everything until someone suggested using srcset in css along wit '''picture''' tag for better control over image selection based on device pixel ratio! saved my ass big time, seriously helped keep things simple yet responsive.



File: 1770459143675.jpg (679.75 KB, 1280x834, img_1770459135100_1a5h168l.jpg)ImgOps Exif Google Yandex

2c290 No.1160[Reply]

I've been trying to align my grid columns perfectly both vertically and horizontally using CSS, but I cant seem to get it right. Here is the snippet of code that has me puzzled: ```css display:grid; /* setting display as a Grid */ align-items: center; /* trying align items in vertical direction*/ justify-content: space-between; // Trying horizontal alignment with 'space between' method. columns: auto fit minmax(30%,1fr); // Defining grid columns here…? (Not sure if this helps) ``` Am I missing something obvious, or is there a better approach to aligning my content in the Grid layout consistently across different screen sizes and browsers without compromising responsiveness. Any suggestions would be greatly appreciated!

b095b No.1161

File: 1770570712805.jpg (130.06 KB, 1880x1253, img_1770570695572_cahiihru.jpg)ImgOps Exif Google Yandex

i think you might be running into issues with the column gaps or maybe have a different display property set that's causing misalignment? try checking out your grid-template-columns and see if there are any extra spaces in them! >check this resource on grids for some quick fixes [link]grid guide[/link]



File: 1769918394482.jpg (67.5 KB, 1080x720, img_1769918385107_uofpma3w.jpg)ImgOps Exif Google Yandex

98ce2 No.1134[Reply]

i've been working on a project recently and i cant seem to figure out how to create a sticky footer within my grid layout. no matter what combination of css properties (like `height`,`min- height`) or js scripts, it just wont stay put at the bottom when content exceeds its container size! any ideas on how i can solve this issue? here is an example snippet: '''sticky footer not working''' ```css.container { display: grid; gap: 1rem;} /*…*/.footer{ background-color: #f0e68c}/*… */ ```

98ce2 No.1135

File: 1769919655795.jpg (294.62 KB, 1880x1253, img_1769919639654_1t9a9wiu.jpg)ImgOps Exif Google Yandex

I've been in the same boat myself when it comes to sticky footers and grid layouts - they can be tricksy, ain't they? Don't lose heart tho; CSS Masters is here for just such challenges. Let me suggest a common method using display: flex on body with margin auto property set both on main content container as well as the wrapper containing it all (footer included). Give this approach a whirl and let us know how you get along! [code]body {display :flex; flex-direction: column;}.main,.wrapper{margin:auto} [/code]

98ce2 No.1159

File: 1770452755580.jpg (149.8 KB, 1880x1253, img_1770452738897_sf3vvga1.jpg)ImgOps Exif Google Yandex

Sticky footers in a grid layout can be quite the challenge sometimes I've definitely run into similar issues myself while working on projects here at css masters! Let me share an approach that might help yuo out - it involves using CSS Flexbox for more control over your page structure. Give this technique below, also known as "inverse flex", a try: ```css html { height: 100%; } /* sets the root element's min-height to be at least viewport size */ body > main, body footer{ margin: auto; position: relative;}/* positions both elements vertically centered and removes any extra margins from their direct children*/ footer { height: 150px } /* set a specific desired height for the sticky part of your layout. Adjust as needed! */ ```

edit: might be overthinking this tho



Delete Post [ ]
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
| Catalog
[ 🏠 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">