Questions tagged [css]

This challenge is related to the CSS language. Note that challenges that require the answers to be in a specific language are generally discouraged.

Filter by
Sorted by
Tagged with
1
vote
1answer
188 views

Hiding elements with CSS only [closed]

In the following markup without changing it or using JS, implement the behavior to show only the ul element of div which name is ...
25
votes
8answers
3k views

CSS Color Golf!

You are a web developer, and your boss has decided to update the company's website. He has decided that less color is better, but he wants the site to look the same. You justly decide that he has no ...
8
votes
1answer
399 views

Compute the specificity of a CSS selector

Today, your task is to write a program (or a function) that accepts a string and outputs (or returns) four integers. Input The input string is a CSS3 selector, and can contain basically any Unicode ...
12
votes
4answers
2k views

Worst Abuse of CSS? [closed]

What is some of the coolest/best/worse abuses of CSS? For example, these shapes, or using multiple box-shadows to make pixel art. popularity-contest ending on 16/04/14.
10
votes
7answers
2k views

Random CSS Color code

This blog post about generating random CSS color codes in JavaScript have multiple solutions for generating a random color in JavaScript. The shortest I can find is this: ...
1
vote
3answers
400 views

Unholy Grail Layout (Reverse Holy Grail Layout)

The Holy Grail Layout in CSS, is a full height, 3 column layout which consists of a fluid central column, and two side columns with fixed widths. Your Task is Simple! Reverse it, make a fixed width ...
4
votes
2answers
2k views

Smallest Javascript CSS Selector Engine [closed]

Create a small acceptably efficient JS CSS selector engine. Standard css 2.0 properties should be supported in Firefox 3.0+,Safari , Opera, IE7+, and extra brownie points for IE6 support. Smallest ...