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

SOPA and PIPA are slowly losing support, the protest yielded results

Controversial U.S. anti-piracy laws, known by the acronyms SOPA and PIPA lost the support of eight members of Congress after major protests by the Internet community. Support was denied, among others, by Marco Rubio of Florida, a rising star of the Republican Party, and his party colleague Roy Blunt of Missouri - who were among the signatories of the bills.

New Google mobile internet saving application - Datally

I wrote an article on how to save internet traffic on an Android device and I suggested the Onavo Extend and Opera Max apps because they were the most popular back then. Meanwhile, Opera Max has been discontinued and Onavo has been completely redesigned and is now a VPN application with the option to save internet traffic. Their compression technology is probably now used by Facebook in its application because they bought Onavo - link . Google has decided to seize the opportunity and "push" with a new application called " Datally ".

Twitter is celebrating its sixth birthday

Exactly six years ago, one of the founders of Twitter posted his first tweet - " just setting up my twttr ". Although the popularity of this service was modest in the first few years, today Twitter has over 500 million users who send tweets, and messages 140 characters long.

How to change IMEI number on Android phone?

IMEI is an abbreviation of "international mobile equipment identity" and each mobile phone should have a unique IMEI number. You cannot change this number with the operator, but you can temporarily change it on your device. It allows the operator to accurately identify your device and thus enable/disable network services. Also, you can use the possibility of changing the IMEI number, at least for a short time, if you know exactly what you want, but I leave those ideas to you because this is an educational article.

Google AI game recognizes and learns what you draw!

Artificial intelligence (AI) is quite popular nowadays and is being used more and more intensively. Google has, I can say, the most developed so far and is available to end-users (at least one part). We had a chance to see how it is integrated into the new Google Assistant that has replaced Google Now.