HTML input – name vs. id [duplicate]

In HTML4.01: Name Attribute Valid only on <a>, <form>, <iframe>, <img>, <map>, <input>, <select>, <textarea> Name does not have to be unique, and can be used to group elements together such as radio buttons & checkboxes Can not be referenced in URL, although as JavaScript and PHP can see the URL there are workarounds Is … Read more

Embedding Base64 Images

Update: 2017-01-10 Data URIs are now supported by all major browsers. IE supports embedding images since version 8 as well. http://caniuse.com/#feat=datauri Data URIs are now supported by the following web browsers: Gecko-based, such as Firefox, SeaMonkey, XeroBank, Camino, Fennec and K-Meleon Konqueror, via KDE’s KIO slaves input/output system Opera (including devices such as the Nintendo … Read more

How to vertically align text inside a flexbox?

Instead of using align-self: center use align-items: center. There’s no need to change flex-direction or use text-align. Here’s your code, with one adjustment, to make it all work: ul { height: 100%; } li { display: flex; justify-content: center; /* align-self: center; <—- REMOVE */ align-items: center; /* <—- NEW */ background: silver; width: 100%; … Read more

Minimum and maximum value of z-index?

http://www.w3.org/TR/CSS21/visuren.html#z-index ‘z-index’ Value: auto | <integer> | inherit http://www.w3.org/TR/CSS21/syndata.html#numbers Some value types may have integer values (denoted by <integer>) or real number values (denoted by <number>). Real numbers and integers are specified in decimal notation only. An <integer> consists of one or more digits “0” to “9”. A <number> can either be an <integer>, or … Read more