display:table-cell not working on an input element

From W3.org: “CSS 2.1 does not define which properties apply to form controls and frames, or how CSS can be used to style them. User agents may apply CSS properties to these elements. Authors are recommended to treat such support as experimental. A future level of CSS may specify this further.” Sorry, but display: table-cell … Read more

How to determine if CSS has been loaded?

After doing some research and writing up my answer, I stumbled upon this link that explains everything you need to know about CSS, when it is loaded and how you can check for it. The link provided explains it so well, in fact, that I’m adding some quotes from it for future reference. If you’re … Read more

Why doesn’t min-content work with auto-fill or auto-fit?

The second rule doesn’t work because min-content is an intrinsic sizing function. § 7.2.2.1. Syntax of repeat() Automatic repetitions (auto-fill or auto-fit) cannot be combined with intrinsic or flexible sizes. § 11. Grid Sizing An intrinsic sizing function (min-content, max-content, auto, fit-content()). A flexible sizing function [is a dimension with the fr unit].

How do browsers read and interpret CSS?

CSS rendering is an interesting topic and all the competitors are thriving hard to speed up the view layer (HTML and CSS) rendering to deliver the best results to the end users at a blink of an eye. Firstly, yes different browsers have their own CSS parser/Rendering engines Google Chrome, Opera (from version 15) – … Read more

How to Make Select Element be Transparent in Chrome?

select { width:192px; padding:2px; border:none; background:url(http://imgur.com/MJyZM.png) 0 0 no-repeat; -webkit-appearance: none; } <select> <option value=”abcdefg”>abcdefg</option> <option value=”1234567″>1234567</option> <option value=”abcdefg”>abcdefg</option> </select> Not tested on firefox but it seems -webkit-appearance: none; disables specific behaviours webkit can apply.

CSS – Font being blocked from Cross-Origin Resource Sharing Policy

If you don’t have mod_headers enabled you can enabled it with sudo a2enmod headers And then in your VirtualHost or .htaccess # Allow access from all domains for webfonts. # Alternatively you could only whitelist your # subdomains like “subdomain.example.com”. <IfModule mod_headers.c> <FilesMatch “\.(ttf|ttc|otf|eot|woff|font.css|css|woff2)$”> Header set Access-Control-Allow-Origin “*” </FilesMatch> </IfModule>