<?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 Archives - smallworkarounds</title>
	<atom:link href="https://www.smallworkarounds.com/category/css/feed" rel="self" type="application/rss+xml" />
	<link>https://www.smallworkarounds.com/category/css</link>
	<description>Welcome to SmallWorkarounds</description>
	<lastBuildDate>Tue, 21 Mar 2017 10:06:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>CSS Property !important</title>
		<link>https://www.smallworkarounds.com/2008/10/css-property-important.html</link>
		
		<dc:creator><![CDATA[Aashish Kumar]]></dc:creator>
		<pubDate>Fri, 17 Oct 2008 20:32:00 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<guid isPermaLink="false">https://www.smallworkarounds.com/index.php/2008/10/17/css-property-importan/</guid>

					<description><![CDATA[<p>There are basically two uses of !important css property First use is when you want a particular style to be [&#8230;]</p>
<p>The post <a href="https://www.smallworkarounds.com/2008/10/css-property-important.html">CSS Property !important</a> appeared first on <a href="https://www.smallworkarounds.com">smallworkarounds</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There are basically two uses of !important css property First use is when you want a particular style to be always applied if its also exist at some other place in the Cascading Style Sheets. As the name suggests &#8220;Cascading Style Sheets&#8221; this means that the styles will cascade and the browser will render the styles which are applied at the last. i.e if we have a &lt;a&gt; element in our markup and we define CSS like this:-</p>
<div>
<div style="font-size: 8pt; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"> 1: a</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"> 2: {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"> 3: font-size:20px;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"> 4: }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"> 5:</pre>
</div>
</div>
<p>and than again at another position below than this if we define</p>
<div>
<div style="font-size: 8pt; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"> 1: a</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"> 2: {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"> 3: font-size:40px;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"> 4: }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"> 5:</pre>
</div>
</div>
<p>So it will take font-size of &lt;a&gt; element as 40px not as 20px so if you want that for some elements the style should not change than you should give the a an !important attribute.</p>
<div>
<div style="font-size: 8pt; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"> 1: a</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"> 2: {</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"> 3: font-size:20px !important;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"> 4: }</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"> 5:</pre>
</div>
</div>
<p>Another use of this came into existance with the CSS2.0 whenever a user gives his stylesheets properties a value containing this !important keyword than user&#8217;s stylesheet properties override the author&#8217;s style sheet properties.</p>
<p>The post <a href="https://www.smallworkarounds.com/2008/10/css-property-important.html">CSS Property !important</a> appeared first on <a href="https://www.smallworkarounds.com">smallworkarounds</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>CSS Equivalent of CellSpacing</title>
		<link>https://www.smallworkarounds.com/2008/10/css-equivalent-of-cellspacing.html</link>
		
		<dc:creator><![CDATA[Aashish Kumar]]></dc:creator>
		<pubDate>Sun, 12 Oct 2008 21:06:00 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<guid isPermaLink="false">https://www.smallworkarounds.com/index.php/2008/10/12/css-equivalent-of-cellspacing/</guid>

					<description><![CDATA[<p>If you want to use solely CSS for styling the webpages then sometimes you might need the cellspacing property of [&#8230;]</p>
<p>The post <a href="https://www.smallworkarounds.com/2008/10/css-equivalent-of-cellspacing.html">CSS Equivalent of CellSpacing</a> appeared first on <a href="https://www.smallworkarounds.com">smallworkarounds</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you want to use solely CSS for styling the webpages then sometimes you might need the cellspacing property of table element which is not availiable in CSS. So the CSS property equivalent to CellSpacing is <strong>Border-Spacing</strong>. This can prove useful sometimes. td{ border-spacing:10px;</p>
<blockquote><p>}</p></blockquote>
<p>The post <a href="https://www.smallworkarounds.com/2008/10/css-equivalent-of-cellspacing.html">CSS Equivalent of CellSpacing</a> appeared first on <a href="https://www.smallworkarounds.com">smallworkarounds</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
