<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/csstip/best-of/2024/07" -->

---
title: Best CSS Tip posts — July 2024 | daily.dev
description: The most upvoted CSS Tip posts from July 2024, curated by the daily.dev community.
canonical: https://daily.dev/sources/csstip/best-of/2024/07
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/csstip/best-of/2024/07
og:type: website
og:site_name: daily.dev
og:title: Best CSS Tip posts — July 2024 | daily.dev
og:description: The most upvoted CSS Tip posts from July 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of CSS Tip — July 2024

1. 1  
[](https://daily.dev/posts/get-the-screen-width-height-without-javascript-ugq3rqgjv "Get the screen width & height without JavaScript")  
Article  
![Avatar of csstip](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5d335233e7894c2ea997aa89e1724200)CSS Tip · 2y  
Get the screen width & height without JavaScript  
Learn how to obtain screen width and height as pixel values using only CSS, avoiding JavaScript. This method leverages @property and trigonometric functions, providing unitless values that update in real-time upon screen resize.  
211  
12
2. 2  
[](https://daily.dev/posts/inverted-border-radius-using-css-mask-rzsjb5wzh "Inverted border-radius using CSS mask")  
Article  
![Avatar of csstip](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5d335233e7894c2ea997aa89e1724200)CSS Tip · 2y  
Inverted border-radius using CSS mask  
Learn how to use a CSS mask to create an inverted radius corner with minimal code, without the need for extra elements or pseudo-elements, and optimized with CSS variables.  
174  
3

[See all CSS Tip archives](/sources/csstip/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/csstip/best-of/2024/07#page","url":"https://daily.dev/sources/csstip/best-of/2024/07","name":"Best CSS Tip Posts — July 2024","description":"The most upvoted CSS Tip posts from July 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/csstip/best-of/2024/07#items","numberOfItems":2,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/get-the-screen-width-height-without-javascript-ugq3rqgjv","name":"Get the screen width & height without JavaScript"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/inverted-border-radius-using-css-mask-rzsjb5wzh","name":"Inverted border-radius using CSS mask"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"CSS Tip","item":"https://daily.dev/sources/csstip"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/csstip/best-of"},{"@type":"ListItem","position":5,"name":"July 2024"}]}]}
```

