Making DIVs act like a table using CSS

Strange: What you quote looks fine, and should work. Are you sure there is no overriding display: block !important somewhere? But as my opinion, I’m going to say that for the love of God, just use a table. šŸ™‚ Seriously. The main argument for not using tables in such situations is that they aren’t the … Read more

Removing the shadow from a button

Use border-style: .signup-success input[type=”submit”], .signup-success input[type=”submit”]:active, .signup-success input[type=”submit”]:focus { width: 80%; background: transparent; color: #00AA66; border-color: #00AA66; border-style: solid; } or combined version (border-style, border-width and border-color in one): border: 2px solid #00AA66;

Dynamically load google fonts after page has loaded

Check out the WebFont.load command in this github repo: https://github.com/typekit/webfontloader You can load whatever font you want dynamically: <script src=”http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js”></script> <script> WebFont.load({ google: { families: [‘Droid Sans’, ‘Droid Serif’] } }); </script>

How can I change the color of Bootstrap checkbox?

If you use bootstrap and you need to change checkbox background color, just override these styles: .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before { background-color: green!important; } .custom-checkbox .custom-control-input:checked:focus ~ .custom-control-label::before { box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 255, 0, 0.25) } .custom-checkbox .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 1px #fff, … Read more

Can you apply CSS only on text that is wrapped, i.e. the second and subsequent lines?

Yeah, sort of — I’d suggest combining padding-left and text-indent: .test { width:200px; } .test label { display: block; padding-left: 1em; text-indent: -1em; } <div class=”test”> <label for=”2question1″> <input type=”checkbox” id=”2question1″ name=”2question” title=”Merknaam 1″ /> Very long text which is wrapped on the next line </label><br> <label for=”2question2″> <input type=”checkbox” id=”2question2″ name=”2question” title=”Merknaam 2″ /> … Read more

How to get element by its partial class name CSS

In the same way you can do this .class.class2.class3 { /*styles*/ } to target only things that have all 3 classes, you can can combine attribute selectors to do the same: [class*=”mybuttons-button”][class*=”-large”] { /*styles*/ } Granted it won’t work in a case like this: <span class=”my-buttons-button-color-small something-else-large”></span> since it contains both mybuttons-button and -large. If … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)