Skip to main content

2D box shadow using CSS and HTML





The box-shadow CSS property will add a shadow beneath associate degree HTML component thus it's am fond of it is raised on top of the opposite HTML components within the page, virtually like 3D.

The offsetX and offsetY parameters specify what quantity the shadow is to "stick out" from the hypertext mark-up language part. The offsetX parameter specifies the gap on the coordinate axis and also the offsetY specifies the gap on the coordinate axis. you'll use each positive and negative numbers to manage wherever the shadow is displayed.

The box-shadow CSS property takes five parameters. The format seems like this:



<!DOCTYPE html>

<html>

<title>2D</title>

<head>

<style>

div{

 height:200px;

width:200px;

border:2px solidgray;

border-radius:20px;

box-shadow:20px 10px 20px black , 30px 20px 30px green;

background:-webkit-linear-gradient(rgba(200,120,220,0),rgba(200,220,20,1))

 }

 #d1{

-webkit-transform:rotate(45deg);

}

 #d2{

 margin:200px;

 -webkit-transform:scale(2.0,2.0);
  

}

 #d3{

-webkit-transform:translate(50px,50px);
  

}

 #d4{

  -webkit-transform:skew(45deg,40deg);


 }


</style>

</head>

<body>


<div id="d1">d1</div>

<div>d2</div>

<div>d3</div>

<div>d4</div>




</body>

</html>




DOWNLOAD    Source File Here

Comments

Popular posts from this blog

How To Create Image Gallery In HTML Tutorial Part10

Create a photograph gallery, wizard vogue, Associate in Nursingd plant it into any website that accepts hypertext markup language or publish it as an RSS feed. it's conjointly totally compatible with many CMS programs like WordPress, Drupal, Joomla, TypePad, MediaWiki, Ning, Blogger, vBulletin, Weebly, WordPress letter of the alphabet and crony Press. JQuery, Flash templates to make your image galleries. additionally to specifications, a live demo is provided for all listed example. Because plenty of users asked within the comments wherever they will realize a gallery with navigation and slideshow, you'll check my newest tutorial with a whole hypertext markup language image gallery here, which incorporates navigation arrows, bullets, slideshow and thumbnails. Check it out, or if you do not want this advanced image gallery, you'll simply continue reading the straightforward hypertext markup language image gallery beneath the video.   DOWNLOAD  Output File

HOW TO CREATE BORDER USING HTML AND CSS

A border in your hypertext mark-up language pages will facilitate bring attention to an area of text or surround the other hypertext mark-up language component. As is seen below a border is created around any text victimization hypertext mark-up language and CSS on your website. within the example below we've enclosed a paragraph (<p></p>) with a red border. In the on top of code, the fashion is process the border size (px short for pixel), style type, and border color. the fashion of the border is however the border seems on screen. alternative kinds of border designs embrace dotted, dashed, double, groove, ridge, inset, and outset. The border color defines the colour you would like to use for the border. within the on top of example, the colour code #FF0000 was used, that is that the code for red. All of the on top of examples use "inline" designs to make the borders. you'll conjointly use "embedded" vogue sheets or "external...

ALTEA || PARALLAX ONE PAGE HTML5 TEMPLATE

MULTIPURPOSE HTML5/CSS3 RESPONSIVE model Altea may be a paralax one page that comes in three versions (corporate, agency and app landing page) with ten pre-made color schemes. the company version includes a free exclusive custom created Infographics (AI). We accessorial plenty of handfull choices which will assist you create your web site distinctive and ideal for any reasonably project.   LIVE DEMO      DOWNLOAD