Skip to main content

Here's what a VPN can't protect you from (but you need to use it)

The abbreviation " VPN " has slowly become established among average Internet users, which is certainly good, but the problem is that people have started to see VPN as the ultimate solution to all problems.

[CSS] Shadow Box

[CSS] Shadow Box

One simple code with which you can add a shadow below a field in CSS.

You can change everything in this Code as you see fit.

To get started, open Notepad (I recommend Notepad ++).

Ok, if so, let's start:

First:

 We add <style> </style> where we define the look in between, ie. we insert the CSS Code

<style>
.box {
    color: #fff; /* text color */
    text-align: center; /* text on the center */
    position:fixed; /* we put box fixed on scroll */
    width:50px;
    height:40px;
    bottom:50%; /* distance from bottom */
	left: 50%; /* distance from left */
	font-size: 20px; /* size of text */
	font-weight: Bold; /* text is bold */
    padding: 30px; /* text padding from all distances */
    background:rgba(0,0,0,0.8); /* background, numbers 1,2,3 are RGB colors, number 4. is opacity */
    -webkit-box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.75); 
    -moz-box-shadow:    0px 0px 15px rgba(0, 0, 0, 0.75);
    box-shadow:         0px 0px 15px rgba(0, 0, 0, 0.75);
}
</style>

0px 0px 15px rgba(0, 0, 0, 0.75);

  • The first number represents how much the shadow will be moved RIGHT (put minus so that the shadow goes LEFT)
  • The second number represents how much the shadow will be moved DOWN (Put minus so that the shadow goes UP)
  • The third number represents how blurry the shadow will be a number - a larger shadow.

Then:

Below all this we add a <div> tag;

<div class=“box“> test </div>

Now we have "invoked" that CSS Code and we can write some text or add a link. Everything you put between <div> and </div> will be in that field.

And finally, it would look like this:

<style>
.box {
    color: #fff;
    text-align: center;
    position:fixed;
    width:50px;
    height:40px;
    bottom:50%;
	left: 50%;
	font-size: 20px;
	font-weight: Bold;
    padding: 30px;
    background:rgba(0,0,0,0.8);
    -webkit-box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.75);
    -moz-box-shadow:    0px 0px 15px rgba(0, 0, 0, 0.75);
    box-shadow:         0px 0px 15px rgba(0, 0, 0, 0.75);
}
</style>
<div class="box"> test </div>

Comments

Popular this month

Make your own SmartCover for any Smart device

You must have heard about the SmartCover accessory that protects the screen of your Smart device. You can buy it and place it on the screen yourself in a few steps and thus protect it from shocks, scratches...and also when you cover the screen, it turns off automatically.

Google has fixed a critical bug

Google patched 11 vulnerabilities within Chrome on Monday, including one of the few bugs the company has identified as critical.

Task Scheduler - Run the program at a specified time

Simple instructions on how to create an "Event" on your computer that will run a program, send an e-mail, show you a notification… With  Task Scheduler , you can also create multiple Events that will run at different times. You can write a reminder and set it to appear on the screen on a specific date. You can also write an email and specify when exactly to send it automatically. Or, if you want, you can set some programs to run at a specific time.

The Internet has 2.1 billion users

After reviewing the statistics for 2011 , the company Pingdom concluded that the number of Internet users recorded a large increase from 360 million users, as recorded at the end of 2000, to 30% of the world's population .

What are Flagship Android phones?

Maybe you've heard from someone, or maybe just on this blog, about the word "Flagship" (in Serbian: flagship) phone, and you don't quite understand what that means. I searched 1200+ posts on this blog and realized that I did not write an article about what Flagship phones are, and I mention them in the texts .