Smooth Scroll To Anchor

smooth scroll to anchor /* Just use Native HTML Smooth Scroll */ html { scroll-behavior: smooth; } smooth scroll css html { scroll-behavior: smooth; } /* No support in IE, or Safari You can use this JS polyfill for those */ http://iamdustan.com/smoothscroll/ javascript smooth scroll to anchor element //add smooth scrolling when clicking any anchor … Read more

Responsive Image In Css

responsive image in css .responsive_img { width: 100%; height: auto; object-fit: cover; /* Prevent the image from stretching. So it crops the image to prevent from awkward stretching */ } CSS Responsive Image <style> #imgx img { float:left; margin:2px; border-radius:7px; display: block; max-width:100%; height:auto; width:100%; } </style> <div id=”imgx” class=”col-xs-12 col-sm-12″ style=”padding-bottom:5px;”>

Css Make Image Gray

css make image gray img { filter: gray; /* IE6-9 */ -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */ filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */ } /* Disable grayscale on hover */ img:hover { -webkit-filter: grayscale(0); filter: none; } Source: stackoverflow.com  

Input Type Search Remove x

input type search remove x /* clears the ‘X’ from Internet Explorer */ input[type=search]::-ms-clear { display: none; width : 0; height: 0; } input[type=search]::-ms-reveal { display: none; width : 0; height: 0; } /* clears the ‘X’ from Chrome */ input[type=”search”]::-webkit-search-decoration, input[type=”search”]::-webkit-search-cancel-button, input[type=”search”]::-webkit-search-results-button, input[type=”search”]::-webkit-search-results-decoration { display: none; } Source: blog.maximerouiller.com  

How To Set Color Of Instagram Css

how to set color of instagram css .fa-instagram { color: transparent; background: -webkit-radial-gradient(30% 107%, circle, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); background: -o-radial-gradient(30% 107%, circle, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); background: … Read more

Css Center Image

css center image .center { display: block; margin-left: auto; margin-right: auto; } mettre une image au milieu css IMG.displayed { display: block; margin-left: auto; margin-right: auto } … <IMG class=”displayed” src=”…” alt=”…”> Source:www.w3.org how to center an image element inside a block in css img { display:block; margin-left: auto; margin-right:auto; } center image css .centerImg … Read more

Rotate Text Css

rotate text css .text { /* Browsers not below */ transform: rotate(-90deg); /* Safari */ -webkit-transform: rotate(-90deg); /* Firefox */ -moz-transform: rotate(-90deg); /* Opera */ -o-transform: rotate(-90deg); /* IE */ -ms-transform: rotate(-90deg); } CSS text rotate transform: rotate(-90deg); -webkit-transform: rotate(-90deg); /* Safari */ -moz-transform: rotate(-90deg); /* Firefox */ -o-transform: rotate(-90deg); /* Opera */ -ms-transform: rotate(-90deg); … Read more

z-Index Max Value

z-index max value z-index: 2147483638; //max value, fully mdoern cross-browser compatible max z index z-index: 2147483638; /* Fully compatible, more doesn’t work */ highest possible z index z-index: 2147483647; max z-index value css /* Max z-index value */ z-index: 2147483647;

How To Not Underline Links In Css

how to not underline links in css a { text-decoration: none; } Source:www.bitdegree.org link text underline css none .link{ color: #FFFFFF; text-decoration: none; } how to not underline links in css a{ text-decoration: none; } Source: programmersportal.com

Rotate Css

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 rotate animation <img class=”image” src=”http://i.stack.imgur.com/pC1Tv.jpg” alt=”” width=”120″ height=”120″> .image { position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; margin:-60px 0 0 -60px; -webkit-animation:spin 4s linear infinite; -moz-animation:spin 4s … Read more

Use Font Awesome As Content In Css

use font awesome as content in css <li> <span class=”font-awesome-icons facebook”></span> Login </li> .facebook::before { font-family: “Font Awesome 5 Brands”; font-weight: 400; content: “\f09a”; } Source: www.angularjswiki.com use font awesome as content in css <li> <span class=”font-awesome-icons facebook”></span> Login </li> .facebook::before { font-family: “Font Awesome 5 Brands”; font-weight: 400; content: “\f09a”; }  

Connect Html File To Css

how to link css to html <link rel=”stylesheet” href=”styles.css”> connect html file to css <head> <link rel=”stylesheet” href=”styles.css”> </head> adding css to html <head> <!– Linking external Css document –> <link rel=”stylesheet” href=”styles.css”> <!– Writing Css inside HTML element –> <style> … </style> </head> how to link css to html <link rel=”stylesheet” href=”PathToYourFile.css”> how to … Read more

Bootstrap 4 Center Image

bootstrap 4 center image /* used mx-auto d-block */ <img class=”mx-auto d-block” src=”https://www.w3schools.com/bootstrap4/paris.jpg” alt=”https://www.w3schools.com/bootstrap4/paris.jpg”/> bootstrap class align center image class=”mx-auto d-block”

Vertically And Horizontally Center A Fixed Div

vertically and horizontally center a fixed div // you dont need to know the divs dimensions and it does not require any container divs position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); Source:stackoverflow.com center a fixed div horizontally left: 50%; transform: translateX(-50%);