Css Fixed Center Vertical
css fixed center vertical position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); Source: stackoverflow.com
css fixed center vertical position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); Source: stackoverflow.com
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 */ } css disable text select -webkit-user-select: … Read more
how to center placeholdr text input[type=”text”]::placeholder { /* Firefox, Chrome, Opera */ text-align: center; } /*Must include type=”text” in HTML*/
matinput remove underline ::ng-deep .mat-form-field-underline { display: none; } Source: stackoverflow.com
remove underline hover css a:hover { text-decoration: none; } remove underline on hover span span:hover { text-decoration: none !important; display: inline-block; } how to change hyperlink color in css a { background-color: red; color: white; padding: 1em 1.5em; text-decoration: none; text-transform: uppercase; }
how to remove text selection in css /*Copy below for all browsers */ * { -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: -moz-none; -o-user-select: none; user-select: none; }
linear gradient instagram background: #f09433; background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=’#f09433′, endColorstr=’#bc1888′,GradientType=1 );
css spread children horizontally .container { display: flex; justify-content: space-around; /* OR */ justify-content: space-between; /* OR */ justify-content: space-evenly; }
not last child css p:not(:last-child) { margin-bottom: 20px } css not last child :not(:last-child)
how to make text bold in css .text { font-weight: bold; } how bold text in css p.normal { font-weight: normal; } p.thick { font-weight: bold; } p.thicker { font-weight: 900; } how to bold text css inline <p style=”font-weight:bold”>Hey there</p> css bold /* Keyword values */ font-weight: normal; font-weight: bold; /* Keyword values relative … Read more
css code to make text bold .text { font-weight: bold; } css bold text we can set text bold using css property named ‘font-weight’ Syntax: selector{ font-weight: bold; }
css bold text .text { font-weight: bold; } how bold text in css p.normal { font-weight: normal; } p.thick { font-weight: bold; } p.thicker { font-weight: 900; } how to bold text css inline <p style=”font-weight:bold”>Hey there</p> css bold /* Keyword values */ font-weight: normal; font-weight: bold; /* Keyword values relative to the parent */ … Read more
how to hide the bullet list css /* do this in CSS to hide the bullets from ul list*/ ul { list-style: none; } Source: stackoverflow.com
otf css3 font-face @font-face { font-family: GraublauWeb; src: url(“path/GraublauWeb.otf”) format(“opentype”); } Source: stackoverflow.com
how to center an hr hr { width: 10%; margin: auto; }
change color of bullet points css li::marker { color: red; } /* ^ just set the color of the marker pseudo element */ how to change only bullet color in css li::before {content: “•”; color: red; display: inline-block; width: 1em; margin-left: -1em} Source:www.w3.org how to change only bullet color in css li::before {content: counter(li); color: … Read more
remove underline from hyperlink a, a:hover, a:focus, a:active { text-decoration: none; color: inherit; } how to remove underline from link in html <body> <h2>About</h2> <p> <!– Just add text decoration style:None –> Our <a href=”” style=”text-decoration: none;”>Team</a> </p> </body> how to remove underline from link in html <a href=”http://yoursite.com/” style=”text-decoration:none”>yoursite</a> Source:stackoverflow.com how to remove underline … Read more
remove style from link a, a:hover, a:focus, a:active { text-decoration: none; color: inherit; } remove underline from link css a, a:hover, a:focus, a:active { text-decoration: none; color: inherit; } remove underline html <a style=”text-decoration: none;”></a> how to change hyperlink color in css a { background-color: red; color: white; padding: 1em 1.5em; text-decoration: none; text-transform: uppercase; … Read more
remove styling from a tag a, a:hover, a:focus, a:active { text-decoration: none; color: inherit; } remove style from a tag a { color: inherit; /* blue colors for links too */ text-decoration: inherit; /* no underline */ } Source:stackoverflow.com remove style from a tag a { color: inherit; } Source: stackoverflow.com
css image transform flip mirror /* Flipping/mirroring horizontally */ img { transform: scaleX(-1); } Source:thenewcode.com flip image css .image{ transform: rotateY(180deg); } flip image css img{ transform: rotateY(180deg); }
form field focus border remove css textarea:focus, input:focus{ outline: none; } Source:stackoverflow.com hide input border on focus input:focus{ border: none; }
css remove border input focus textarea:focus, input:focus{ outline: none; } Source:stackoverflow.com hide input border on focus input:focus{ border: none; } remove focus border *:focus { outline: none; } Source:cssf1.com css remove outline element{outline:none;}
how to alternate background colour in html div elements in css /* to color odd children in parent-container with children of type div */ #parent-container > div:nth-child(odd) { background-color:red; } /* to color even children in parent-container with children of type div */ #parent-container > div:nth-child(even) { background-color:red; } Source: stackoverflow.com
button background color remove .button { background-color: Transparent; background-repeat:no-repeat; border: none; }
use .ttf in css @font-face { font-family:”Name-Of-Font”; src: url(“yourfont.ttf”) format(“truetype”); } Source:stackoverflow.com If you’re trying to use a package make sure that ‘../../static/fonts/lato/Lato-Regular.woff’ is installed. If you’re trying to use a local file make sure that the path is correct. /** Use intstead */ @font-face { font-family: ‘MyFont’; src: local(‘MyFont’), url(fonts/MyFont.woff) format(‘woff’); }
remove input styling input { border: none; /* Removes the default border */ } input:focus { outline: none /* Removes the border when the input is clicked */ } remove all input style’ing input { all: unset; } Source: stackoverflow.com
html center video video { margin-left: auto; margin-right: auto; display: block }
how to make fixed background image in css body { background-image: url(“img_tree.gif”); background-repeat: no-repeat; background-attachment: fixed; } html static background body { background-image: url(“img_tree.gif”); background-position: center; background-repeat: no-repeat; background-attachment: fixed; background-size: cover; } how to cover full image in css body { background-position: center; background-repeat: no-repeat; background-size: cover; }
css rotate 90 deg transform: rotate(90deg); rotate div css #id { transform: rotate(20deg); } .class { transform: skewY(20deg); } .exampe { transform: scaleY(1.5); } rotate css div { width: 80px; height: 80px; background-color: skyblue; } .tourne { transform: rotate(45deg); /* Équivalent à rotateZ(45deg) */ background-color: pink; } Source: developer.mozilla.org css transform transform: matrix(1, 2, 3, 4, … Read more
css rotate 180 degrees .rotateimg180 { -webkit-transform:rotate(180deg); -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg); } Source:www.computerhope.com css rotate 90 degrees .my-div{ transform: rotate(90deg); /* rotate x-axis and y-axis */ transform: rotateX(180deg); /* rotate x-axis */ transform: rotateY(180deg); /* rotate y-axis */ }