---
title: "CSS Logic Gates"
description: "Demonstration implementing AND, OR, NOT, XOR gates plus half adders, full adders and multiplexers using only the CSS if() function."
canonical: "https://vibing.inc/library/css-logic-gates-vg-0333"
category: "Community Finds"
subcategory: "CSS experiments"
license: "free"
author: "Yongseok (@yongsk0066)"
source: "https://yongsk0066.github.io/css_if_logic_gate/"
---

# CSS Logic Gates
Demonstration implementing AND, OR, NOT, XOR gates plus half adders, full adders and multiplexers using only the CSS if() function.
## Facts
- Source: https://yongsk0066.github.io/css_if_logic_gate/
- Category: Community Finds / CSS experiments
- Author: Yongseok (@yongsk0066)
- Licence: free
- Tags: css, if-function, experiment, logic
## Why it's a gem
Best practical demonstration of what CSS if() actually unlocks beyond toy examples
---
Listed in The Vibeary: https://vibing.inc/library/css-logic-gates-vg-0333 · JSON: https://vibing.inc/api/public/library/gems/css-logic-gates-vg-0333