Czyste CSS zwijane (po kliknięciu) kontenery / elementy / cokolwiek.

http://jsfiddle.net/u3Cjz

HTML Kod:

<div id="elem"></div>

<a href="#" class="par cac1">Zakładka 1</a>
<a href="#" class="par cac2">Zakładka 2</a>
<a href="#" class="par cac3">Zakładka 3</a>

<h1 class="zzz1">ELEMENT 1</h1>
<h1 class="zzz2">ELEMENT 2</h1>
<h1 class="zzz3">ELEMENT 3</h1>

Kod CSS:

h1 {display: none; }

a.par:focus {color: red}
a.par.cac1:focus ~ h1.zzz1 { display: block; color: blue }
a.par.cac2:focus ~ h1.zzz2 { display: block; color: blue }
a.par.cac3:focus ~ h1.zzz3 { display: block; color: blue }

Categories

Recent Posts

About Me

Piotr Sikora - Process Automation | AI | n8n | Python | JavaScript

Piotr Sikora

Process Automation Specialist

I implement automation that saves time and money, streamlines operations, and increases the predictability of results. Specializing in process automation, AI implementation, and workflow optimization using n8n, Python, and JavaScript.

n8n Workflows

n8n workflow automation templates

Explore my workflow templates on n8n. Ready-to-use automations for blog management, data collection, and AI-powered content processing.

3Workflow Templates

• Auto-Categorize Blog Posts with AI

• Collect LinkedIn Profiles

• Export WordPress Posts for SEO

Podobne artykuły

Odkryj więcej powiązanych treści

Opanuj instalację SASS z tym szybkim przewodnikiem

Czy kiedykolwiek marzyłeś o zmiennych lub funkcjach w CSS? Najprostszym sposobem na ich uzyskanie jest użycie preprocesora takiego jak SASS.

Pytania rekrutacyjne dla Front-End Developera - Część 1

Niezbędne pytania z CSS i HTML na rozmowę kwalifikacyjną dla front-end developerów. Szybki przewodnik oceny umiejętności dla rekruterów i kandydatów.

Professional CSS autorstwa Piotra Sikory

Minęło dużo czasu... Powinienem opowiedzieć o tej książce.