Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: CSS CSS3
I want to fold div
Pic[^]

 
Please have a look on img
   <div class="form">
                        <table>
                            <tr>
                                <td>
                               Having Some Data
                                </td>
                            </tr>
                        </table>
                    </div>
 
i am using this css
.form
{
	position: relative;
	color: #fff;
	background: #FF3300;
	color: Black;
	width: 280px; 
	padding: 10px 40px;
	background: #dddddd;
}
.form:before
{
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	border-width: 0 50px 50px 0;
	border-style: solid;
	border-color: #7A7A7A transparent;
	-webkit-box-shadow: -1px 1px 1px rgba(0,0,0,0.4),-1px 1px 1px rgba(0,0,0,0.2);
	-moz-box-shadow: -1px 1px 1px rgba(0,0,0,0.4),-1px 1px 1px rgba(0,0,0,0.2);
	box-shadow: -1px 1px 1px rgba(0,0,0,0.4),-1px 1px 1px rgba(0,0,0,0.2);
}
 
 
I want on right top it should show background image but it showing Form backcolor
Posted 21-Mar-13 0:33am
Edited 21-Mar-13 3:19am
v3
Comments
sri senthil kumar at 21-Mar-13 6:39am
   
Can you please post the html code?
 
If you have used the image with the div element after closing the div use this form tag or use the form tag inside the div. Then we can easily adjust whatever the way we want...
Member-515487 at 21-Mar-13 8:20am
   
i have take simple div havent taken any Image
Member-515487 at 21-Mar-13 8:23am
   
and just set one background Image i want that Image Part should be shown on
border-color: #7A7A7A transparent;
sri senthil kumar at 28-Mar-13 3:08am
   
you want do only with css or can you use image to bring the fold effect?
Check the this url http://rzimindia.in/AboutUs.aspx you want page fold effect like this? here they have used an image...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 21 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100