<?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; Extreme Web Designs</title>
	<atom:link href="https://theextremewebdesigns.com/blog/category/css-tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>https://theextremewebdesigns.com/blog</link>
	<description>Web Design and Web Development</description>
	<lastBuildDate>Tue, 06 Dec 2016 10:22:33 +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>Flip Text Horizontally and Vertically Using CSS3 Easily</title>
		<link>https://theextremewebdesigns.com/blog/flip-text-horizontally-and-vertically-using-css3-easily/</link>
					<comments>https://theextremewebdesigns.com/blog/flip-text-horizontally-and-vertically-using-css3-easily/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 06 Dec 2016 10:22:33 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[flip text horizontally]]></category>
		<category><![CDATA[flip text vertically]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=4028</guid>

					<description><![CDATA[Ever wondered how to flip text horizontally and vertically without javascript? In this article, I will share easy ways to achieve the flip text effect just by using CSS/CSS3. Flip Text Horizontally Using CSS/CSS3 Let&#8217;s say that we have some text in a div and we would like to flip this text both horizontally. Let&#8217;s [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Ever wondered how to flip text horizontally and vertically without javascript? In this article, I will share easy ways to achieve the flip text effect just by using CSS/CSS3.</p>
<h2>Flip Text Horizontally Using CSS/CSS3</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=4028" 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>Let&#8217;s say that we have some text in a div and we would like to flip this text both horizontally. Let&#8217;s see how to do this.</p>
<pre class="lang:xhtml decode:true  " title="Horizontal Text Flip using CSS">&lt;style&gt;
.holder {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #ddd;  
}

.horizontal-flip {
-moz-transform: scale(-1, 1);
-webkit-transform: scale(-1, 1);
-o-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
transform: scale(-1, 1);
}
&lt;/style&gt;


&lt;h2&gt;Horizontal Text Flip:&lt;/h2&gt;
&lt;div class="holder horizontal-flip"&gt;
1234567890
&lt;/div&gt;</pre>
<h2>Flip Text Vertically Using CSS/CSS3</h2>
<p>Now lets flip the same text vertically just by using CSS.</p>
<pre class="lang:xhtml decode:true " title="Vertical Text flip Using CSS3">&lt;style&gt;
.holder {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #ddd;  
}

.vertical-flip {
-moz-transform: scale(1, -1);
-webkit-transform: scale(1, -1);
-o-transform: scale(1, -1);
-ms-transform: scale(1, -1);
transform: scale(1, -1);
}
&lt;/style&gt;


&lt;h2&gt;Vertical Text Flip:&lt;/h2&gt;
&lt;div class="holder horizontal-flip"&gt;
1234567890
&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=4028" 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>
    
<h3>Simple, isn&#8217;t it?</h3>
<p>Do you know of any other ways to flip text using just CSS? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/flip-text-horizontally-and-vertically-using-css3-easily/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4028</post-id>	</item>
		<item>
		<title>CSS Image Rollover with Example</title>
		<link>https://theextremewebdesigns.com/blog/css-image-rollover-with-example/</link>
					<comments>https://theextremewebdesigns.com/blog/css-image-rollover-with-example/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 16 Dec 2012 18:26:16 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=1928</guid>

					<description><![CDATA[If you would like to create rollover effect by using only CSS i.e. a pure CSS Image Rollover effect, then this article is for you. In this article by using a simple example, I am going to show how to create Rollover effect for an image by simply using CSS and without any javascript or [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If you would like to create rollover effect by using only CSS i.e. a <strong>pure CSS Image Rollover effect</strong>, then this article is for you. In this article by using a simple example, I am going to show how to create Rollover effect for an image by simply using CSS and without any javascript or jQuery.</p>
<h2>How to create CSS Image Rollover Effect?</h2>
<p>Let&#8217;s look at the demo first:</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=1928" 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><strong>Before Rollover:</strong></p>
<p><a href="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/05/img_default.png" class="broken_link"><img decoding="async" class="aligncenter" title="jQuery Image Rollover Effect - Before Rollover" alt="" src="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/05/img_default-150x150.png" width="150" height="150" /></a></p>
<p><strong>After Rollover:</strong></p>
<p><a href="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/05/img_roll.png" class="broken_link"><img decoding="async" class="aligncenter" title="jQuery Image Rollover Effect - After Rollover" alt="" src="https://theextremewebdesigns.com/blog/wp-content/uploads/2012/05/img_roll-150x150.png" width="150" height="150" /></a></p>
<h3>Example of Image Rollover using CSS</h3>
<p>Let&#8217;s assume that you have a main &#8220;container&#8221; div that contains both the images i.e the image that needs to be shown by default and the roll over image as well. Take a look a the simple, easy to understand HTML &amp; CSS code below:</p>
<pre class="lang:xhtml decode:true">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Example of Image Rollover using pure CSS&lt;/title&gt;

&lt;style type="text/css"&gt;
.container {
width: 300px;
}

.container .img_rollover {
width: 300px;
display: none;
}

.container:hover .img_rollover {
display: block;
}

.container:hover .img_default {
display: none;
}
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;div class="container"&gt;
&lt;img src="images/1.jpg" width="300" height="300" class="img_default"&gt;
&lt;img src="images/2.jpg" width="300" height="300" class="img_rollover"&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=1928" 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>Simple, isn&#8217;t it?</h5>
<p>Do you know of any other ways to make <strong>CSS Image Rollover Effect</strong>? Feel free to suggest by commenting below.</p>
<p>P.S:  If you would like to find out how to achieve Image Rollover effect using jQuery, then read my article on <a title="jQuery Image Rollover effect with example" href="https://theextremewebdesigns.com/blog/tutorial-jquery-image-rollover/" target="_blank">jQuery Image Rollover effect with example</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/css-image-rollover-with-example/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1928</post-id>	</item>
		<item>
		<title>Align text to bottom of div using CSS Example</title>
		<link>https://theextremewebdesigns.com/blog/align-text-to-bottom-of-div-using-css/</link>
					<comments>https://theextremewebdesigns.com/blog/align-text-to-bottom-of-div-using-css/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 25 May 2012 07:44:32 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=578</guid>

					<description><![CDATA[Here is a neat trick to align the text or the content of a div to the bottom portion of the div using CSS. Example to Align text to bottom of div using CSS For the sake of example, let us assume that we have a div with ID &#8220;my_div&#8221;. This div contains another div [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Here is a neat trick to <em><strong>align the text or the content of a div to the bottom portion of the div using CSS</strong></em>.<span id="more-578"></span></p>
<h2>Example to Align text to bottom of 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=578" 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>For the sake of example, let us assume that we have a div with ID &#8220;my_div&#8221;. This div contains another div with ID &#8220;my_div_content&#8221;. This div actually contains our text that we want to align to bottom of &#8220;my_div&#8221;. So let&#8217;s see how this can be achieved.</p>
<h3>Example: Align Text to bottom of Div using CSS</h3>
<pre class="lang:xhtml decode:true">&lt;style type="text/css"&gt;
#my_div { position: relative; }
#my_div_content { position: absolute; bottom: 0; left: 0; }
&lt;/style&gt;

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

&lt;div id="my_div_content"&gt;
&lt;h1&gt;Some title&lt;/h1&gt;
Content goes in here.
&lt;/div&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=578" 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 <strong>a</strong><em><strong>lign text to bottom of div using CSS</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/align-text-to-bottom-of-div-using-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">578</post-id>	</item>
		<item>
		<title>Remove dotted outline using CSS in Firefox on Buttons, Links</title>
		<link>https://theextremewebdesigns.com/blog/remove-dotted-outline-using-css-in-firefox-on-buttons-links/</link>
					<comments>https://theextremewebdesigns.com/blog/remove-dotted-outline-using-css-in-firefox-on-buttons-links/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 25 May 2012 06:26:45 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=576</guid>

					<description><![CDATA[Here are short super tricks to remove dotted outline using CSS in Firefox on Buttons &#38; Links. Remove Dotted Outline using CSS in Browsers //Remove dotted outline on buttons button::-moz-focus-inner { border: 0; } //Remove dotted outline on link a:focus { outline: none; } Simple, isn&#8217;t it? Do you know of any other ways to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Here are short super tricks to remove dotted outline using CSS in Firefox on Buttons &amp; Links.<span id="more-576"></span></p>
<h2>Remove Dotted Outline using CSS in Browsers</h2>
<pre class="lang:xhtml decode:true">//Remove dotted outline on buttons

button::-moz-focus-inner {
border: 0;
}

//Remove dotted outline on link

a:focus {
outline: none;
}</pre>
<h5>Simple, isn&#8217;t it?</h5>
<p>Do you know of any other ways to <strong>remove dotted outline using CSS</strong> for other browsers? Please feel free to share by commenting below.</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/remove-dotted-outline-using-css-in-firefox-on-buttons-links/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">576</post-id>	</item>
		<item>
		<title>Include CSS in CSS</title>
		<link>https://theextremewebdesigns.com/blog/include-css-in-css/</link>
					<comments>https://theextremewebdesigns.com/blog/include-css-in-css/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 25 May 2012 06:03:56 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=569</guid>

					<description><![CDATA[Include CSS in CSS with just 1 line of code. Read on to find out more about this nifty little trick. Include CSS in CSS Let us say that you have a main CSS file called &#8220;main.css&#8221; that contains all the styles for your website. Now you want to include a CSS file that works [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Include CSS in CSS</strong> with just 1 line of code. Read on to find out more about this nifty little trick.<span id="more-569"></span></p>
<h2>Include CSS in CSS</h2>
<p>Let us say that you have a main CSS file called &#8220;main.css&#8221; that contains all the styles for your website. Now you want to include a CSS file that works as a CSS Reset (If you do not know what <a title="CSS Reset: What is CSS Reset? Why to use CSS Reset? How to use CSS Reset?" href="https://theextremewebdesigns.com/blog/css-reset-what-is-css-reset-why-to-use-css-reset-how-to-use-css-reset/" target="_blank">CSS Reset</a>, is then read more about it <a title="CSS Reset: What is CSS Reset? Why to use CSS Reset? How to use CSS Reset?" href="https://theextremewebdesigns.com/blog/css-reset-what-is-css-reset-why-to-use-css-reset-how-to-use-css-reset/" target="_blank">here</a>), you can do it the following way, assuming that your CSS Reset file is name as &#8220;reset.css&#8221;:</p>
<pre class="lang:css decode:true">//Contents of main.css

@import url("reset.css");

h1 { }
h2 { }
p { }</pre>
<p><strong>@import url(&#8220;reset.css&#8221;);</strong> is the only line of code you need to include css in css. You can apply the same method to include multiple css in a single css file. Following is an example:</p>
<pre class="lang:css decode:true  crayon-selected">//Contents of main.css

@import url("reset.css");
@import url("colors.css");
@import url("forms.css");

h1 { }
h2 { }
p { }</pre>
<p>So as you can see, all you need is just 1 line of code whenever you want to<strong> include CSS in another CSS</strong>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/include-css-in-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">569</post-id>	</item>
		<item>
		<title>Vertically align text with image using CSS</title>
		<link>https://theextremewebdesigns.com/blog/vertically-align-text-with-image-using-css/</link>
					<comments>https://theextremewebdesigns.com/blog/vertically-align-text-with-image-using-css/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 24 May 2012 16:20:08 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=566</guid>

					<description><![CDATA[When working with web design, some times it might be desirable to maintain an even proportion, be it layout or be it placement of elements in the page. In such a context, it would be helpful to vertically align text. So here&#8217;s a neat trick to vertically align text with image using CSS. Example to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>When working with web design, some times it might be desirable to maintain an even proportion, be it layout or be it placement of elements in the page. In such a context, it would be helpful to vertically align text. So here&#8217;s a neat trick to <strong>vertically align text with image using CSS</strong>.<span id="more-566"></span></p>
<h2>Example to Vertically align text with image using CSS</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=566" 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>Let&#8217;s assume that we have a div and it contains an image and some text. We would now like to vertically align the text with this image. We can do this in the following way:</p>
<pre class="lang:xhtml decode:true" title="Vertically align Image With Text using CSS">&lt;div&gt;
&lt;img style="width:50px;height:300px;vertical-align:middle;"&gt;
&lt;span style="text"&gt;Hello World!&lt;/span&gt;
&lt;/div&gt;</pre>
<h5><div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=566" 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>
<h5>Your Turn!</h5>
<p>Do you know of any other ways to <strong><em>use CSS to vertically align text with image</em>?</strong> Feel free to share by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/vertically-align-text-with-image-using-css/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">566</post-id>	</item>
		<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 loading="lazy" 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>Center Div In Div Using CSS Example</title>
		<link>https://theextremewebdesigns.com/blog/center-div-in-div/</link>
					<comments>https://theextremewebdesigns.com/blog/center-div-in-div/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 19 Mar 2012 12:06:27 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=384</guid>

					<description><![CDATA[Ever wanted to center Div in Div using CSS? In this article, I am going to show you a very simple &#38; easy little trick to use CSS so that you can easily center a div in another div. How to Center Div in Div using CSS &#8211; Example For the sake of example, let&#8217;s [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Ever wanted to <em><strong>center Div in Div using CSS</strong></em>? In this article, I am going to show you a very simple &amp; easy little trick to use CSS so that you can easily center a div in another div.<span id="more-384"></span></p>
<h2>How to Center Div in Div 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=384" 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>For the sake of example, let&#8217;s assume that we have 2 Divs &amp; we would like to center the inner div inside the outer (main) div. Here is the CSS &amp; HTML code:</p>
<pre class="lang:xhtml decode:true">&lt;style type="text/css"&gt;
#content {
width: 100%;
}

#text {
width: 80%; /*Change this value to a suitable one*/
margin-right: auto;
margin-left: auto;
}

&lt;/style&gt;

&lt;div id="content"&gt;
&lt;div id="text"&gt;Try selecting all this text. You will see that all of it is unselectable.&lt;/div&gt;
&lt;/div&gt;</pre>
<h5><div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=384" 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>
<h5>Very simple, isn&#8217;t it?</h5>
<p>Do you know of any other ways to <em><strong>center div in div using CSS</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/center-div-in-div/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">384</post-id>	</item>
		<item>
		<title>Set Cellspacing Cellpadding in css</title>
		<link>https://theextremewebdesigns.com/blog/set-cellspacing-cellpadding-in-css/</link>
					<comments>https://theextremewebdesigns.com/blog/set-cellspacing-cellpadding-in-css/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 19 Mar 2012 11:53:38 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=379</guid>

					<description><![CDATA[Ever wanted to Set Cellspacing Cellpadding in css but didn&#8217;t know where to begin? Worry no more. In this article, I am going to show you how to easily set cellspacing, cellpadding  in CSS. The CSS &#38; HTML source code are provided &#38; you can try experimenting with the values to suit your purpose. So read [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Ever wanted to Set Cellspacing Cellpadding in css but didn&#8217;t know where to begin? Worry no more. In this article, I am going to show you how to easily set cellspacing, cellpadding  in CSS. The CSS &amp; HTML source code are provided &amp; you can try experimenting with the values to suit your purpose. So read on to find out how to <strong>Set Cellspacing Cellpadding in css</strong>.<span id="more-379"></span></p>
<h2>How to Set Cellspacing Cellpadding using CSS &#8211; Example</h2>
<h3>Example: Following is the code to Set Cellspacing Cellpadding using CSS</h3>
<pre class="lang:xhtml decode:true">&lt;style type="text/css"&gt;
/* For Cellspacing*/
table
{
border-collapse: collapse;
}

/* For Cellpadding */
table td, table th
{
padding: 0;
}
&lt;/style&gt;</pre>
<h5>Simple, isn&#8217;t it?</h5>
<p>If you know of any other ways to <em><strong>set cellspacing and cellpadding in css</strong></em>, please feel free to share by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/set-cellspacing-cellpadding-in-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">379</post-id>	</item>
	</channel>
</rss>
