<?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>Hidden Pixels &#187; CSS Tips &amp; Tricks</title>
	<atom:link href="http://www.hiddenpixels.com/tag/css-tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hiddenpixels.com</link>
	<description>Web Design Resources, Web Design Tools, Web Design Tutorials, Website Design Inspirations Freebies</description>
	<lastBuildDate>Wed, 25 Aug 2010 13:10:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CSS Hacks</title>
		<link>http://www.hiddenpixels.com/css-stuffs/css-hacks/</link>
		<comments>http://www.hiddenpixels.com/css-stuffs/css-hacks/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 08:47:36 +0000</pubDate>
		<dc:creator>HPadmin</dc:creator>
				<category><![CDATA[CSS Stuffs]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Hacks]]></category>
		<category><![CDATA[CSS Tips & Tricks]]></category>

		<guid isPermaLink="false">http://hiddenpixels.com/?p=378</guid>
		<description><![CDATA[Different browsers has different standards for understating CSS attributes, so some CSS properties are not working in all browsers, the easy way to eliminate this issue to use CSS Hacks. Here are some basic CSS Hacks which we can use in regular development and help us to keep our website look same in all browsers. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-hacks.gif" alt=""><br />
<br />
Different browsers has different standards for understating CSS  attributes, so some CSS properties are not working in all browsers, the easy way to eliminate this issue to use CSS Hacks. Here are some basic CSS Hacks which we can use in regular development and help us to keep our website look same in all browsers. I get a good help from <a target="_blank" href="http://webdevout.net" target="_blank">webdevout.net</a>, <a target="_blank" href="http://www.w3schools.com" target="_blank">W3School</a>, <a target="_blank" href="http://stylizedweb.com/" target="_blank">stylizedweb.com</a> to learn about CSS Hacks, I try to list CSS Hacks as much as I know, please let me know if anything is missing or wrong in that. Here i am listing about Conditions in CSS, !important, @import, Abstract (*) Hack, Opacity, &#8220;min-height&#8221; Hack, CSS Reset Hacks.</p>
<p><span id="more-378"></span></p>
<div style="margin:5px; padding:5px; border-bottom:solid 5px #999999; padding-bottom:20px">
<h3>Conditions in CSS</h3>
<p>The most beneficial aspect of conditional comments is that you are not relying on browser bugs when using them. When you use CSS hacks that rely on browser bugs, you run into the possibility of those bugs being fixed at an unwanted time or other browsers showing the same bugs. Conditional comments only work in browsers that specifically support them and claim to be based on Internet Explorer, which in this case all known browsers are honest about.<br />
</p>
<ol>
<li><b>Positive</b><br />
<code>&lt;<font color="#FF0000">!--[if condition]&gt;</font> HTML <font color="#FF0000">&lt;![endif]--&gt;</font></code></li>
<li><b>Negative</b><br />
<code>&lt;<font color="#FF0000">!--[if !condition]&gt;<font color="#0000FF">&lt;![IGNORE[--&gt;&lt;![IGNORE[]]&gt;</font></font> HTML <font color="#FF0000">&lt;!--&lt;![endif]--&gt;</font></code></li>
</ol>
<p>Conditional comments can be used as a CSS hack by including links to stylesheets based on the layout engine. Here is an example of how stylesheets can be separated in this way:</p>
<p><code><br />
&lt;link href=&quot;common.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;<br />
<font color="#FF0000">&lt;!--[if IE]&gt;</font> &lt;link href=&quot;ie.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; <font color="#FF0000">&lt;![endif]--&gt;</font><br />
<font color="#FF0000">&lt;!--[if lt IE 7]&gt;</font> &lt;link href=&quot;ie6.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; <font color="#FF0000">&lt;![endif]--&gt;</font><br />
<font color="#FF0000">&lt;!--[if !lt IE 7]&gt;</font><font color="#0000FF">&lt;![IGNORE[--&gt;&lt;![IGNORE[]]&gt;</font> &lt;link href=&quot;ie7.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; <font color="#FF0000">&lt;!--&lt;![endif]--&gt;</font><br />
<font color="#FF0000">&lt;!--[if !IE]&gt;--&gt;</font> &lt;link href=&quot;nonie.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; <font color="#FF0000">&lt;!--&lt;![endif]--&gt;</font></code>
</div>
<div style="margin:5px; padding:5px; border-bottom:solid 5px #999999; padding-bottom:20px">
<h3>!important </h3>
<p>  The !important rule is a way to make your CSS cascade but also have the rules you feel are most crucial always be applied. A rule that has the !important property will always be applied no matter where that rule appears in the CSS document. So if you wanted to make sure that a property always applied, you would add the !important property to the tag.</p>
<p>  Internet Explorer 6 and below had a problem with the !important identifier that caused it to be ignored if another declaration of the same property appeared later in the same style declaration block. This can be used to feed Internet Explorer 6 and below special property values that are ignored by other browsers. Internet Explorer 7 fixed this issue.</p>
<p>  <code>  <font color="#0000FF">.div {</font> color: #cc0000 <font color="#FF0000">!important;</font> <font color="#0000FF">}</font><br />
  <font color="#0000FF">div {</font> color: #000000; <font color="#0000FF">}</font><br />
  </code></p>
</div>
<div style="margin:5px; padding:5px; border-bottom:solid 5px #999999; padding-bottom:20px">
<h3>@import </h3>
<p>  If you&#8217;ve ever struggled with Netscape Navigator 4.x, this trick is for you. It all hinges on the fact that NN4.x doesn&#8217;t understand what @import means. This is by far the most widely used trick, even though it&#8217;s only good for hiding external style sheets. </p>
<p>  <code>  <font color="#0000FF">@import url(http://www.example.org/styles/other-style.css);</font><br />
  </code></div>
<div style="margin:5px; padding:5px; border-bottom:solid 5px #999999; padding-bottom:20px">
<h3>Abstract (*) Hack</h3>
<p>  Abstract used when you want to apply some CSS class especially in ie. here is the way we can use it.</p>
<p>  <b>Only for IE6</b><br />
  <code><font color="#999999">/* the following rules apply only to IE6 */</font><br />
  * html{}<br />
  * html body{}<br />
  <font color="#0000FF">* html .maindiv</font>{width:500px;}<br />
</code><br />
<br />
<b>Only for IE7</b><br />
<code><font color="#999999">/* the following rules apply only to IE7 */</font><br />
<font color="#0000FF">*+html .maindiv</font>{width:800px;}</code></div>
<div style="margin:5px; padding:5px; border-bottom:solid 5px #999999; padding-bottom:20px">
<h3>Opacity</h3>
<p>  Opacity is use to create transparent element, This is not yet a CSS standard. However, it works in all modern browsers, and is a part of the W3C CSS 3 recommendation.</p>
<p>  <code> &lt;html&gt;<br />
  &lt;head&gt;<br />
  <font color="#FF0000">&lt;style type=&quot;text/css&quot;&gt;</font><br />
  <font color="#0000FF">div.background<br />
  {</font><br />
  width: 500px;<br />
  height: 250px;<br />
  background: url(test.jpg) repeat;<br />
  border: 2px solid black;<br />
  <font color="#0000FF">}<br />
  div.transbox<br />
  {</font><br />
  width: 400px;<br />
  height: 180px;<br />
  margin: 30px 50px;<br />
  background-color: #ffffff;<br />
  border: 1px solid black;<br />
  <font color="#999999">/* for IE */</font><br />
  <font color="#990000">filter:alpha(opacity=60);</font><br />
  <font color="#999999">/* CSS3 standard */</font><br />
  <font color="#990000">opacity:0.6;</font><br />
  <font color="#999999">/* for Firefox*/</font><br />
  <font color="#990000">-moz-opacity:.60; </font><br />
  <font color="#0000FF">}<br />
  div.transbox p<br />
  {</font><br />
  margin: 30px 40px;<br />
  font-weight: bold;<br />
  color: #000000;<br />
  <font color="#0000FF">}</font><br />
  <font color="#FF0000">&lt;/style&gt;</font><br />
  &lt;/head&gt;</p>
<p> <code><br />
  &lt;body&gt;<br />
  <font color="#0000FF">&lt;div </font>class=&quot;background&quot;<font color="#0000FF">&gt;</font><br />
  <font color="#0000FF">&lt;div </font>class=&quot;transbox&quot;<font color="#0000FF">&gt;</font><br />
  &lt;p&gt;This is some text that is placed in the transparent box.<br />
  This is some text that is placed in the transparent box.<br />
  This is some text that is placed in the transparent box.<br />
  This is some text that is placed in the transparent box.<br />
  This is some text that is placed in the transparent box.<br />
  &lt;/p&gt;<br />
  <font color="#0000FF">&lt;/div&gt;<br />
&lt;/div&gt;</p>
<p>  </font>&lt;/body&gt;<br />
&lt;/html&gt;<br />
  </code>  </div>
<div style="margin:5px; padding:5px; border-bottom:solid 5px #999999; padding-bottom:20px">
<h3>&quot;min-height&quot; Hack</h3>
<p>    The min-height property sets the minimum height of an element.</p>
<p>    <b>CSS</b> <code> <font color="#FF0000">.divcss</font> <font color="#0000FF">{</font><br />
      min-width:500px;<br />
      width:auto; <font color="#FF0000">!important</font><br />
      width:600px;<br />
      background-color:#CCCCCC;<br />
  <font color="#0000FF">}</font></code></p>
<p>  <b>HTML</b> <code><font color="#0000FF">&lt;div <font color="#FF0000">class=&quot;divcss&quot;</font>&gt;</font>&amp;nbsp;<font color="#0000FF">&lt;/div&gt;</font></code></div>
<div style="margin:5px; padding:5px; border-bottom:solid 5px #999999; padding-bottom:20px">
<h3>CSS Reset</h3>
<p>  <code> &lt;html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {<br />
  border:0pt none;<br />
  font-family:inherit;<br />
  font-size:100%;<br />
  font-style:inherit;<br />
  font-weight:inherit;<br />
  margin:0pt;<br />
  outline-color:invert;<br />
  outline-style:none;<br />
  outline-width:0pt;<br />
  padding:0pt;<br />
  vertical-align:baseline;<br />
  }<br />
  table {<br />
  border-collapse:separate;<br />
  border-spacing:0pt;<br />
  }<br />
  caption, th, td {<br />
  font-weight:normal;<br />
  text-align:left;<br />
  }<br />
  blockquote:before, blockquote:after, q:before, q:after {<br />
  content:&quot;&quot;;<br />
  }<br />
  blockquote, q {<br />
  quotes:&quot;&quot; &quot;&quot;;<br />
  }<br />
  strong {<br />
  font-weight:bold;<br />
  }<br />
  em {<br />
  font-style:italic;<br />
  }<br />
  * {<br />
  margin:0pt;<br />
  padding:0pt;<br />
  }<br />
  </code>  </div>
]]></content:encoded>
			<wfw:commentRss>http://www.hiddenpixels.com/css-stuffs/css-hacks/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>CSS Tips &amp; Tricks</title>
		<link>http://www.hiddenpixels.com/css-stuffs/css-tips-tricks/</link>
		<comments>http://www.hiddenpixels.com/css-stuffs/css-tips-tricks/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 08:26:43 +0000</pubDate>
		<dc:creator>HPadmin</dc:creator>
				<category><![CDATA[CSS Stuffs]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Sample]]></category>
		<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[CSS Tips & Tricks]]></category>
		<category><![CDATA[CSS Tricks]]></category>

		<guid isPermaLink="false">http://hiddenpixels.com/?p=179</guid>
		<description><![CDATA[CSS Tips &#38; Tricks Rounded corners and shadowed boxes (fixed Width) CSS3 will have properties to make rounded borders, borders consisting of images and boxes with shadows, but with some work you can simulate some of them already with CSS2 — and without any tables or extra mark-up. But unfortunatly CSS3 is not supported by [...]]]></description>
			<content:encoded><![CDATA[<h1>CSS Tips &amp; Tricks</h1>
<div>
<h3><a target="_blank" href="http://www.w3.org/Style/Examples/007/roundshadow" target="_blank">Rounded corners and shadowed boxes (fixed Width)</a></h3>
<p><a target="_blank" href="http://www.w3.org/Style/Examples/007/roundshadow" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks1.jpg" alt="" hspace="5" vspace="5" border="0"></a><br />
CSS3 will have properties to make rounded borders, borders consisting of images and boxes with shadows, but with some work you can simulate some of them already with CSS2 — and without any tables or extra mark-up. But unfortunatly CSS3 is not supported by IE, here is CSS2.1 example to create Rounded corners and shadowed boxes.
</div>
</p>
<div>
<h3><a target="_blank" href="http://virtuelvis.com/gallery/css/rounded/" target="_blank">Rounded corners in CSS (Fluid Width) </a></h3>
<p><a target="_blank" href="http://virtuelvis.com/gallery/css/rounded/" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks2.jpg" alt="" hspace="5" vspace="5" border="0"></a><br />
Rounded corners in CSS has become sort of a holy grail. The problem with most of the rounded corner techniques is that they require alteration of the HTML document itself, which means that retrofitting it onto an existing design may require a lot of effort. However, there is a solution that will allow you to retrofit this to existing designs without altering any markup. Take a look at the example.
</div>
</p>
<div>
<h3><a target="_blank" href="http://www.spiffycorners.com/" target="_blank">Rounded Corners Without Images!</a></h3>
<p><a target="_blank" href="http://www.spiffycorners.com/" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks6.jpg" alt="" hspace="5" vspace="5" border="0"></a></p>
<p>A very nice tool from where you can generate CSS and HTML code for code for Rounded Corners Without Images..
</p>
</div>
<div>
<h3><a target="_blank" href="http://www.w3.org/Style/Examples/007/menus" target="_blank">A pinned-down menu</a></h3>
<p><a target="_blank" href="http://www.w3.org/Style/Examples/007/menus" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks3.jpg" alt="" hspace="5" vspace="5" border="0" align="left"></a><br />
The menu you see in the left of this page is simply a DIV with some A elements inside. All the work to make it stay fixed in its place is done by rules in the style sheet. Here is the mark-up, it is taken straight from the source of this page:
</div>
<p><br style="clear:both"></p>
<div>
<h3><a target="_blank" href="http://www.w3.org/Style/Examples/007/menus" target="_blank">A confetti menu</a></h3>
<p><a target="_blank" href="http://www.w3.org/Style/Examples/007/menus" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks5.jpg" alt="" hspace="5" vspace="5" border="0" /></a><br />
The colorful menu you see abovc is simply a DIV element with a few P elements inside. The visual effect is due to the fact that each P element is positioned individually and has its own font and color. It works best with short texts, because the visual effect is based on overlap, but if the text is too long, it overlaps so much that it becomes hard to read.
</div>
</p>
<div>
<h3><a target="_blank" href="http://www.mandarindesign.com/troops.html" target="_blank">Text Tricks </a></h3>
<p><a target="_blank" href="http://www.mandarindesign.com/troops.html" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks8.jpg" alt="" hspace="5" vspace="5" border="0" align="left"></a></p>
<p>Daisy likes the way the drop cap makes its own little box, which is a good reminder that everything in CSS is a box. And because it is a box we can take our crayons out and color the background and outline the box. The letter &quot;D&quot; for Daisy is in a box, the paragraph is a box, and every piece of text here is in a box. The code for the dropcap is simple, but we can fancy it up a bit. We use the inline CSS for fiddling with the look. We put our drop cap in a span
</p>
</div>
<p><br style="clear:both" /></p>
<div>
<h3><a target="_blank" href="http://www.smileycat.com/miaow/archives/000230.html" target="_blank">CSS Block Hover Effect</a></h3>
<p><a target="_blank" href="http://www.smileycat.com/miaow/archives/000230.html" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks9.jpg" alt="" hspace="5" vspace="5" border="0"></a></p>
</div>
<p><br style="clear:both" /></p>
<div>
<h3><a target="_blank" href="http://www.456bereastreet.com/archive/200609/automatic_pullquotes_with_javascript_and_css/" target="_blank">CSS Pullquotes </a></h3>
<p><a target="_blank" href="http://www.456bereastreet.com/archive/200609/automatic_pullquotes_with_javascript_and_css/" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks10.jpg" alt="" hspace="5" vspace="5" border="0"></a></p>
</div>
<p><br style="clear:both" /></p>
<div>
<h3><a target="_blank" href="http://www.smashingmagazine.com/2006/11/11/css-based-forms-modern-solutions/" target="_blank">CSS-Based Forms</a></h3>
<p><a target="_blank" href="http://www.smashingmagazine.com/2006/11/11/css-based-forms-modern-solutions/" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks11.jpg" alt="" hspace="5" vspace="5" border="0" align="left"></a> Web 2.0 registration and feedback forms can be found everywhere. Every start-up tries to attract visitors’ attention, so web-forms are becoming more and more important for the success of any company. In the end, exactly those web-forms are responsible for the first contact with potential customers. Let’s take a look, which modern solutions a web-developer can use, designing his/her next css-based form</p>
</div>
<p><br style="clear:both" /></p>
<div>
<h3><a target="_blank" href="http://ghettocooler.net/2005/11/13/image-floats-without-the-text-wrap/" target="_blank">Image floats, without the text wrap</a></h3>
<p><a target="_blank" href="http://ghettocooler.net/2005/11/13/image-floats-without-the-text-wrap/" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks12.jpg" alt="" hspace="5" vspace="5" border="0" align="left"></a> How many times do you have an image floated left in a block of content, but want to keep that content from wrapping around your image? You’ve tried to accomplish this before, but what you really need is something that plays nicely with any HTML &amp; any amount of content you, or more realistically, your database can throw at it. The example below can easily fall apart without the proper CSS in place:</p>
</div>
<p><br style="clear:both" /></p>
<div>
<h3><a target="_blank" href="http://www.smashingmagazine.com/2006/12/29/css-based-tables-modern-solutions/" target="_blank">CSS-Based Tables</a></h3>
<p><a target="_blank" href="http://www.smashingmagazine.com/2006/12/29/css-based-tables-modern-solutions/" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks13.jpg" alt="" hspace="5" vspace="5" border="0" align="left"></a> We coninue to present some of the best CSS-techniques which web-developers can always use working on their current web-project. Recently we’ve taken a look at the best css-based forms, today we present some useful techniques for displaying information in a tabular mode. In fact, tables can present data quite efficiently, particularly if you can use some sorting or filtering functions in order to improve the legibility of the text stored in the table. Furthermore, Zebra tables are becoming more and more popular, and the techniqies supposed to enhance their functionality appear on a weekly basis.</p>
</div>
<p><br style="clear:both" /></p>
<div>
<h3><a target="_blank" href="http://www.bioneural.net/2006/04/01/create-a-valid-css-alert-message/" target="_blank">CSS-Based Tables</a></h3>
<p><a target="_blank" href="http://www.bioneural.net/2006/04/01/create-a-valid-css-alert-message/" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks14.jpg" alt="" hspace="5" vspace="5" border="0"></a></div>
</p>
<div>
<h3><a target="_blank" href="http://www.webcredible.co.uk/user-friendly-resources/css/more-css-tricks.shtml" target="_blank">More CSS Tips &amp; Tricks</a></h3>
<p><a target="_blank" href="http://www.webcredible.co.uk/user-friendly-resources/css/more-css-tricks.shtml" target="_blank"><img src="http://hiddenpixels.com/wp-content/uploads/2008/08/css-tips-tricks7.jpg" alt="" hspace="5" vspace="5" border="0"></a></p>
<p>Here are around 10 new and 10 older version of Tips &amp; Tricks of CSS, they all are nice&#8230;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.hiddenpixels.com/css-stuffs/css-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
