Subscribe to RSS feed

Warp Shadow using CSS 3

, , , ...

Warp Shadow effect using CSS 3 only.
It’s an old time to create an effect of drop shadow using Photoshop or any other image editing tool for web page.
Thanks to CSS 3 which enable us to apply nice shadow effect through easy way. It increase the speed of page load and downloads the lesser bytes compare to images for shadow effect. In this blog our main focus will be on applying warp shadow effect using CSS 3. Basically there is not any direct style which can be applied as a warp shadow to any block. We are going to apply some trick here, using shadow and border curve.
CSS 3 user must be aware of Box Shadow and border radius.
For more detail visit following links.
Box Shadow: http://www.css3.info/preview/box-shadow/
Border Radius: http://www.css3.info/preview/rounded-border/

Following is the complete code for CSS and HTML.

CSS Code
<style>
.box
{
padding-top: 50px;
padding-bottom: 50px;
padding-left: 100px;
width: 200px;
}
.boxColor
{
background: -webkit-gradient(linear, left top, left bottom, from(#FFDB4D), to(#EABB00));
background: -moz-linear-gradient(top, #FFDB4D, #EABB00);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#FFDB4D’, endColorstr=’#EABB00′);
}
.shadow_box
{
-moz-box-shadow: 0px 10px 5px #9C9C9C;
-webkit-box-shadow: 0px 10px 5px #9C9C9C;
box-shadow: 0px 10px 5px #9C9C9C;
position: relative;
}
.shadow_box span.warp
{
width: 100%;
height: 13px;
position: absolute;
bottom: -26px; /* ~equal to the height + shadow y offset + shadow blur radius */
right: 0px;
box-shadow: 0px -10px 5px #fff;
-moz-box-shadow: 0px -10px 5px #fff;
-webkit-box-shadow: 0px -10px 5px #fff;
border-radius: 50% / 20px;
-moz-border-radius: 50% / 20px;
-webkit-border-radius: 400px 20px;
}
</style>

HTML Code

Warp Shadow


Following screenshot is a result of the above css and html.
.shadow_box css class applies the shadow effect on the div. .shadow_box span.warp css class applies shadow and curved border effect on the span tag and span’s curved shadow overlaps the div’s shadow.




For more detail click here or visit following link:
http://lokeshkhinchi.wordpress.com/2010/12/10/warp-shadow-using-css-3/

Add your own shortcut key functionality in Enhanced rich text box of SharePoint 2010

, , , ...

In SharePoint 2010 we have one more multiline textbox editor type i.e. enhanced rich text box. This RTE provides much more facility to format your content. Many of the functionalities can be performed through short keys of your keyboard. For e.g. to apply Bold style on your selected text one can use “Ctrl + B”, same way to insert hyperlink shortcut key is “Ctrl + K”. Keyboard short cut functionality saves user’s efforts and time to perform certain task. Sometime we might have a requirement to add our own short cut key combination to perform certain functionality in RTE. Here, I am going to demonstrate that how we can insert current date time in RTE at current cursor position using shortcut key combination.

For more detail follow the links
URL=http://blogs.prakashinfotech.com/Lists/Posts/Post.aspx?ID=95
Or
http://lokeshkhinchi.wordpress.com/2010/11/15/add-your-own-shortcut-key-functionality-in-enhanced-rich-text-box-of-sharepoint-2010/