CSS Font Border?

There’s an experimental CSS property called text-stroke, supported on some browsers behind a -webkit prefix. h1 { -webkit-text-stroke: 2px black; /* width and color */ font-family: sans; color: yellow; } <h1>Hello World</h1> Another possible trick would be to use four shadows, one pixel each on all directions, using property text-shadow: h1 { /* 1 pixel … Read more

CSS media queries: max-width OR max-height

Use a comma to specify two (or more) different rules: @media screen and (max-width: 995px), screen and (max-height: 700px) { … } From https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries Commas are used to combine multiple media queries into a single rule. Each query in a comma-separated list is treated separately from the others. Thus, if any of the queries in … 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

Import regular CSS file in SCSS file?

After having the same issue, I got confused with all the answers here and the comments over the repository of sass in github. I just want to point out that as December 2014, this issue has been resolved. It is now possible to import css files directly into your sass file. The following PR in … 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

What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?

Updated 2020… Bootstrap 5 In Bootstrap 5 (alpha) there is a new -xxl- size: col-* – 0 (xs) col-sm-* – 576px col-md-* – 768px col-lg-* – 992px col-xl-* – 1200px col-xxl-* – 1400px Bootstrap 5 Grid Demo Bootstrap 4 In Bootstrap 4 there is a new -xl- size, see this demo. Also the -xs- infix … Read more

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