<?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>Mahbubur Rahman - jQuery, PHP, JavaScript, Codeigniter, CSS &#187; CSS</title>
	<atom:link href="http://www.mahbubblog.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mahbubblog.com</link>
	<description>PHP, JQUERY, JAVASCRIPT fun</description>
	<lastBuildDate>Thu, 02 Jun 2011 09:28:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A CSS3 404 Error Page for your Codeigniter Application</title>
		<link>http://www.mahbubblog.com/codeigniter/a-css3-404-error-page-for-your-codeigniter-application/</link>
		<comments>http://www.mahbubblog.com/codeigniter/a-css3-404-error-page-for-your-codeigniter-application/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 08:11:55 +0000</pubDate>
		<dc:creator>Mahbub</dc:creator>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.mahbubblog.com/?p=318</guid>
		<description><![CDATA[How would this look ? Instead of the boring Want the Code ? There you go ! Just paste the  code in your application/errors/error404.php. &#60; ?php header(&#34;HTTP/1.1 404 Not Found&#34;); ?&#62; &#60; !DOCTYPE html PUBLIC &#34;-//W3C//DTD HTML 4.01 Transitional//EN&#34;&#62; &#60;html&#62;&#60;head&#62; &#60;meta http-equiv=&#34;content-type&#34; content=&#34;text/html;charset=ISO-8859-1&#34;&#62; &#60;title&#62;404 Not Found&#60;/title&#62; &#60;style type=&#34;text/css&#34; media=&#34;screen&#34;&#62; body { color: white; background-color: #AAA; [...]]]></description>
			<content:encoded><![CDATA[<p>How would this look ?</p>
<p><a href="http://www.mahbubblog.com/wp-content/uploads/2011/06/css3-404-ci.png"><img class="alignnone size-large wp-image-319" title="css3-404-ci" src="http://www.mahbubblog.com/wp-content/uploads/2011/06/css3-404-ci-1024x582.png" alt="CSS3 404 Error Page for Codeigniter" width="1024" height="582" /></a></p>
<p>Instead of the boring</p>
<p><a href="http://www.mahbubblog.com/wp-content/uploads/2011/06/boring-404.png"><img class="alignnone size-large wp-image-321" title="boring-404" src="http://www.mahbubblog.com/wp-content/uploads/2011/06/boring-404-1024x507.png" alt="Boring Codeigniter Error Page" width="1024" height="507" /></a></p>
<p>Want the Code ? There you go ! Just paste the  code in your application/errors/error404.php.</p>
<pre class="brush: php">
&lt; ?php header(&quot;HTTP/1.1 404 Not Found&quot;); ?&gt;
&lt; !DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;&lt;head&gt;
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=ISO-8859-1&quot;&gt;
&lt;title&gt;404 Not Found&lt;/title&gt;
&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
body
{
color: white;
background-color: #AAA;
margin: 0px;
font-family:&quot;Droid Sans&quot;,Arial;
}

#horizon
{
color: white;
background-color: #37AEB6;
text-align: center;
position: absolute;
top: 50%;
left: 0px;
width: 100%;
height: 0px;
overflow: visible;
visibility: visible;
display: block
}

#content
{
margin-left: -205px;
position: absolute;
top: -34px;
left: 50%;
width: 380px;
height: 60px;
padding:10px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
-moz-box-shadow: 0 0 15px rgba(255,255,255,.9);
-webkit-box-shadow: 0 0 15px rgba(255,255,255,.9);
text-shadow: 0px 0px 1px #000;
visibility: visible;
background: rgb(155,0,0);
background:-webkit-gradient( linear, left bottom, left top, color-stop(0.24, rgb(250,0,0)), color-stop(0.89, rgb(128,20,20)) );
background:-moz-linear-gradient( center bottom, rgb(250,0,2) 24%, rgb(128,20,20) 89%);
}

.bodytext
{
font-weight:bold;
font-size: 13px;
text-transform:uppercase;
}

.headline
{
font-weight: normal;
font-size: 30px;
text-shadow: 0px 0px 4px #000;
line-height:38px;
}

a:link, a:visited
{
color: #06f;
text-decoration: none
}

a:hover
{
color: red;
text-decoration: none
}

.captions
{
color: white;
font-size: 10px;
line-height: 14px;
font-family: Verdana, Geneva, Arial, sans-serif;
text-align: left
}
&lt;/style&gt;
&lt;/meta&gt;&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;horizon&quot;&gt;
&lt;div id=&quot;content&quot;&gt;
&lt;div class=&quot;bodytext&quot;&gt;
&lt;span class=&quot;headline&quot;&gt;404&lt;/span&gt;&lt;br /&gt;
Sorry, the page you&#039;re looking for is not found&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;footer&quot;&gt;

&lt;/div&gt;

&lt;/body&gt;&lt;/html&gt;
</pre>
<p>&nbsp;</p>
<p>There&#8217;s CSS3 Drop Shadow, Text Shadow and Gradient. Nowadays people are using latest browsers and it&#8217;s likely that people will see the page like the image for most of the popular browsers .</p>
<p>Of course you can use it for any 404 page for any PHP app OR if you like it you can even replace your apache 404 page (hosting specific) with this one [Just remove the php codes from top]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mahbubblog.com/codeigniter/a-css3-404-error-page-for-your-codeigniter-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto Resize Large Images in Blog Post</title>
		<link>http://www.mahbubblog.com/css/auto-resize-large-images-in-blog-post/</link>
		<comments>http://www.mahbubblog.com/css/auto-resize-large-images-in-blog-post/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 06:52:55 +0000</pubDate>
		<dc:creator>Mahbub</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[autoresize]]></category>
		<category><![CDATA[image resize]]></category>
		<category><![CDATA[large image]]></category>

		<guid isPermaLink="false">http://www.mahbubblog.com/?p=216</guid>
		<description><![CDATA[I ran into this problem recently and found a good fix. As we make custom CMS, blogs as parts of websites, we frequently use some WYSIWYG editors like TINYMCE. Now when you enable people to post contents along with image urls, people may enter an image url which possibly is much larger than the available [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into this problem recently and found a good fix. As we make custom CMS, blogs as parts of websites, we frequently use some WYSIWYG editors like TINYMCE. Now when you enable people to post contents along with image urls, people may enter an image url which possibly is much larger than the available width we have in the page layout. Perhaps most of the images may become larger as we would only get around 650px of width when we are using 960px standard layout with some sort of sidebars.</p>
<p>So the user&#8217;s posted image in the blog post may overflow the layout. What to do then ??</p>
<p>1. We want to keep the image within the available width (may be 600px).</p>
<p>2. We also want to keep the aspect ratio intact so that the dimension doesn&#8217;t get messed up.</p>
<p>After googling in some pages I had to combine the CSS solution which works for most of the modern browsers (certainly not IE6).</p>
<p>So here&#8217;s the neat solution totally in CSS.</p>
<p><span style="font-family: courier new,courier;">#post_view img {</span></p>
<p>max-width: 620px;</p>
<p>height: auto !important;</p>
<p>width: expression(this.width &gt; 620 ? 620: true);</p>
<p>}</p>
<p>The above snippet assumes that your ID for the container (i.e DIV) is post_view. I&#8217;d discourage using class here because ID has a higher order of preference when it comes to override CSS rules.</p>
<p>So, all the image who exceeds the width of 620px will be automatically resized to 620px. Images below 620px will not be affected at all. The height: auto !important; will keep the aspect ratio of the image to the original ratio.</p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>Compatibility: </strong></p>
<p>Firefox 3</p>
<p>Opera 10</p>
<p>IE 7 (I don&#8217;t care if it works in IE 6 or not)</p>
<p>Chrome</p>
<p>Safari 4 (win) [ Don't know about Mac cuz i don't have any <img src='http://www.mahbubblog.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  ]</p>
<h2><strong>EXAMPLE :</strong></h2>
<div id="post_view"><img title="429917" src="/wp-content/uploads/2010/02/429917.jpg" alt="example image" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mahbubblog.com/css/auto-resize-large-images-in-blog-post/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>9 cool css headers i frequently use</title>
		<link>http://www.mahbubblog.com/css/9-cool-css-headers-i-frequently-use/</link>
		<comments>http://www.mahbubblog.com/css/9-cool-css-headers-i-frequently-use/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 11:02:02 +0000</pubDate>
		<dc:creator>Mahbub</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css headers]]></category>
		<category><![CDATA[styles]]></category>

		<guid isPermaLink="false">http://www.mahbubblog.com/?p=76</guid>
		<description><![CDATA[CSS, CSS and CSS, that&#8217;s what you should know well to even judge some designs. I&#8217;m basically a programmer but I think i can do some kick ass designs too. From the very beginning of web development, i learned both Web programming and designing. There used be a tool called &#34;Top Style Lite&#34;. It&#8217;s still [...]]]></description>
			<content:encoded><![CDATA[<p>CSS, CSS and CSS, that&#8217;s what you should know well to even judge some designs. I&#8217;m basically a programmer but I think i can do some kick ass designs too. From the very beginning of web development, i learned both Web programming and designing. There used be a tool called &quot;Top Style Lite&quot;. It&#8217;s still there btw. I used to use that to do tests with CSS properties of HTML elements. It&#8217;s long ago may be around 2000-2001. But in recent years, especially from 2006, we see a boom in web trends. The Web 2.0 thing where css is extensively used to make appealing pages. It doesn&#8217;t get better on your concept if you don&#8217;t keep browsing better styled sites.&nbsp;From last year, smashingmagazine.com has been a really cool site to bring up the state of the art collection of tools for web developers. Things are pretty available these days. Wish it was there 5-6 years back!!</p>
<p>Anyways, using a good header will completely change the looks of your page especially some pages like your blog. And choosing cool headers is always a dilemma, at least to me. So i keep playing the css properties and look how they can be improved. Of course i get inspired from many sites. But i have my own style gallery of headers which i normally use. Take a look at this.</p>
<p><a href="http://www.mahbubblog.com/wp-content/uploads/2009/03/headers.html"><img alt="fav_headers" title="fav_headers" width="450" height="338" class="alignnone size-full wp-image-77" src="http://www.mahbubblog.com/wp-content/uploads/2009/03/fav_headers.jpg" /></a></p>
<p>This is one of the gallery of headers i most commonly use in web apps. Although i&#8217;m not in charge of designs in the company i work, i try to influence when i see it can look better. These headers use most common fonts which are generally available in operating systems. You can <a target="_blank" href="http://www.mahbubblog.com/wp-content/uploads/2009/03/headers.html">take the file&nbsp;</a>&nbsp;if you like. Hope it helps some people <img src='http://www.mahbubblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &nbsp;</p>
<p>I&#8217;ll write a post about my favorite picks on content text styles later.&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mahbubblog.com/css/9-cool-css-headers-i-frequently-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

