<?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-snippets &#8211; Extreme Web Designs</title>
	<atom:link href="https://theextremewebdesigns.com/blog/tag/css-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>https://theextremewebdesigns.com/blog</link>
	<description>Web Design and Web Development</description>
	<lastBuildDate>Tue, 10 Apr 2012 06:40:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>
<site xmlns="com-wordpress:feed-additions:1">156673191</site>	<item>
		<title>Center Div Horizontally Using CSS Example</title>
		<link>https://theextremewebdesigns.com/blog/center-div-css/</link>
					<comments>https://theextremewebdesigns.com/blog/center-div-css/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 10 Apr 2012 06:40:20 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css-snippets]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=543</guid>

					<description><![CDATA[In this article, I am going to show you a very simple way to center div using css. How to Center div using CSS: Before I show you the markup, let&#8217;s quickly look at the output: Example: Horizontally Center div using CSS: &#60;style type="text/css"&#62; #outer { background-color: #930; padding: 15px; width: 500px; margin-left: auto; margin-right: auto; [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this article, I am going to show you a very simple way to <strong>center div using css</strong>.<span id="more-543"></span></p>
<h2>How to Center div using CSS:</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=543" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>Before I show you the markup, let&#8217;s quickly look at the output:</p>
<p><a href="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/04/center_div_css.png" class="broken_link"><img decoding="async" class="aligncenter size-medium wp-image-544" title="Center div CSS" alt="Center div CSS" src="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/04/center_div_css-300x79.png" width="300" height="79" /></a></p>
<p><strong>Example: Horizontally Center div using CSS:</strong></p>
<pre class="lang:xhtml decode:true">&lt;style type="text/css"&gt;
#outer {
background-color: #930;
padding: 15px;
width: 500px;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
}
#inner {
color: #000;
background-color: #FFCFB9;
padding: 10px;
width: 200px;
margin-left: auto;
margin-right: auto;
text-align: center;
}
&lt;/style&gt;

HTML:

&lt;div id="outer"&gt;

&lt;div id="inner"&gt;
This is inner div.
&lt;/div&gt;

&lt;/div&gt;</pre>
<p>Note that for the demo purposes, I have maintained the width of the outer div at 500px. You may remove/change it as you need.</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=543" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>That&#8217;s it!</h5>
<p>Do you know of any other ways to <em><strong>Center div CSS</strong></em>? Feel free to share your thoughts by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/center-div-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">543</post-id>	</item>
		<item>
		<title>Center li in ul using CSS Example</title>
		<link>https://theextremewebdesigns.com/blog/center-li-in-ul-using-css/</link>
					<comments>https://theextremewebdesigns.com/blog/center-li-in-ul-using-css/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 10 Apr 2012 06:04:46 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css-snippets]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=532</guid>

					<description><![CDATA[When working with unordered lists (ul) using HTML &#38; CSS, you might have seen that the ul li stack vertically. But you may want them to stack horizontally and better yet, align them all horizontally so that all the li center in ul. So do you know how to center list item in the unordered [&#8230;]]]></description>
										<content:encoded><![CDATA[<div>When working with unordered lists (ul) using HTML &amp; CSS, you might have seen that the ul li stack vertically. But you may want them to stack horizontally and better yet, align them all horizontally so that all the li center in ul. So do you know how to center list item in the unordered list using CSS? If not, don&#8217;t worry In this article, I am going to show you a very simple way to <strong>center li in ul using CSS</strong> and thereby fabulous CSS menu and center the list items inside the list using an easy example.</div>
<div><span id="more-532"></span></div>
<h2>How to Center li in ul using CSS &#8211; Example</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=532" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>Before I show you the HTML and CSS required to center the list items in its parent unordered list using CSS, let&#8217;s look at the output:</p>
<div>
<p><a href="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/04/center_li_in_ul_css.png" class="broken_link"><img decoding="async" class="aligncenter size-medium wp-image-534" title="Center li in ul CSS" alt="Center li in ul CSS" src="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/04/center_li_in_ul_css-300x60.png" width="300" height="60" /></a></p>
</div>
<p>So this example assumes that we have a div and we are using an unordered list (ul list) with some list items (li items) in it. It&#8217;s upto you to decide how many li items you want to center in it. There&#8217;s no limit as such. But for the sake of the <strong>example to center li in ul using CSS</strong>, I am going to assume that we have 6 li items.</p>
<p><strong>The following is HTML markup. You may use it and change it as you need it.</strong></p>
<div>
<pre class="lang:xhtml decode:true">&lt;style type="text/css"&gt;#nav {
background-color: #930;
padding: 10px;
margin-left: auto;
margin-right: auto;
width: 500px;
margin-top: 50px;
}

#nav ul {
text-align: center;
padding: 0;
margin: 0;
}

#nav li {
display: inline;
list-style: none;
padding: 10px 5px 10px 5px;
}

#nav a {
color: #930;
text-decoration: none;
padding: 5px;
background-color: #FFBE9F;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: bold;
font-variant: normal;
}

