Make padding responsive

Use percentage as a unit of measurement while making your website responsive. Pixels does not work if you want it to be responsive. If you use percentage, the measurement is taken with respect to the size of the screen. But if you use pixels, the padding remains the same for all sizes. Simply, alter your … Read more

Border Position

There’s a work around, since border represents outer stroke for you, you can make use of outline css property with outline-offset set to negative value to have the inner 1px stroke( 1 ) JS Fiddle Expand snippet ( 1 ) As the above fiddle might not demonstrate the explanation good enough, here’s the same example … Read more

“Uncaught TypeError: a.indexOf is not a function” error when opening new foundation project

I’ve created a new Foundation 5 project through bash, with foundation new my-project. When I open the index.html file in Chrome an Uncaught TypeError: a.indexOf is not a function error is shown in the console, originating in jquery.min.js:4. I created the project following the steps on the foundation site, but I can’t seem to get … Read more

JavaFX css themes

Guigarage provides 3 out-of-the-box styles. AquaFX, a native look & feel for Mac OSX AeroFX, that gives you the look of a Windows Forms app for Windows 7 Flatter, a flat-design gui theme Feel free to complete this list by answering the question.

Rainbow gradient on text in CSS

Here is how you can create basic rainbow linear gradient (without integration with text yet): Expand snippet Or alternatively, you can use one of the gradient generators (I prefer this one). And here is the text integration: Expand snippet Main parts here are background-clip and text-fill-color properties, but be ready, that not all browsers will … Read more

Reset/remove CSS styles for element only

The CSS3 keyword initial sets the CSS3 property to the initial value as defined in the spec. The initial keyword has broad browser support except for the IE and Opera Mini families. Since IE’s lack of support may cause issue here are some of the ways you can reset some CSS properties to their initial … Read more