Note that there are some explanatory texts on larger screens.

plurals
  1. POReducing HTML semantics of logo graphic
    primarykey
    data
    text
    <p><img src="https://i.stack.imgur.com/dlMj3.png" alt="enter image description here"><br> <a href="http://jsfiddle.net/VRXjc/" rel="nofollow noreferrer"><strong>jsFiddle sample</strong></a></p> <p>I'm looking for the most hipster way to reduce the HTML semantics (css can be big as necessary) this 4 color logo <em>without using pictures</em> anything can change in the structure. Only requirement is that it works in IE8. I am using selectivr and modernizr so most selector classes and such should work. Additionally, I'm using less css so if you can write like that too.</p> <pre><code> &lt;ul class="logo"&gt; &lt;li class="webBG"&gt;&lt;/li&gt; &lt;li class="designBG"&gt;&lt;/li&gt; &lt;li class="videoBG"&gt;&lt;/li&gt; &lt;li class="audioBG"&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>CSS </p> <pre><code>ul.logo{margin: 0 0 0 10px;padding: 0;list-style-type: none;} ul.logo li{display: inline-block; width:5px;height:5px; padding:0;margin:0; float:left;} .designBG{background:#00c8e8} .videoBG{background:#33cc77} .webBG{background:#ec8544} .audioBG{background:#E58} </code></pre> <p><strong>UPDATE FINAL SOLUTION</strong></p> <pre><code>#boilerplate &gt; div{ margin-left:10px; width:20px; height:5px; /*cross browser definitions follow..*/ background-image: -o-linear-gradient(left, #ec8544 0%, #ec8544 25%, #00c8e8 26%, #00c8e8 50%, #33cc77 51%, #33cc77 75%, #Ee5588 76%, #Ee5588 100%); background-image: -moz-linear-gradient(left, #ec8544 0%, #ec8544 25%, #00c8e8 26%, #00c8e8 50%, #33cc77 51%, #33cc77 75%, #Ee5588 76%, #Ee5588 100%); background-image: -webkit-linear-gradient(left, #ec8544 0%, #ec8544 25%, #00c8e8 26%, #00c8e8 50%, #33cc77 51%, #33cc77 75%, #Ee5588 76%, #Ee5588 100%); background-image: -ms-linear-gradient(left, #ec8544 0%, #ec8544 25%, #00c8e8 26%, #00c8e8 50%, #33cc77 51%, #33cc77 75%, #Ee5588 76%, #Ee5588 100%); background-image: linear-gradient(left, #ec8544 0%, #ec8544 25%, #00c8e8 26%, #00c8e8 50%, #33cc77 51%, #33cc77 75%, #Ee5588 76%, #Ee5588 100%); </code></pre> <p>}​</p> <p><strong>HTML</strong></p> <pre><code>&lt;div&gt;&lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload