</script><linkrel="preload"as="style"href="../dark-legacy.standalone.min.css"><linkrel="preload"as="style"media="(prefers-color-scheme: dark)"href="../dark-legacy.standalone.min.css"><linkrel="stylesheet"id="js-startup-stylesheet"href="../dark-legacy.min.css"><linkrel="stylesheet"id="js-stylesheet"><linkrel="stylesheet"href="style.css"><scriptasyncsrc="https://www.googletagmanager.com/gtag/js?id=UA-116663597-6"></script><script>functiongtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",newDate),gtag("config","UA-116663597-6");</script></head><body><h1>Water.css</h1><p> Water.css is a drop-in collection of CSS styles to make simple websites like this just a little bit nicer. <br> Now you can write your simple static site with nice semantic html, and Water.css will manage the styling for you. </p><divclass="row"><div><ahref="#installation"><b>Get it already!</b></a><br><ahref="https://github.com/kognise/water.css"><b>GitHub</b></a></div><ahref="https://www.producthunt.com/posts/water-css?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-water-css"target="_blank"><imgid="js-producthunt"src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=150490&theme=dark&period=daily"alt="Water.css - Make your tiny website just a little nicer | Product Hunt Embed"style="width:250px;height:54px"width="250px"height="54px"></a></div><h2>Installation</h2><divid="installation"class="version-select"v-cloak=""><headerclass="row version-select__snippet"><h3>Paste this into the <code><head></code> of your HTML:</h3><buttontype="button"class="version-select__snippet__btn"@click="copyToClipboard"><transition><spanv-if="copyStatus === 'success'"class="emoji">✔</span><spanv-else-if="copyStatus === 'failed'"class="emoji">❌</span></transition> Copy to clipboard </button></header><transitionmode="out-in"><pre:key="selectedVersion.fileSnippet"><code>{{selectedVersion.fileSnippet}}</code></pre></transition><h3>Options</h3><formaction="./"method="post"@submit.prevent=""class="version-select__options"><label><inputtype="radio"value="dark"checkedname="theme"v-model="versionOptions.theme"> Dark theme <spanclass="emoji">🌙</span><spanv-if="!versionOptions.isStandalone"class="tooltip emoji opacity-4":class="{'opacity-7': versionOptions.theme === 'dark' && isOverwritten}":title="getTooltipMessage('dark')"> / ☀</span></label><label><inputtype="radio"value="light"name="theme"v-model="versionOptions.theme"> Light theme <spanclass="emoji">☀</span><spanv-if="!versionOptions.isStandalone"class="tooltip emoji opacity-4":class="{'opacity-7': versionOptions.theme === 'light' && isOverwritten}":title="getTooltipMessage('light')"> / 🌙</span></label><detailsclass="version-select__options__additional"><summary><span>Additional options</span></summary><label><inputtype="checkbox"checkedv-model="versionOptions.isStandalone"> Enforce theme? (ignore <code>prefers-color-scheme</code>) </label><label><inputtype="checkbox"v-model="versionOptions.isLegacy"> Support Internet Explorer and other legacy browsers? </label></details></form><tableclass="version-select__info"><caption><h3>Version info</h3></caption><tbody><tr><th>File</th><td>{{ selectedVersion.fileName }}</td></tr><tr><th>Size (min+gzip)</th><td>{{ selectedVersion.fileSize }}KB</td></tr><tr><th>Theme</th><td><templatev-if="versionOptions.isStandalone"><spanv-if="versionOptions.theme === 'dark'"class="emoji">🌙</span><spanv-else=""class="emoji">☀</span> {{ versionOptions.theme | capitalize }} </template><templatev-else=""><spanv-if="versionOptions.theme === 'dark'"class="emoji":title="getTooltipMessage('dark')"> 🌙<spanclass="opacity-4":class="{'opacity-7': isOverwritten}"> / ☀</span></span><spanv-else=""class="emoji":title="getTooltipMessage('light')"> ☀ <spanclass="opacity-4":class="{'opacity-7': isOverwritten}"> / 🌙</span></span> Defaults to {{ versionOptio
</div><h2id="goals">Goals</h2><ul><li>Responsive</li><li>Good code quality</li><li>Good browser support</li><li>Small size (< 2kb)</li><li>Beautiful</li><li>No classes</li></ul><h2id="responsive">Is it responsive?</h2><p><strong>Heck yeah!</strong> It doesn't include any fancy styles so it's easily mobile responsive. Just add the famous <ahref="https://www.w3schools.com/css/css_rwd_viewport.asp">responsive viewport tag</a> and you'll be good to go! </p><p>In fact, try resizing this page. Everything flows super nicely as you'll see.</p><h2id="demo">Element demos</h2><p>This is supposed to be a demo page so we need more elements!</p><h3id="form-elements">Form elements</h3><form><labelfor="email">Email</label><inputtype="email"name="email"id="email"placeholder="john.doe@gmail.com"><labelfor="id">User id (read only)</label><inputreadonlyname="id"id="id"value="04D6H89Z"><labelfor="disabled">Random disabled input</label><inputdisabledname="disabled"id="disabled"placeholder="Because why not?"><labelfor="about">About me</label><textareaname="about"id="about"placeholder="I am a textarea..."></textarea><label>Choose a Doe:</label><div><inputtype="radio"id="john"name="drone"value="john"checked><labelfor="john">John Doe</label></div><div><inputtype="radio"id="jane"name="drone"value="jane"checked><labelfor="jane">Jane Doe</label></div><div><inputtype="radio"id="johnny"name="drone"value="johnny"checked><labelfor="johnny">Johnny Doe</label></div><br><inputtype="checkbox"name="remember"id="remember"checked><labelfor="remember">Remember me</label><inputtype="submit"></form><h3id="code">Code</h3><p> Below is some code, you can copy it with <kbd>Ctrl-C</kbd>. Did you know, <code>alert(1)</code> can show an alert in JavaScript! </p><pre><code>// This logs a message to the console and check out the scrollbar.<br>console.log('Hello, world!')</code></pre><h3id="other">Other</h3><p>Here's a horizontal rule and image because I don't know where else to put them.</p><imgsrc="https://placekitten.com/408/287"alt="Example kitten"><hr><p>And here's a nicely marked up table!</p><table><thead><tr><th>Name</th><th>Quantity</th><th>Price</th></tr></thead><tbody><tr><td>Godzilla</td><td>2</td><td>$299.99</td></tr><tr><td>Mozilla</td><td>10</td><td>$100,000.00</td></tr><tr><td>Quesadilla</td><td>1</td><td>$2.22</td></tr></tbody></table><h3id="typography">Typography</h3><p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque dictum hendrerit velit, quis ullamcorper sem congue ac. Quisque id magna rhoncus, sodales massa vel, vestibulum elit. Duis ornare accumsan egestas. Proin maximus lacus interdum leo molestie convallis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut iaculis risus eu felis feugiat, eu mollis neque elementum. Donec interdum, nisl id dignissim iaculis, felis dui aliquet dui, non fermentum velit lectus ac quam. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. <strong>This is strong,</strong> this is normal, <b>this is just bold,</b><em>and this is emphasized!</em> And heck, <ahref="/">here</a>'s a link. </p><blockquotecite="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote"> "The HTML blockquote Element (or HTML Block Quotation Element) indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see <ahref="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote#Usage_notes">Notes</a> for how to change it). A URL for the source of the quotation may be given using the <code>cite</code> attribute, while a text representation of the source can be given using the <code><cite></code> cite element." <footer><cite>MDN, "The Block Quotation element"</cite></footer></blockquote><ul><li>Unordered list item 1</li><li>Unordered list item 2</li><li>Unordered list item 3</li></ul><ol><li>Ordered list item 1</li><li>Ordered l