When you think of manufacturing in the US, vinyl records probably isn't the first thing that springs to mind, but the industry has been chugging along as best it can. For decades, pressing plants have been using aging machines that require a complex…
Category: Tutorials
Tutorials,freelance,projects,joomla,php,mysql,wordpress,blancer.com
Outstanding modern CSS techniques
In case you’re looking for an agency to create a modern, visually appealing website, check out https://ynd.co/.
Custom variables
CSS variables are a real timesaver when creating a website. Simply define your variables and use them as much as needed in your stylesheet. The code below should be self-explanatory for most of you, but if you need further information feel free to check this quick guide.
<p class="custom-variables">CSS is awesome!</p>
:root {
/* Place variables within here to use the variables globally. */
}
.custom-variables {
--some-color: #da7800;
--some-keyword: italic;
--some-size: 1.25em;
--some-complex-value: 1px 1px 2px whitesmoke, 0 0 1em slategray, 0 0 0.2em slategray;
color: var(--some-color);
font-size: var(--some-size);
font-style: var(--some-keyword);
text-shadow: var(--some-complex-value);
}
Source: Codepen
Color fade on hover
A very easy way to make your links (or any other element) look better.
a {
color: #000;
-webkit-transition: color 1s ease-in; /*safari and chrome */
-moz-transition: color 1s ease-in; /* firefox */
-o-transition: color 1s ease-in; /* opera */
}
a:hover {
color: #c00;
}
Source: Matt Lambert
Pure CSS donut spinner
These spinners are very popular when it comes to letting visitors know that the content is loading. You might be tempted to use an image, but in terms of website speed it is way better to do it using CSS. Nothing complicated here, just take a look at our HTML first:
<div class="donut"></div>
…and the corresponding CSS. Need some more info about CSS keyframes? Here you go!
@keyframes donut-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.donut {
display: inline-block;
border: 4px solid rgba(0, 0, 0, 0.1);
border-left-color: #7983ff;
border-radius: 50%;
width: 30px;
height: 30px;
animation: donut-spin 1.2s linear infinite;
}
Source: Codepen
Fully centered content using Flexbox
Centering content both vertically and horizontally is nowadays very easy using display:flex. Here is how you do it, using some HTML:
<div class="flexbox-centering"> <div class="child">Centered content.</div> </div>
…and the corresponding CSS:
.flexbox-centering {
display: flex;
justify-content: center;
align-items: center;
height: 100px;
}
Source: Codepen
Responsive grid
display:grid makes it easy to create grids. Using the fr unit, the grids can be made responsive in order to fit any kind of display.
Here’s how our grid HTML looks like:
<div class="grid"> <div class="grid-item"></div> <div class="grid-item"></div> <div class="grid-item"></div> <div class="grid-item"></div> </div>
And the CSS:
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 1em;
}
.grid-item {
background-color: orange;
}
Source: Smashing Magazine
Curve text around a floated image
shape-outside is a CSS property that allows geometric shapes to be set, in order to define an area for text to flow around.
.shape {
width: 300px;
float: left;
shape-outside: circle(50%);
}
Source: WebDesigner Depot
Unselectable text
If for some reason you don’t want visitors to be able to select a certain portion of the content, you can use CSS. Although your text will still be selectable if the user displays the page source, I’ve heard so many clients wanting such functions on their website that I’m sure this will be useful to some of you.
Here’s our HTML:
<p class="unselectable">You can't select me!</p>
And some quick and easy CSS:
.unselectable {
user-select: none;
}
Source: Codepen
Verizon and Samsung will release a 5G phone early next year
As providers build out their 5G networks, we'll need devices that can fully take advantage of the upgraded connectivity. As such, Samsung and Verizon are teaming up to release a 5G phone in the US in the first half of next year.
Dutch court rejects man’s attempt to change legal age for Tinder
Last month, Emile Ratelband, a motivational speaker from the Netherlands, asked a Dutch court for a legal age change. His argument was that while he was technically 69 years old, he felt 20 years younger, and that age difference was hurting him both…
What we’re gifting this month: OLED TVs, a Google Home for the parents
Rather than explain what we regret buying in those Black Friday sales, we're taking a forward-thinking approach to the holiday season, and the gifts we're looking to give or receive. Chris Schodt might take the OLED TV dive, while Cherlynn Low is try…
NVIDIA officially unveils its flagship Titan RTX GPU

Shortly after teasing it, NVIDIA has officially unveiled the its top-end GPU, the Titan RTX. As expected, it has 72 Turing RT and 4,608 CUDA cores, up from 68 and 4,352, respectively, over the RTX 2080 Ti. However, this isn't so much a consumer…
New Short Course on File Handling in PHP
{excerpt}
Read More
Best Practices for ARIA Implementation
{excerpt}
Read More
Accessible Apps: Barriers to Access and Getting Started With Accessibility
{excerpt}
Read More
How to Add Festive Christmas Photo Effects in Photoshop
{excerpt}
Read More
InSight lander settles into its Martian ‘sandbox’
Now that the Insight lander has settled in on Mars, scientists are learning more about the spot it's in. With its 7-foot-wide solar panels fully deployed, it has already set a record for the most energy generated in a single day by any lander or rove…
Rumor claims Google Hangouts will shut down in 2020
Stop us if you've heard this one before: there's a report that Google is considering either launching or shutting down a messaging app. 9to5Google said that based on a "source familiar with the product's internal roadmap," Google Hangouts as a consum…
Apple reportedly extends Watch return period for heart feature issues
Apple is reportedly extending its Apple Watch refund window from two weeks to 45 days — but only for returns related to heart health features, including the upcoming electrocardiogram app on Apple Watch Series 4. You'll have to make such refund requ…
Facebook and MIT tap AI to give addresses to people without them
About four billion people in the world are without a physical address. The MIT Media Lab and Facebook are teaming up to create a solution that will use a machine learning algorithm to identify and assign addresses from satellite images. The system wo…
NYC lawmakers want to criminalize sending unwanted dick pics
While Apple's AirDrop feature makes it simple for people to share photos, videos and documents with each other, it unfortunately also makes it really easy for people to anonymously send unsolicited images to others nearby. The technology has opened u…