#nav a:hover {
background-color: #FFC9AE;
}
&lt;/style&gt;

HTML:
&lt;div id="nav"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#"&gt;One&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;Two&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;Three&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;Four&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;Five&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;Sixth link is long link&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</pre>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=532" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>Your Turn!</h5>
<p>Do you know of any other ways to <em><strong>center li in ul using CSS</strong></em>? Feel free to share your comments below.</p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/center-li-in-ul-using-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">532</post-id>	</item>
		<item>
		<title>How to create &#8220;Stitched&#8221; look using CSS3</title>
		<link>https://theextremewebdesigns.com/blog/how-to-create-stitched-look-using-css3/</link>
					<comments>https://theextremewebdesigns.com/blog/how-to-create-stitched-look-using-css3/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 24 Feb 2012 17:00:45 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css-snippets]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=338</guid>

					<description><![CDATA[Ever wanted to create a Stitched look using CSS only without using any graphic tools? Here&#8217;s a little snippet of code that lets you achieve exactly that. Example to Create &#8220;Stitched&#8221; look using CSS3 Here is what we are going to create: &#60;style type="text/css"&#62; .stitched_bg { background-color: #356A00; padding: 5px; width: 145px; height: 145px; margin-left: [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Ever wanted to create a <em><strong>Stitched look using CSS</strong></em> only without using any graphic tools? Here&#8217;s a little snippet of code that lets you achieve exactly that.<span id="more-338"></span></p>
<h2>Example to Create &#8220;Stitched&#8221; look using CSS3</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=338" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>Here is what we are going to create:</p>
<p><a href="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/02/stitched_box.png" class="broken_link"><img decoding="async" class="aligncenter size-full wp-image-339" title="Stitched look CSS" alt="Stitched look CSS" src="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/02/stitched_box.png" width="161" height="159" /></a></p>
<pre class="lang:xhtml decode:true">&lt;style type="text/css"&gt;
.stitched_bg {
background-color: #356A00;
padding: 5px;
width: 145px;
height: 145px;
margin-left: auto;
margin-right: auto;
}
.stitched {
border:2px dashed #ffffff;
box-shadow: 0 0 0 8px #356A00;
color: #FFF;
height: 140px;
}
&lt;/style&gt;
&lt;div class="stitched_bg"&gt;
&lt;div class="stitched"&gt;&lt;/div&gt;
&lt;/div&gt;</pre>
<p>That&#8217;s it! Isn&#8217;t that simple?</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=338" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>Your turn!</h5>
<p>Do you know of any other ways to <em><strong>create stitched effecting using only CSS</strong></em>? If yes, please feel free to share with us by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/how-to-create-stitched-look-using-css3/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">338</post-id>	</item>
		<item>
		<title>CSS3 Drop Shadow Example</title>
		<link>https://theextremewebdesigns.com/blog/css3-drop-shadow-1-line-solution/</link>
					<comments>https://theextremewebdesigns.com/blog/css3-drop-shadow-1-line-solution/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 19 Feb 2012 12:17:11 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css-snippets]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=322</guid>

					<description><![CDATA[One of the coolest new feature of using CSS3 is giving the effect of drop shadow to images, buttons, etc. without having to get your hands dirty with software such as Adobe Photoshop, Adobe Fireworks, etc. Here is a 1 line solution that you can use in your CSS to instantly apply CSS3 Drop Shadow [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>One of the coolest new feature of using CSS3 is giving the effect of drop shadow to images, buttons, etc. without having to get your hands dirty with software such as Adobe Photoshop, Adobe Fireworks, etc. Here is a 1 line solution that you can use in your CSS to instantly <em><strong>apply CSS3 Drop Shadow effect</strong></em>.<span id="more-322"></span></p>
<h2>CSS3 Drop Shadow: 1 line solution</h2>
<pre class="lang:css decode:true">box-shadow: 1px 2px 5px 3px #CCC;</pre>
<p><strong>Breakdown of the above values:</strong></p>
<p><strong>box-shadow</strong> &#8211; New property introduced in CSS3 to generate shadow effects.</p>
<p><strong>1px</strong> &#8211; Thi is the Horizontal offset. Both positive and negative values are entertained.  A positive value for the Horizontal offset draws a shadow that is offset to the right of the box. A negative length draws a shadow that is offset to the left of the box.</p>
<p><strong>2px</strong> &#8211; This is the Vertical offset. Both positive and negative values are entertained. A positive value for the Vertical offset basically offsets the shadow down, a negative one up, while the negative value does the opposite.</p>
<p><strong>5px</strong> &#8211; This is the Blur Radius. Allows only Positive  values.  The larger the value, the more blurry the shadow’s edge appears.</p>
<p><strong>3px</strong> &#8211; This is the Spread distance. Both positive and negative values are entertained. Positive values cause the shadow shape to expand in all directions by the specified radius whereas negative values cause the shadow shape to contract.</p>
<p><strong>#CCC</strong> &#8211; This is the color of the shadow.</p>
<p><strong>You can also apply multiple shadows using a single CSS declaration:</strong></p>
<pre class="lang:css decode:true">box-shadow: 1px 2px 5px 3px #CCC, 0 0 6px rgba(0, 0, 0, .7) inset;</pre>
<p>So using our basic example, let&#8217;s quickly create a box and apply our simple solution:</p>
<pre class="lang:xhtml decode:true">&lt;style type="text/css"&gt;
#a {
box-shadow: 1px 2px 5px 3px #CCC;
width: 100px;
height: 100px;
}
&lt;/style&gt;

&lt;div id="a"&gt;I am a box&lt;/div&gt;</pre>
<p>This gives us the following:<a href="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/02/css3_drop_shadow_simple.jpg" class="broken_link"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-326" title="CSS3 Drop Shadow" alt="CSS3 Drop Shadow" src="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/02/css3_drop_shadow_simple.jpg" width="150" height="150" /></a></p>
<p><strong>Browser Support</strong></p>
<p>Internet Explorer 9/10<br />
Firefox (from 3.5)<br />
Safari/Chrome<br />
Opera (from 10.5)</p>
<h5>Your turn!</h5>
<p>Do you know of any other simple ways to <em><strong>provide CSS3 Drop Shadow effect to elements</strong></em> of your web page? If yes, please feel free to share by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/css3-drop-shadow-1-line-solution/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">322</post-id>	</item>
		<item>
		<title>2 lines of code: Target IE6 IE7 CSS</title>
		<link>https://theextremewebdesigns.com/blog/target-ie6-ie7-css/</link>
					<comments>https://theextremewebdesigns.com/blog/target-ie6-ie7-css/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 11 Feb 2012 00:03:17 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css-snippets]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=273</guid>

					<description><![CDATA[Are you a designer who have had a hard time trying to maintain consistent styling across browsers like IE6 and IE7? Have you ever wondered if there is any simply solution to solve this problem? Here is a 2 line solution that will let you target IE6, IE7 CSS &#38; solve this problem. Target IE6 IE7 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Are you a designer who have had a hard time trying to maintain consistent styling across browsers like IE6 and IE7? Have you ever wondered if there is any simply solution to solve this problem? Here is a 2 line solution that will let you target IE6, IE7 CSS &amp; solve this problem.<span id="more-273"></span></p>
<h2>Target IE6 IE7 using CSS</h2>
<p>Simply paste the following code in your CSS stylesheet &amp; change the &#8220;id&#8221; and &#8220;class&#8221; names as needed:</p>
<pre class="lang:css decode:true">#myelement
{
color: #999; /* shows in all browsers */
*color: #999; /* notice the * before the property - shows in IE7 and below */
_color: #999; /* notice the _ before the property - shows in IE6 and below */
}
.myelement
{
color: #999; /* shows in all browsers */
*color: #999; /* notice the * before the property - shows in IE7 and below */
_color: #999; /* notice the _ before the property - shows in IE6 and below */
}</pre>
<p>In the code above, simply change #myelement if using ID or change .myelement to reflect the class of the element that you are using. Then re-declare the same style by appending * to fix the issue in IE7 &amp; append _ to fix the issue in IE6, as shown in examples above. Hope that helps.</p>
<h5>Your Turn!</h5>
<p>Do you know of any other short cuts to <em><strong>target and make IE6 &amp; IE7 using CSS</strong></em> obey the styling? Please share your tips with us by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/target-ie6-ie7-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">273</post-id>	</item>
	</channel>
</rss>
