Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to fold div
Pic[^]


Please have a look on img
HTML
<div class="form">
                     <table>
                         <tr>
                             <td>
                            Having Some Data
                             </td>
                         </tr>
                     </table>
                 </div>

i am using this css
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
Updated 21-Mar-13 2:19am
v3
Comments
sri senthil kumar 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 21-Mar-13 8:20am    
i have take simple div havent taken any Image
Member-515487 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 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900