Skip to main content

How to add Drop shadow to Elements | Using CSS

CSS provides the box-shadow property which allows us to add drop shadows effects to any elements ,



Here is an example:

HTML Code:
<body>
<div id="shadowBox">
<p>FAQ Web-Development is a blog that intends to share tutorial on HTML,CSS and Jquery.FAQ Web-Development is a blog that intends to share tutorial on HTML,CSS and Jquery.FAQ Web-Development is a blog that intends to share tutorial on HTML,CSS and Jquery.FAQ Web-Development is a blog that intends to share tutorial on HTML,CSS and Jquery.FAQ Web-Development is a blog that intends to share tutorial on HTML,CSS and Jquery.FAQ Web-Development is a blog that intends to share tutorial on HTML,CSS and Jquery.FAQ Web-Development is a blog that intends to share tutorial on HTML,CSS and Jquery.FAQ Web-Development is a blog that intends to share tutorial on HTML,CSS and Jquery.</p>
</div>
</body>


CSS Code:
<style>
             #shadowBox{
width:350px;
height:300px;
margin-left:auto;
margin-right:auto;
border:2px solid #666;
text-align:center;
box-shadow:4px 4px 17px 7px #999;
margin-top:10%;
          }
</style>



    

Comments

  1. Your blog is very useful to all the people especially for Web Developer. So much important information is there in your site and my site is also having valuable information.
    Web Designing Services

    ReplyDelete
    Replies
    1. thanks Harus
      would appreciate if you can like our Facebook page
      cheers,

      Delete
  2. Hi, I went through your this post and found

    really interesting. I landed this page through

    internet search and found
    this page very good.I am a web designer and

    works in a web design

    company

    as a designer I liked the color of your blog

    also.

    Thanks,
    hena

    ReplyDelete

Post a Comment

Thanks for Visiting for any questions or suggestions please comment below
Cheers,

Popular posts from this blog

Adding a button in HTML | styling a button

To add a button in a HTML page use <input> tags and specify the type as button like so
<input type=”button” value=”submit” action=”submit.php”> this code will be rendered in browser like in Figure 1.1
Further more if you wish to style this button we can apply a set of CSS rules to make the buttons look pretty here are a few examples: Download code for these buttons here



CSS Sprites | What are They?

CSS Sprites most web developers should have heard this term, so what is it ?.
CSS Sprite bunch of other images transformed into one Big Image. The origin of the term "sprites" comes from old school computer graphics and the video game industry. The idea was that the computer could fetch a graphic into memory, and then only display parts of that image at a time, which was faster than having to continually fetch new images.

Adding Sprites to our websites helps with webpage performance, since the webpage has to make only one request to the server, which will fetch the Sprite (the Big image) which includes all the other images that you want to use in your webpage. since the server makes only one request your page will load a lot faster compared to conventional way of linking each images separately.

Here is a demo on how to use CSS Sprites. further more there a many Sprite generators online to create CSS Sprites all you have to do is upload a bunch of images to these Online tools a…