Flexbox 3 Columns
flexbox 3 columns .parent { display: flex; } .children { flex-basis: calc(100%/3); }
flexbox 3 columns .parent { display: flex; } .children { flex-basis: calc(100%/3); }
css flex center display: flex; align-items: center; justify-content: center; flex center display: flex; align-items: center; justify-content: center; /* order: vertical, horizontal */ flexbox align right and left .primary-nav { display:-webkit-flex; display:flex; list-style-type:none; padding:0; justify-content:flex-end; } .left { margin-right:auto; } Source: stackoverflow.com how center content in css by using flex display: flex; width: 60%; justify-content: center; margin: … Read more
css flex center horizontally and vertically display: flex; align-items: center; justify-content: center;
add image ::before css element::after{ content:url(‘blackCarrot.png’); position:relative; /*or absolute*/ z-index:100000; left:-50px; top:10px; }
css grid two columns div { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; } grid 4 columns 2 rows .container { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, auto); gap: 1.75rem; width: min(90%, 68.5rem); margin-inline: auto; } Source:github.com css grid take 2 columns .wrapper { display: grid; grid-gap: 1rem; grid-template-columns: 1fr 1fr 1fr; grid-auto-flow: dense; … Read more
css hide div on mobile /*I have set the width to 900 you can change it if you want*/ @media(max-width:900px) { div{ visibility: hidden; } }
css list remove dot #my-ul-element { list-style-type: none; padding-left: 0px; } li remove dot css list-style: none
make text unhighlightable #example { user-select:none; }
navbar box shadow box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16); how to give shadow to navbar // How to give shadow to navbar .main-navigation { box-shadow: 0 2px 2px -2px rgba(0,0,0,.2); } Source: generatepress.com
not clickable css input { pointer-events: none; } Source:stackoverflow.com css input not clickable <input disabled=”disabled” /> css not clickable .element { pointer-events: none; }
css wrap text to next line .break-word { word-wrap: break-word; } Source:webdesignerwall.com how to wrap text in div css .example { overflow-wrap: break-word; } Source:css-tricks.com css wrap text to next line white-space: initial;/*or normal*/ Source: stackoverflow.com
artillery annot be loaded because running scripts is disabled on this system Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted Source: stackoverflow.com
yarn start not working on windows because scripts disabled Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted Source: stackoverflow.com
yarn start not working on powershell Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted Source: stackoverflow.com
yarn problem Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted Source: stackoverflow.com
cannot be loaded because running scripts is disabled on this system Set-ExecutionPolicy -ExecutionPolicy Unrestricted Source:stackoverflow.com cannot be loaded because running scripts is disabled on this system Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted Source:stackoverflow.com cannot be loaded because running scripts is disabled on this system Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser Source:stackoverflow.com cannot be loaded because running scripts … Read more
solved – gulp : File C:\Users\Tech\AppData\Roaming\npm\gulp.ps1 cannot be loaded because running scripts is disabled on this system. Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted Source:stackoverflow.com The file \AppData\Roaming\npm\yarn.ps1 is not digitally signed. Remove yarn.ps1 from the directory C:\Users\%username%\AppData\Roaming\npm\ then try clearing the npm cache at C:\Users\%username%\AppData\Roaming\npm-cache\
absolute vertical position css position: absolute; top: 50%; transform: translateY(-50%); centre align in position absolute position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); Source: stackoverflow.com
journalctl last 100 lines journalctl –unit=my.service | tail -n 300 Source: unix.stackexchange.com
background-image: url opacity background-image: url(IMAGE_URL); /* fallback for older browsers */ background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.6) 100%), url(IMAGE_URL); Source: stackoverflow.com set background image opacity #bg{ background-image: url(‘images/wood1.jpg’); opacity:0.2; width:300px; height:300px; } Source: www.formget.com
how to mirror object through css .mirror { transform: scaleX(-1); }
css background image background-image: url(“image.png”); background-position: center; background-repeat: no-repeat; background-size: cover; how to add background in css body { background-image: url(“paper.gif”); background-color: #cccccc; } background image css .wrapper { background: url(‘./images/homeBg.png’) no-repeat; background-size: 100vw; float: left; height: 100vw; width: 100vw; } css background image with url /*This inserts the background*/ .background { background-image: url(‘hellothere.jpg’) } … Read more
why is my footer not at the bottom html #footer { position:fixed; left:0px; bottom:0px; height:30px; width:100%; background:#999; } //name footer id=”footer”
css how to add double shadow to text p{ text-shadow: 2px 2px 2px #ff0000, 4px 4px 2px #00ff00; }
gradient text html h1 { font-size: 72px; background: -webkit-linear-gradient(#eee, #333); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } Source:css-tricks.com text color as gradient css .gradient-text { background-color: #f3ec78; background-image: linear-gradient(45deg, #f3ec78, #af4261); background-size: 100%; -webkit-background-clip: text; -moz-background-clip: text; -webkit-text-fill-color: transparent; -moz-text-fill-color: transparent; } Source:fossheim.io text-color gradient css h1 { font-size: 72px; background: -webkit-linear-gradient(#f3ec78, #af4261); -webkit-background-clip: text; -webkit-text-fill-color: transparent; … Read more
text gradient css h1 { font-size: 72px; background: -webkit-linear-gradient(#eee, #333); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } Source:css-tricks.com text color as gradient css .gradient-text { background-color: #f3ec78; background-image: linear-gradient(45deg, #f3ec78, #af4261); background-size: 100%; -webkit-background-clip: text; -moz-background-clip: text; -webkit-text-fill-color: transparent; -moz-text-fill-color: transparent; } Source:fossheim.io linear gradient on text h1{ font-size: 64px; background-image: linear-gradient(to right, #ba81cf, #6886d4); -webkit-background-clip: text; … Read more
css how to create gradients on text outline h1 { font-size: 72px; background: -webkit-linear-gradient(#eee, #333); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } Source: css-tricks.com
how to set text color in ingredient h1 { font-size: 72px; background: -webkit-linear-gradient(#eee, #333); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } Source: css-tricks.com
add gradient to text css h1 { font-size: 72px; background: -webkit-linear-gradient(#eee, #333); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } Source:css-tricks.com text color as gradient css .gradient-text { background-color: #f3ec78; background-image: linear-gradient(45deg, #f3ec78, #af4261); background-size: 100%; -webkit-background-clip: text; -moz-background-clip: text; -webkit-text-fill-color: transparent; -moz-text-fill-color: transparent; } Source:fossheim.io text-color gradient css h1 { font-size: 72px; background: -webkit-linear-gradient(#f3ec78, #af4261); -webkit-background-clip: text; … Read more
how to use gradient as text color h1 { font-size: 72px; background: -webkit-linear-gradient(#eee, #333); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } Source: css-tricks.com