CSS

How To Create a Blurry Background Image with CSS

Create a Blurry Background Image with CSS /* The image used */ background-image: url(“photographer.jpg”); /* Add the blur effect */ filter: blur(8px); -webkit-filter: blur(8px); /* Full height */ height: 100%; /* Center and scale the image nicely */ background-position: center; background-repeat: no-repeat; background-size: cover;

Responsive Topnav Example w3schools

Responsive Top Navigation <!DOCTYPE html> <html> <head> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css”> <style> body { margin: 0; font-family: Arial, Helvetica, sans-serif; } .topnav { overflow: hidden; background-color: #333; } .topnav a { float: left; display: block; color: #f2f2f2; text-align: center; padding: 14px 16px; text-decoration: none; font-size: 17px; } .topnav a:hover { background-color: #ddd; […]

Select the last items with nth-child in CSS

:nth-child Select the first list item li:nth-child(1) { } Selects the second element in a list li:nth-child(2) { color: lime; } Selects every fourth element among any group of siblings :nth-child(4n) { color: lime; } Select the 5th list item li:nth-child(5) { } Select every other list item starting with first li:nth-child(odd) { } Select […]

CSS :nth-child() Selector – Useful :nth-child Recipes

CSS :nth-child() Selector Select Only the Fifth Element li:nth-child(5) { color: green; } Select All But The First Five li:nth-child(n+6) { color: green; } Select Only The First Five li:nth-child(-n+5) { color: green; } Select Only The First Five li:nth-child(4n-7) { /* or 4n+1 */ color: green; } Select Only Odd or Even li:nth-child(odd) { […]

Responsive CSS media query

Responsive CSS Add Bellow code to your css bottom area. There are different portal for responsive design. Here we discuss all the pixel size for mobile or tab or desktop section. Remember CSS files priority come by top to bottom. So last css add before header tag gets most priority. Better to add those code […]

How to add background image in CSS

You can use the following to add background image in CSS <style type=”text/css”> body { background-image: url(“paper.gif”); background-color: #cccccc; } /* or */ body { background: lightblue url(“img_tree.gif”) no-repeat fixed center; } </style> Sources: https://www.w3schools.com/cssref/css3_pr_background.asp