Not Allow Select Text Css

no select css .noselect { -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Safari */ -khtml-user-select: none; /* Konqueror HTML */ -moz-user-select: none; /* Old versions of Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */ user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Firefox */ } not allow select text css … Read more

Header Center

header center div { width: 100%; height: 200px; display: flex; justify-content: center; align-items: center; background: blue; } text { background: orange; } <div> <text>Centered horizontally and vertically</text> </div> Source: stackoverflow.com how to center a html header h1{text-align: center;}  

Center Nav Bar Css

center nav bar css div#nav{ text-align: center; } div#nav ul{ display: inline-block; } Source:stackoverflow.com menu always center css #nav ul { display: inline-block; list-style-type: none; } Source: stackoverflow.com

Css Trim Text

text overflow ellipsis css div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } css ellipsis max width .text-ellipsis{ display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } Source:stackoverflow.com truncate text css .element{ text-overflow: ellipsis; /* Required for text-overflow to do anything */ white-space: nowrap; overflow: hidden; } css overflow truncate //Truncate text overflow … Read more

Input Checkbox Size Css

input checkbox size input[type=checkbox] { transform: scale(1.5); } Source:stackoverflow.com input checkbox size css input[type=checkbox] { transform: scale(1.5); } <label><input type=”checkbox”> Test</label> css percent scale checkbox // to scale checkboxes with the rest of the page use this: //Note, use width percent, height auto and the scale command inside another div as a ref <div style=”width:100%; … Read more

Transition Prefixes Css

transition prefixes css .example { -webkit-transition: background-color 500ms ease-out 1s; -moz-transition: background-color 500ms ease-out 1s; -o-transition: background-color 500ms ease-out 1s; transition: background-color 500ms ease-out 1s; } /* IE10 (the first stable version of IE to support transition) does not require the -ms- prefix. */ Source: css-tricks.com css browser prefixes Android: -webkit- Chrome: -webkit- Firefox: -moz- Internet … Read more

Install Cors

Install Cors $ npm i express cors Source:javascript.plainenglish.io cors package install npm var express = require(‘express’)var cors = require(‘cors’)var app = express() app.get(‘/products/:id’, cors(), function (req, res, next) {  res.json({msg: ‘This is CORS-enabled for a Single Route’})}) app.listen(80, function () {  console.log(‘CORS-enabled web server listening on port 80’)}) Source:www.npmjs.com cors package install npm var express = require(‘express’)var cors = require(‘cors’)var app = express() app.use(cors()) app.get(‘/products/:id’, function (req, res, next) {  res.json({msg: ‘This is CORS-enabled for all origins!’})}) app.listen(80, function () {  console.log(‘CORS-enabled web server listening on port 80’)}) Source: www.npmjs.com

Trasition Opacity

trasition opacity .fade { opacity: 1; transition: opacity .25s ease-in-out; -moz-transition: opacity .25s ease-in-out; -webkit-transition: opacity .25s ease-in-out; } .fade:hover { opacity: 0.5; } Source: bavotasan.com css opacity transition div { transition: opacity seconds; }

Background-Position

background-position /* Keyword values */ background-position: top; background-position: bottom; background-position: left; background-position: right; background-position: center; /* % length values where 0 is top left */ background-position: 20% 70%; /* absolute length values */ background-position: 0 0; background-position: 1rem 2em; background-position: 10vh 8rem; /* Multiple images */ background-position: 0 0, center; /* Edge offsets values */ … Read more

Add Font Css

how to link fonts css @font-face { font-family: myFirstFont; src: url(sansation_light.woff); } div { font-family: myFirstFont; } /*Name the font-family and link the font file in the @font-face rule*/ add font css @font-face { font-family: Ampersand; src: url(“fonts/ampersand.woff”); } css font face @font-face { // Defining what the font will be called font-family: thisSpecialFont; // … Read more

Font-Weight Css

css bold text .text { font-weight: bold; } font-weight css /* Valeurs avec un mot-clé */ font-weight: normal; font-weight: bold; /* Valeurs relatives à l’élément parent */ font-weight: lighter; font-weight: bolder; /* Valeurs numériques */ font-weight: 1; font-weight: 100; font-weight: 100.6; font-weight: 123; font-weight: 200; font-weight: 300; font-weight: 321; font-weight: 400; font-weight: 500; font-weight: 600; … Read more

Second Child Css

css odd even child tr:nth-child(even) {background: #CCC} tr:nth-child(odd) {background: #FFF} Source:www.w3.org css first child :first-child { //styles here } :nth-child(1) { //the benefit of this is you can do it for 2nd, 3rd etc… //styles here } second child css .YourElementsClass:nth-child(2) { /* your styles */ } nth-child() css /* Selects the second <li> element … Read more

Install Tailwind With Cdn

install tailwind with cdn <link href=”https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css” rel=”stylesheet”> <link href=”https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.0.2/tailwind.min.css” rel=”stylesheet”>

Box Sizing Reset

box sizing reset *, *:before, *:after { box-sizing: border-box; } reset the entire box model * { box-sizing: border-box; } $bodyBg: #030018; $purple: #292477; $green: #13693B; $magenta: #AD2266; $blue: #1a28b3; html { box-sizing: border-box; font-size: 100%; } *, *:before, *:after { box-sizing: inherit; } body { margin: 0; french