<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CSS &#8211; TUTORIALS PAGE</title>
	<atom:link href="https://tutorialspage.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>https://tutorialspage.com</link>
	<description>Free tutorials and daily notes</description>
	<lastBuildDate>Sun, 08 Oct 2023 21:21:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">105742871</site>	<item>
		<title>Create a modal window using pure HTML5 and CSS3</title>
		<link>https://tutorialspage.com/create-modal-window-pure-html5-css3/</link>
					<comments>https://tutorialspage.com/create-modal-window-pure-html5-css3/#comments</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Sat, 14 Jan 2017 11:51:33 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">http://2.0webtutorials.com/?p=910</guid>

					<description><![CDATA[In this tutorial we will create a modal window using only HTML5 and CSS3 properties. The techniques used to create a functional modal box are CSS3’s transition, opacity, pointer-event, and background gradient properties. Modal windows are used, among many others, to display login/register forms; advertisements; or just notifications to the user. They frequently contain critical &#8230; <a href="https://tutorialspage.com/create-modal-window-pure-html5-css3/" class="more-link">Continue reading<span class="screen-reader-text"> "Create a modal window using pure HTML5 and CSS3"</span></a>]]></description>
										<content:encoded><![CDATA[<p>In this tutorial we will create a <strong>modal window</strong> using only <strong>HTML5</strong> and <strong>CSS3</strong> properties. The techniques used to create a functional modal box are <strong>CSS3</strong>’s transition, opacity, pointer-event, and background gradient properties.<br />
<span id="more-1346"></span><br />
<strong>Modal windows</strong> are used, among many others, to display login/register forms; advertisements; or just notifications to the user. They frequently contain c<strong>ritical information</strong>, that user must attend in order to return to the page.</p>
<p>This <strong>modal windows</strong> or <strong>modal boxes</strong> are normally created using Javascript, but we will create one using pure <strong>HTML5</strong> and <strong>CSS3</strong>.</p>
<p>Here is the HTML code for the modal window:</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;a href="#openModal"&gt;Click me to open modal window&lt;/a&gt;</pre><p>We use this simple link that says “<em>Click me to open modal window</em>” to open the dialogue box. All the styling is done with classes, so the ID is just a<strong> hook for opening the modal box</strong>.</p>
<p>Here is a simple version of the modal window.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;div id="openModal" class="modalWindow"&gt;
	&lt;div&gt;
		&lt;h2&gt;This is a sample modal window&lt;/h2&gt;
		&lt;p&gt;This is a sample modal window that can be created using CSS3 and HTML5.&lt;/p&gt;
		&lt;a href="#ok" title="Ok" class="ok"&gt;Ok&lt;/a&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre><p>With his corresponding CSS:</p><pre class="urvanov-syntax-highlighter-plain-tag">.modalWindow {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.2);
z-index: 99999;
opacity:0;
pointer-events: none;
text-align:center;
}
.modalWindow:target {
opacity:1;
pointer-events: auto;
}
.modalWindow &gt; div {
width: 500px;
position: relative;
margin: 10% auto;
background: #fff;
}</pre><p></p>
<p style="margin: 20px;"><a style="font-size: 16px; font-weight: bold; margin: 20px;" title="See simple demo of the HTML5 and CSS3 modal window" href="/files/html5-css3-modal-window/modal_window_simple.html" target="_blank">See simple demo</a> | Click view source code to see the awesome code</p>
<h2>Start Styling the HTML and CSS modal window &#8211; <a style="font-size: 16px; font-weight: bold;" title="See simple demo of the html5 and css3 modal window" href="/files/html5-css3-modal-window/modal_window.html" target="_blank">See final result</a></h2>
<p>But the cool stuff comes with some <em>aditional styling</em>. So here is the complete HTML for a styled <strong>modal window</strong>:</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;div id="openModal" class="modalWindow"&gt;
	&lt;div&gt;
		
		&lt;div class="modalHeader"&gt;
			&lt;h2&gt;This is a sample modal window&lt;/h2&gt;
			&lt;a href="#close" title="Close" class="close"&gt;X&lt;/a&gt;
		&lt;/div&gt;
		
		&lt;div class="modalContent"&gt;
			&lt;p&gt;This is a sample modal window that can be created using CSS3 and HTML5.&lt;/p&gt;
			&lt;p&gt;Modal windows are used, among many others, to display login/register forms; advertisements; or just notifications to the user. They frequently contain critical information, that user must attend in order to return to the page.&lt;/p&gt;
		&lt;/div&gt;
		
		&lt;div class="modalFooter"&gt;
			&lt;a href="#cancel" title="Cancel" class="cancel"&gt;Cancel&lt;/a&gt;
			&lt;a href="#ok" title="Ok" class="ok"&gt;Apply&lt;/a&gt;
			&lt;p&gt;Keep in mind that this is a demo&lt;/p&gt;
			&lt;div class="clear"&gt;&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre><p>And Here is the complete CSS for out CSS3 modal window:</p><pre class="urvanov-syntax-highlighter-plain-tag">.modalWindow {
position: fixed;
font-family: arial;
font-size:80%;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.2);
z-index: 99999;
opacity:0;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
pointer-events: none;
}
.modalHeader h2 { color: #189CDA; border-bottom: 2px groove #efefef; }
.modalWindow:target {
opacity:1;
pointer-events: auto;
}
.modalWindow &gt; div {
width: 500px;
position: relative;
margin: 10% auto;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background: #fff;
}
.modalWindow .modalHeader { padding: 5px 20px 0px 20px; }
.modalWindow .modalContent { padding: 0px 20px 5px 20px; }
.modalWindow .modalFooter { padding: 8px 20px 8px 20px; }
.modalFooter {
background: #F1F1F1;
border-top: 1px solid #999;
-moz-box-shadow: inset 0px 13px 12px -14px #888;
-webkit-box-shadow: inset 0px 13px 12px -14px #888;
box-shadow: inset 0px 13px 12px -14px #888;
}
.modalFooter p {
color:#D4482D;
text-align:right;
margin:0;
padding: 5px;
}
.ok, .close, .cancel {
background: #606061;
color: #FFFFFF;
line-height: 25px;
text-align: center;
text-decoration: none;
font-weight: bold;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
-moz-box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
box-shadow: 1px 1px 3px #000;
}
.close {
position: absolute;
right: 5px;
top: 5px;
width: 22px;
height: 22px;
font-size: 10px;

}
.ok, .cancel {
width:80px;
float:right;
margin-left:20px;
}
.ok:hover { background: #189CDA; }
.close:hover, .cancel:hover { background: #D4482D; }
.clear { float:none; clear: both; }</pre><p>This is just a demo so feel free to destroy it an make it your own. You can also send me some photo of your awesome modal window, or even <strong>share the code</strong> for it if you want. So here is how mine looks like.</p>
<p><img data-recalc-dims="1" fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-926" src="https://i0.wp.com/2.0webtutorials.com/wp-content/uploads/Imagen-21.png?resize=615%2C326" alt="CSS3 modal window" width="615" height="326" /></p>
<p style="margin: 20px;"><a style="font-size: 16px; font-weight: bold;" title="See simple demo of the html5 and css3 modal window" href="/files/html5-css3-modal-window/modal_window.html" target="_blank">See styled demo</a> | Click view source code to see the awesome code</p>
<h3>Pros and Cons</h3>
<p>As you&#8217;ve probably noticed, the big deal is creating a <strong>modal window in HTML5 and CSS3</strong>. Why is that such a big deal though? Modal boxes in JavaScript are something a beginner could create, there are hundreds of examples and downloads ready to be used. So why do we want to scrap JavaScript in favour of HTML5 and CSS3?</p>
<p>It would be naive for us to say that one selling point is making sure people with JavaScript can use them; statistics show that only 2% of people worldwide browse without JavaScript, so if that is not an issue, what is?</p>
<p>If you compare this code to any JavaScript animation library you will be shocked to see how much this code is minimized. This means that we have cleaner code witch makes it easier to modify the CSS and HTML.</p>
<p>Besides<strong> HTML5 and CSS3</strong> are the future. Everybody is working to implement them into their designs and projects, and using them helps perpetuate its adoption and ensures you don’t get left behind. You get cleaner code, you don’t have to worry about JavaScript libraries. <strong>HTML5 and CSS3</strong> aren&#8217;t going anywhere, so there’s no reason not to use them.</p>
<p>The big con of the<strong> modal window created using HTML5 CSS3</strong> is the compatibility issues with some old browsers. But essentially works in anything, including all mobile browsers, except IE7 and IE8.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/create-modal-window-pure-html5-css3/feed/</wfw:commentRss>
			<slash:comments>13</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1346</post-id>	</item>
		<item>
		<title>PrettyPhoto Minimal Theme &#8211; a pure CSS prettyPhoto simple theme</title>
		<link>https://tutorialspage.com/pretty-photo-minimal-theme-a-pure-css-prettyphoto-simple-theme/</link>
					<comments>https://tutorialspage.com/pretty-photo-minimal-theme-a-pure-css-prettyphoto-simple-theme/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Thu, 10 Mar 2016 13:59:38 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=1250</guid>

					<description><![CDATA[I have recently used prettyPhoto for a project and I have to admit that it is a great tool to have in hand when it comes to modal pop-ups. It has lots of types of content support and it is really simple to customize. prettyPhoto also comes with lots of features and 5 built-in themes&#8230; light_rounded dark_rounded &#8230; <a href="https://tutorialspage.com/pretty-photo-minimal-theme-a-pure-css-prettyphoto-simple-theme/" class="more-link">Continue reading<span class="screen-reader-text"> "PrettyPhoto Minimal Theme &#8211; a pure CSS prettyPhoto simple theme"</span></a>]]></description>
										<content:encoded><![CDATA[<p>I have recently used prettyPhoto for a project and I have to admit that it is a great tool to have in hand when it comes to modal pop-ups.</p>
<p>It has lots of types of content support and it is really simple to customize. <strong>prettyPhoto </strong>also comes with lots of features and 5 built-in <strong>themes</strong>&#8230;</p>
<ul>
<li>light_rounded</li>
<li>dark_rounded</li>
<li>light_square</li>
<li>dark_square</li>
<li>facebook</li>
<li>pp_default</li>
<li>minimal theme &#8211; <span style="color: #808080;">which will add here with <strong>minimal and pure CSS</strong></span></li>
</ul>
<p>&#8230;which you can easily change via JavaScript customization. But this is not the subject of this tutorial.</p>
<p>I prefer a default <strong>minimal and simple theme for prettyPhoto</strong> and the ability to add stuff if I need it and not the opposite. So this is my little CSS to create a <strong>simple theme for prettyPhoto</strong><span id="more-1250"></span></p>
<p>Please note that this theme is beta version and you should check that everything is OK before any production deployment. You can also remove all other themes if you do not need them, for a light weight code.</p>
<h2>What you will download with the Minimal prettyPhoto theme</h2>
<p>So with theme you will get the following:</p>
<ul>
<li>Minimal theme for prettyPhoto lightbox</li>
<li>Really simple and minimal aspect</li>
<li>No images have been used and I mean no images, including no sprites and no encoded images in the CSS.</li>
<li>1 and only HTTP requests to load the theme CSS file (like I said, no images are used). The default theme uses 22 requests to 7 image files of about 20KB (all).</li>
<li>Smaller CSS file size only 5KB for the compressed version.</li>
</ul>
<blockquote><p>so this is all about speed, after all.</p></blockquote>
<p>So all this, smaller file size and less HTTP requests translate into faster speed when talking about page loading.</p>
<p>Note, that you can bundle this theme into the prettyPhoto main CSS files and remove all other themes if you do not need them.</p>
<p>But if you don&#8217;t insert the theme into the main CSS you will still have a fast loading theme, since the browser will not load images in the CSS that are not used. I will not blame you if you don&#8217;t bundle the files together, I also prefer to keep things separate, just in case you need to update.</p>
<p>You can include the theme in a separate CSS file like this</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" /&gt;
&lt;link rel="stylesheet" href="css/prettyPhoto.minimal.css" type="text/css" /&gt;</pre><p>You can include it in any order. It will work.</p>
<p>This is all you have to do to have your minimal theme for prettyPhoto available. You can now go and activate it via prettyPhoto standard function:</p><pre class="urvanov-syntax-highlighter-plain-tag">$(document).ready(function(){
    $(".gallery a[rel^='prettyPhoto']").prettyPhoto({
        theme:'minimal'
    });
});</pre><p>Scrool a little bit to see a live working version of the prettyPhoto minimal theme and download the CSS files from GitHub.</p>
<h3>PrettyPhoto Minimal theme Demo</h3>
<p class='codepen'  data-height='533' data-theme-id='0' data-slug-hash='grMpGr' data-default-tab='result' data-animations='run' data-editable='' data-embed-version='2' data-preview='true'>
</p>

<h3>Download Minimal theme for prettyPhoto lightbox</h3>
<p>You can find the minimal prettyPhoto theme on GitHub here:</p>
<p><a href="https://gist.github.com/catalin586/12ff5f68ceaba74e9c3d">https://gist.github.com/catalin586/12ff5f68ceaba74e9c3d</a></p>
<h3>Credits &#8211; Here is what I have used for the Minimal theme</h3>
<p>The SpinKit to create a simple CSS loader instead of calling a gif image:  <a href="https://github.com/tobiasahlin/SpinKit">https://github.com/tobiasahlin/SpinKit</a></p>
<p>Some pure CSS icons. I use it for the expand/contract buttons. It works well on IE also. <a href="http://nicolasgallagher.com/pure-css-gui-icons/">http://nicolasgallagher.com/pure-css-gui-icons/</a></p>
<p>Some styling for small screens. It&#8217;s not perfect but it&#8217;s the best I could came up with. <a href="http://themeforest.net/forums/thread/prettyphoto-styling-for-small-screens/66783">http://themeforest.net/forums/thread/prettyphoto-styling-for-small-screens/66783</a></p>
<p>And the prettyPholo lightbox that you can download it from the main site here: <a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/">http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/pretty-photo-minimal-theme-a-pure-css-prettyphoto-simple-theme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1250</post-id>	</item>
		<item>
		<title>The easy way to clear floats. Clearfix div using simple CSS3</title>
		<link>https://tutorialspage.com/the-easy-way-to-clear-floats-clearfix-div-using-simple-css3/</link>
					<comments>https://tutorialspage.com/the-easy-way-to-clear-floats-clearfix-div-using-simple-css3/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Fri, 02 Aug 2013 22:07:21 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=733</guid>

					<description><![CDATA[This easy clearing method uses a clever CSS pseudo selector (:after) to clear floats. Rather than setting the overflow on the parent, you apply an additional class like &#8220;clearfix&#8221; to it. Then apply this CSS: [crayon-69f0b7068e838859118706/] This will apply a small bit of content, hidden from view, after the parent element which clears the float. &#8230; <a href="https://tutorialspage.com/the-easy-way-to-clear-floats-clearfix-div-using-simple-css3/" class="more-link">Continue reading<span class="screen-reader-text"> "The easy way to clear floats. Clearfix div using simple CSS3"</span></a>]]></description>
										<content:encoded><![CDATA[<p>This easy clearing method uses a clever CSS pseudo selector (:after) to clear floats. Rather than setting the overflow on the parent, you apply an additional class like &#8220;clearfix&#8221; to it. Then apply this CSS:</p><pre class="urvanov-syntax-highlighter-plain-tag">.clearfix:after {
    content: ".";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}</pre><p>This will apply a small bit of content, hidden from view, after the parent element which clears the float. This isn&#8217;t quite the whole story, as additional code needs to be used to accommodate for older browsers.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/the-easy-way-to-clear-floats-clearfix-div-using-simple-css3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">733</post-id>	</item>
		<item>
		<title>Cool CSS animation effects using transitions, rotations and postioning</title>
		<link>https://tutorialspage.com/css-animation-effects-using-transitions-rotations-postioning/</link>
					<comments>https://tutorialspage.com/css-animation-effects-using-transitions-rotations-postioning/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Mon, 26 Mar 2012 12:12:29 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Css3 & Html5]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=1480</guid>

					<description><![CDATA[This is not a tutorial about CSS transition effect and does no pretend to show the functionality of this CSS property. But anyway, if few words the css transition effect provide a way to control the speed of animation changes to CSS properties. For example, if you change the color of an element from white &#8230; <a href="https://tutorialspage.com/css-animation-effects-using-transitions-rotations-postioning/" class="more-link">Continue reading<span class="screen-reader-text"> "Cool CSS animation effects using transitions, rotations and postioning"</span></a>]]></description>
										<content:encoded><![CDATA[<p>This is not a tutorial about <strong>CSS transition effect</strong> and does no pretend to show the functionality of this CSS property. But anyway, if few words the css transition effect provide a way to <em>control the speed of animation</em> changes to CSS properties.</p>
<p>For example, if you change the color of an element from white to black, normally the change is instantaneous. With CSS transitions enabled, the change occurs over an interval of time you can specify, following an acceleration curve you can customize.<br />
<span id="more-1480"></span></p>
<p>So lets return to the beautiful transition effect i was telling you. I´ve just seen this effect on Joomla control panel and I thought its just awesome. If you are using Joomla you know what I&#8217;m talking about. If not, here you can <a title="See css demo" href="http://2.0webtutorials.com/files/joomla-icon-hover-effect/">see a demo</a>. So I tried to reproduce the transition effect on mouse hover. The css properties I use to achieve this cool effect are:</p>
<ul>
<li>css transition</li>
<li>css border shadow</li>
<li>css border radius</li>
</ul>
<p>and added</p>
<ul>
<li>css rotate</li>
<li>css positioning</li>
<li>css before</li>
<li>css after</li>
</ul>
<p>Like I said Joomla uses a t<strong>ransition for the shadow and border</strong> properties to achieve the on <em>hover animation</em>, but I played a little bit more adding r<strong>otate effect</strong>, <strong>position animation</strong>, and I combined with a strange effect using the css &#8220;<em>before</em>&#8221; and &#8220;<em>after</em>&#8221; properties.</p>
<p>Please note that the CSS transition property is still in draft and is not supported by Internet Explorer. On the other hand, Firefox requires the prefix -moz-, Chrome and Safari requires the prefix -webkit- Opera requires the prefix -o-.</p>
<p>Playing around with CSS properties like &#8220;after&#8217; and &#8220;before&#8221; it turn out to be peaty awesome. I have also did some testing with the &#8220;rotate&#8221; css property witch is quite cool.</p>
<p>See it for your self. Here is the CSS code:</p><pre class="urvanov-syntax-highlighter-plain-tag">#mylist div {float: left;}

.bg1 {background: url(http://tutorialspage.com/wp-content/uploads/2017/04/CSS3-logo.jpg) center center no-repeat; width:200px; height:150px;}
.bg2 {background: url(http://tutorialspage.com/wp-content/uploads/2017/04/android-logo.jpg) center center no-repeat; width:200px; height:150px;}
.bg3 {background: url(http://tutorialspage.com/wp-content/uploads/2017/04/css3_logo.jpg) center center no-repeat; width:200px; height:150px;}
.bg4 {background: url(http://tutorialspage.com/wp-content/uploads/2017/04/logo-html5-css3.jpg) center center no-repeat; width:200px; height:150px;}

.position {
	position:relative;
	top:0;
}
.border {	
	border:#CCCCCC 1px solid;
	-webkit-border-radius: 5px;/* WebKit */
	 -khtml-border-radius: 5px;/* Firefox */
	   -moz-border-radius: 5px;/* Opera */
			border-radius: 5px;/* Standard */
}
.transition {	
	-webkit-transition: all 1s ease;/* WebKit */
	   -moz-transition: all 1s ease;/* Firefox */
		 -o-transition: all 1s ease;/* Opera */
			transition: all 1s ease;/* Standard */				
}
.position:hover {
	position:relative;
	top:-10px;
}
.rotate:hover {
	-webkit-transform: rotate(10deg);/* WebKit */
	   -moz-transform: rotate(10deg);/* Firefox */
		 -o-transform: rotate(10deg);/* Opera */
			 ransform: rotate(10deg);/* Standard */
}
.rotate360:hover {
	-webkit-transform: rotate(370deg);/* WebKit */
	   -moz-transform: rotate(370deg);/* Firefox */
		 -o-transform: rotate(370deg);/* Opera */
			 ransform: rotate(370deg);/* Standard */
}
.shadow:hover {		 
	-webkit-box-shadow: -10px 10px 35px #888;/* WebKit */
	   -moz-box-shadow: -10px 10px 35px #888;/* Firefox */
		 -o-box-shadow: -10px 10px 35px #888;/* Opera */
			box-shadow: -10px 10px 35px #888;/* Standard */
}
.border:hover {
	-webkit-border-bottom-left-radius:70px 20px;/* WebKit */
	   -moz-border-bottom-left-radius:70px 20px;/* Firefox */
		 -o-border-bottom-left-radius:70px 20px;/* Opera */
			border-bottom-left-radius:70px 20px;/* Standard */
}

.before::before {
	background-color:none;
	background-image:url(http://tutorialspage.com/wp-content/uploads/2017/04/screw.png);
	background-repeat:no-repeat;
	background-position:center center;
	content:"";
	width:20px;
	height:20px;
	position:absolute;
	right:15px;
	top:50%;
	margin-top:-12px;

	-webkit-border-radius: 50%;/* WebKit */
	   -moz-border-radius: 50%;/* Firefox */
		 -o-border-radius: 50%;/* Opera */
			border-radius: 50%;/* Standard */	
	
	-webkit-box-shadow: inset 0px 1px 0px #052756, 0px 1px 0px #60c9f0;/* WebKit */
	   -moz-box-shadow: inset 0px 1px 0px #052756, 0px 1px 0px #60c9f0;/* Firefox */
		 -o-box-shadow: inset 0px 1px 0px #052756, 0px 1px 0px #60c9f0;/* Opera */
			box-shadow: inset 0px 1px 0px #052756, 0px 1px 0px #60c9f0;	/* Standard */	

	-webkit-transition: all 1s ease;/* WebKit */
	   -moz-transition: all 1s ease;/* Firefox */
		 -o-transition: all 1s ease;/* Opera */
			transition: all 1s ease;/* Standard */	


}

.before:hover::before {
	top:50%;
	margin-top:-9px;

	-webkit-transform: rotate(-720deg);/* WebKit */
	   -moz-transform: rotate(-720deg);/* Firefox */
		 -o-transform: rotate(-720deg);/* Opera */
			transform: rotate(-720deg);/* Standard */
}
 .before_shadow::after {
	width:20px;
	height:20px;
	position:absolute;
	right:15px;
	top:50%;
	margin-top:-12px;
	content:"";
	
	-webkit-border-radius: 50%;/* WebKit */
	   -moz-border-radius: 50%;/* Firefox */
		 -o-border-radius: 50%;/* Opera */
			border-radius: 50%;/* Standard */	
	
	-webkit-transition: all 1s ease;/* WebKit */
	   -moz-transition: all 1s ease;/* Firefox */
		 -o-transition: all 1s ease;/* Opera */
			transition: all 1s ease;/* Standard */	
			
	-webkit-box-shadow: inset 0px 1px 0px #60c9f0, 0px 3px 0px #0e3871, 0px 6px 3px #1a80a6;/* WebKit */
	   -moz-box-shadow: inset 0px 1px 0px #60c9f0, 0px 3px 0px #0e3871, 0px 6px 3px #1a80a6;/* Firefox */
		 -o-box-shadow: inset 0px 1px 0px #60c9f0, 0px 3px 0px #0e3871, 0px 6px 3px #1a80a6;/* Opera */
			box-shadow: inset 0px 1px 0px #60c9f0, 0px 3px 0px #0e3871, 0px 6px 3px #1a80a6;/* Standard */	

 }
 .before_shadow:hover::after {
	top:50%;
	margin-top:-9px;
	
	-webkit-box-shadow: inset 0px 1px 0px #052756, 0px 1px 0px #60c9f0;/* WebKit */
	   -moz-box-shadow: inset 0px 1px 0px #052756, 0px 1px 0px #60c9f0;/* Firefox */
		 -o-box-shadow: inset 0px 1px 0px #052756, 0px 1px 0px #60c9f0;/* Opera */
			box-shadow: inset 0px 1px 0px #052756, 0px 1px 0px #60c9f0;	/* Standard */	

}</pre><p>&nbsp;</p>
<p>And here is a piece of the HTML code.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;div class="bg1 border transition shadow position rotate"&gt;&lt;/div&gt;
&lt;div class="bg2 border transition shadow position rotate"&gt;&lt;/div&gt;
&lt;div class="bg3 border transition shadow position rotate"&gt;&lt;/div&gt;
&lt;div class="bg4 border transition shadow position rotate"&gt;&lt;/div&gt;</pre><p></p>
<h3>See Demo here</h3>
<p class='codepen'  data-height='700' data-theme-id='0' data-slug-hash='jmVJvX' data-default-tab='result' data-animations='run' data-editable='' data-embed-version='2'>
</p>

]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/css-animation-effects-using-transitions-rotations-postioning/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1480</post-id>	</item>
		<item>
		<title>Pure CSS3 and HTML web form design</title>
		<link>https://tutorialspage.com/pure-css3-html-web-form-design/</link>
					<comments>https://tutorialspage.com/pure-css3-html-web-form-design/#respond</comments>
		
		<dc:creator><![CDATA[cata]]></dc:creator>
		<pubDate>Tue, 13 Sep 2011 09:15:41 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<guid isPermaLink="false">http://tutorialspage.com/?p=1465</guid>

					<description><![CDATA[This a CSS3 based web form design. It was used only CSS and HTML to rich the result. Thanks to advanced CSS properties, such as gradients and shadows, it’s now quite easy to turn a basic web form into something beautiful. I will try to create a simple yet modern form, while maintaining the code easy to &#8230; <a href="https://tutorialspage.com/pure-css3-html-web-form-design/" class="more-link">Continue reading<span class="screen-reader-text"> "Pure CSS3 and HTML web form design"</span></a>]]></description>
										<content:encoded><![CDATA[<p>This a <strong>CSS3</strong> based <strong>web form design</strong>. It was used only CSS and HTML to rich the result. Thanks to advanced CSS properties, such as gradients and shadows, it’s now quite easy to turn a basic web form into something beautiful.</p>
<p><span id="more-1465"></span></p>
<p>I will try to create a simple yet modern form, while maintaining the code easy to customize. Here is the result of all the code. And did I said that the form is also responsive? Well, it is.</p>
<p><img data-recalc-dims="1" decoding="async" class="aligncenter wp-image-1471 size-large" src="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2011/09/simple-css-contact-form.png?resize=840%2C484&#038;ssl=1" alt="" width="840" height="484" srcset="https://i0.wp.com/tutorialspage.com/wp-content/uploads/2011/09/simple-css-contact-form.png?resize=1024%2C590&amp;ssl=1 1024w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2011/09/simple-css-contact-form.png?resize=300%2C173&amp;ssl=1 300w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2011/09/simple-css-contact-form.png?resize=768%2C443&amp;ssl=1 768w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2011/09/simple-css-contact-form.png?resize=1200%2C692&amp;ssl=1 1200w, https://i0.wp.com/tutorialspage.com/wp-content/uploads/2011/09/simple-css-contact-form.png?w=1575&amp;ssl=1 1575w" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" /></p>
<p>Here we have the code used to build a simple HTML form. You may want to add a DOCTYPE to your html document if you worry about  Internet Explorer.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;div id="wrapper"&gt;
	&lt;form action="#" id="form"&gt;
		&lt;label for="name"&gt;Name&lt;/label&gt;
		&lt;input type="text" id="name" /&gt;
		&lt;label for="email"&gt;Email&lt;/label&gt;
		&lt;input type="text" id="email" /&gt;
		&lt;label for="telephone"&gt;Telephone&lt;/label&gt;
		&lt;input type="text" id="telephone" /&gt;
		&lt;label for="message"&gt;Message&lt;/label&gt;
		&lt;textarea name="message" id="message" cols="30" rows="10"&gt;&lt;/textarea&gt;&lt;br /&gt;
		&lt;input type="submit" value="Send" name="submit" id="submit" /&gt;
	&lt;/form&gt;
&lt;/div&gt;</pre><p>&nbsp;</p>
<p>Note that the web form does not have javascript in there. We used only valid XHTML to create it.</p>
<p>Here we have the css code used to build the form.</p><pre class="urvanov-syntax-highlighter-plain-tag">#wrapper {
	font-family:verdana;
	margin: 30px auto ;
	padding: 30px;
	background: #4D6879; /* You can change the main color of thew form here. */
	font-size: 14px;
	width:100%;
	max-width:500px;
	box-sizing: border-box;
}

label {
	display: block;
	font-size: 24px;
	padding: 13px 0;
	color: #fff;
	text-shadow: 1px 1px 1px #666;
}

input {
	height: 18px;
	padding: 20px;
	width: 100%;
	box-sizing: border-box;
	-webkit-border-radius: 6px;
	-khtml-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
	-webkit-box-shadow: 0 0 10px #444;
	-moz-box-shadow: 0 0 10px #444;
	box-shadow: 0 0 10px #444;
	border: 1px solid #fff;
}

textarea {
	height: 150px;
	width: 100%;
	box-sizing: border-box;
	padding: 15px;
	border: 1px solid #fff;
	-webkit-border-radius: 6px;
	-khtml-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
	-webkit-box-shadow: 0 0 10px #444;
	-moz-box-shadow: 0 0 10px #444;
	box-shadow: 0 0 10px #444;
}

input[type="text"]:hover, textarea:hover {
	border: 1px solid #fff;
	-webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.25) inset, 0 0 5px rgba(255, 255, 255, 0.4);
	-moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.25) inset, 0 0 5px rgba(255, 255, 255, 0.4);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.25) inset, 0 0 5px rgba(255, 255, 255, 0.4);
}

input#submit {
	text-align: center;
	color: #fff;
	height: 50px;
	padding: 0;
	text-shadow: 1px 1px 1px #000;
	font-size: 18px;
	text-transform: uppercase;
	margin-top: 50px;
	border: 1px solid #000;
	background: #000;
	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #3b3b3b), color-stop(100%, #000000));
	background: -webkit-linear-gradient(top, #3b3b3b 0%,#000000 100%);
	background: -moz-linear-gradient(top, #3b3b3b 0%,#000000 100%);
	background: -o-linear-gradient(top, #3b3b3b 0%,#000000 100%);
	background: -ms-linear-gradient(top, #3b3b3b 0%,#000000 100%);
	background: linear-gradient(top, #3b3b3b 0%,#000000 100%);
	opacity: 0.5;
}

input#submit:hover {
	color: #ccc;
	cursor: pointer;
	opacity: 0.8;
}

label {
	text-transform: uppercase;
	font-size: 14px;
}</pre><p>&nbsp;</p>
<p>Subtle background gradients give depth to the fields while shadows lift them from the page. Even more impressive is that this is done without any images at all.</p>
<p>If you pay attention to the code you will not only obtain a lightweight and beautiful <strong>web form design</strong>, but you will also learn and understand new CSS3 techniques, such as box-shadow, gradients, opaque colors, and rounded corners.</p>
<p>This web form was tested and works great all major browsers.</p>
<h3>You can see the demo form here:</h3>
<p class='codepen'  data-height='500' data-theme-id='0' data-slug-hash='dWOQKN' data-default-tab='result' data-animations='run' data-editable='' data-embed-version='2'>
</p>

<p>Like you can see below, just by modifying one single line you can change the form theme.</p>
<p>You work it further and add some more features. For example implement some font you like from <a title="Google Font Directory" href="http://www.google.com/webfonts#ChoosePlace:select" target="_blank" rel="noopener noreferrer">Google Font Directory</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tutorialspage.com/pure-css3-html-web-form-design/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1465</post-id>	</item>
	</channel>
</rss>
