<?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>Top Web2 &#187; web2</title>
	<atom:link href="http://topweb2.net/blog/category/web2/feed" rel="self" type="application/rss+xml" />
	<link>http://topweb2.net/blog</link>
	<description>Javascript , CSS , XHTML  , Web 2 ,PHP  and more</description>
	<lastBuildDate>Tue, 11 May 2010 13:56:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>seo friendly ajax</title>
		<link>http://topweb2.net/blog/seo-friendly-ajax</link>
		<comments>http://topweb2.net/blog/seo-friendly-ajax#comments</comments>
		<pubDate>Tue, 04 May 2010 13:39:47 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[web2]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=113</guid>
		<description><![CDATA[hey guys its been a long time since last time i wrote in this blog , i want you to excuse me for that because it was a tough time to me , any way lets hit the point in this article we are here to talk about most technique used today in the modern [...]]]></description>
			<content:encoded><![CDATA[<p>hey guys its been a long time since last time i wrote in this blog , i want you to excuse me for that because it was a tough time to me , any way lets hit the point in this article we are here to talk about most technique used today in the modern web site .</p>
<p>the main reason that makes me writing this articles is one of my friends told me that he is not going to use ajax in his web site because he needs to be highly seo optimized.</p>
<p>many reason that makes my friend and many other think like that is poor developers that uses this technology in the bad way , you can write javascript code to perform ajax in many ways some of it can get the benefits of seo and we are here to clear and study that ways so lets begin</p>
<p>first : google or other search engines cant crawl javascript so the secret is dont EVER let javascript handle the links without html support in another meaning lets see that example</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;mylink.html&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;anyone.jpg&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;anyone.jpg&quot;</span> onclick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;location.href='mylink.html'&quot;</span> <span style="color: #339933;">/&gt;</span></pre></div></div>

<p>the two lines declare two simple ways to link and the two ways actually work but one of them is seo friendly which is the first one because we use simple html tag attribute (href)</p>
<p>the same thing in the ajax make the links in simple anchors with (href) attribute but handle click event of this anchor make the ajax request and prevent the browser default action by returning false</p>
<p>lets see it in action</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a.ajx'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.response'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ajaxfile.html'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ajaxfile.html&quot;</span> <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;ajx&quot;</span><span style="color: #339933;">&gt;</span>Click me i am seo friendly ajax link<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div <span style="color: #003366; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;response&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>when search engine crawel the page it reads only the html tags so he read this anchor and (href) attribute and follow the page ajaxfile.html to crawel it and add it to the site map</p>
<p>and when human go to this page and click on the link the click event fired and we do tha ajax request and because the return false the page never reloaded</p>
<p>this is the point think as the search engine and you will win</p>
<p>feel free to feedback me</p>
<p>thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/seo-friendly-ajax/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apache mod rewrite tips and tricks</title>
		<link>http://topweb2.net/blog/apache-mod-rewrite-tips-and-tricks</link>
		<comments>http://topweb2.net/blog/apache-mod-rewrite-tips-and-tricks#comments</comments>
		<pubDate>Tue, 03 Nov 2009 17:50:28 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[web2]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=97</guid>
		<description><![CDATA[hi there
we will talk to day about the most common techniques on the web nowadays &#8211; yes thats right we will talk about mod rewrite that awesome module that brings static urls benefits into dynamic contents
ok lets start


1- check for the module before rewrite:-
before you use rewrite check for the module in htaccess by doing [...]]]></description>
			<content:encoded><![CDATA[<p>hi there</p>
<p>we will talk to day about the most common techniques on the web nowadays &#8211; yes thats right we will talk about mod rewrite that awesome module that brings static urls benefits into dynamic contents</p>
<p>ok lets start</p>
<p><span id="more-97"></span></p>
<p><img class="alignnone" src="http://topweb2.net/blog/wp-content/uploads/2009/apache.jpg" alt="" width="320" height="240" /></p>
<p>1- check for the module before rewrite:-</p>
<p>before you use rewrite check for the module in htaccess by doing this</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;</span></p>
<p><span>#here is the rewrite rules and conditions</span></p>
<p><span>&lt;</span>/IfModule&gt;</p>
<p>this is more tidy and clean code it just ensure the you have mod rewrite module installed and loaded with apache before run the rewrite code</p>
<p>2- rewrite css and images and other files:-</p>
<p>on of the most issues you will gonna face in rewrite is image and css not being rewrite in the web</p>
<p>here is example</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteRule (.*)  index.php?url=$1  [L]<br />
&lt;</span>/IfModule&gt;</p>
<p>this rule will rewrite all urls to index.php with parameter url but in this conditions all urls will rewrite including images and css and js files and that will produce errors</p>
<p>so we can fix this problem by telling rewrite that rewrite only notfound urls but the existing files will exculde from rewrite by adding this two lines before rewrite rule</p>
<p>RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d</p>
<p>the first line will exclude exsiting folders and the second will exclude files</p>
<p>here is the last code</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;<br />
RewriteEngine On</span></p>
<p><span><br />
</span>RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d</p>
<p><span> RewriteRule (.*)  index.php?url=$1  [L]<br />
&lt;</span>/IfModule&gt;</p>
<p>3- rewrite and wildcard domains:-</p>
<p>do you want to controll subdomains via script this is the right choice</p>
<p>we will do this in steps</p>
<p>first you just will added *.domain to be treated like www.domain.com by adding this line in httpd.conf</p>
<p>ServerAlias www.domain.com domain.com *.domain.com</p>
<p>then you have to create the rewrite</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;<br />
Options +FollowSymLinks<br />
Options +Indexes<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} !www.domain.com$ [NC]<br />
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com [NC]<br />
RewriteRule (.*) %2/$1 [L]<br />
&lt;</span>/IfModule&gt;</p>
<p>4- with www or without it :-</p>
<p>you can use rewrite to force www to be added in the domains , that is very useful is search engine optimization &#8211; SEO</p>
<p>you can do it by this code</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;<br />
Options +FollowSymLinks<br />
Options +Indexes<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} ^domain\.com$<br />
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]<br />
&lt;</span>/IfModule&gt;</p>
<p>5- 301 redirect :-</p>
<p>if you want to redirect page to another never ever use meta redirect or javascript redirect because its too bad for search engines coz its a common way for the spammers and absolutely you dont want to be  a spammer in search engines eye</p>
<p>the right way is 301 redirect ( search engine friendly redirect )</p>
<p>you can do it like that :</p>
<p>&lt;<span>IfModule mod_rewrite.c&gt;<br />
Options +FollowSymLinks<br />
Options +Indexes<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteRule ^moved_page.html$  new_page.html [R=301,L]<br />
&lt;</span>/IfModule&gt;</p>
<p>you will notice the we used tag R with value 301 that means we will refresh with 301 notice the means moved permanently</p>
<p>thats all i have for now</p>
<p>if you have any questions dont hesitate comment here <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/apache-mod-rewrite-tips-and-tricks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>internet explorer support HTML5 by google magic</title>
		<link>http://topweb2.net/blog/internet-explorer-support-html5-by-google-magic</link>
		<comments>http://topweb2.net/blog/internet-explorer-support-html5-by-google-magic#comments</comments>
		<pubDate>Thu, 24 Sep 2009 12:26:34 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[web2]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[chromeframe]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=92</guid>
		<description><![CDATA[thats not a joke , google surprise us with an amazing plugin to internet explorer 6,7,8 to get html5 tags working correctly on internet explorer 6,7,8
google called this plugin chromeframe and  according to google google chrome frame is an open source plugin that bring google chrome technology to internet explorer
the next video shows the power [...]]]></description>
			<content:encoded><![CDATA[<p>thats not a joke , google surprise us with an amazing plugin to internet explorer 6,7,8 to get html5 tags working correctly on internet explorer 6,7,8</p>
<p>google called this plugin chromeframe and  according to google google chrome frame is an open source plugin that bring google chrome technology to internet explorer</p>
<p>the next video shows the power of the google chromeframe the google plugin</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/sjW0Bchdj-w&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/sjW0Bchdj-w&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>what you are waiting for ,  if you are using internet explorer get the plugin now</p>
<p><a href="http://code.google.com/chrome/chromeframe/" target="_blank">http://code.google.com/chrome/chromeframe/ </a></p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/internet-explorer-support-html5-by-google-magic/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css3 magic</title>
		<link>http://topweb2.net/blog/css3-magic</link>
		<comments>http://topweb2.net/blog/css3-magic#comments</comments>
		<pubDate>Wed, 23 Sep 2009 19:39:07 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[web2]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=76</guid>
		<description><![CDATA[we will talking today about the awesome css3 features the implemented by w3 supported with many browsers on top of them safai and google chrome and of cource firefox
1- background image size:-
with css2 it was impossible to define a size to background image  but with css3 you can simply define the background image size by [...]]]></description>
			<content:encoded><![CDATA[<p>we will talking today about the awesome css3 features the implemented by w3 supported with many browsers on top of them safai and google chrome and of cource firefox</p>
<p>1- background image size:-</p>
<p>with css2 it was impossible to define a size to background image  but with css3 you can simply define the background image size by a few css lines</p>
<p>you can add something like that if we want 100% background size in css3</p>
<pre>background:transparent url(img/simplebg.jpg) no-repeat;</pre>
<pre>background-size: 100%;</pre>
<p>simple , isn&#8217;l <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  , but wait</p>
<p>you tried it and it  didn&#8217;t work with you ??</p>
<p>unforunately that will face you much when you dealing with css 3 issues becasue it doesnt implemented the same way in all browsers and doesn&#8217;t implemented yet in browsers such as internet explorer</p>
<p>so we will add some lines to work in the most browsers</p>
<p>-o-background-size for opera browser</p>
<p>-webkit-background-size for webkit engine browsers -&gt; safari and google chrome</p>
<p>unfortunately it didn&#8217;t work with firefox</p>
<p>so our code will be</p>
<pre>background:transparent url(img/simplebg.jpg) no-repeat;</pre>
<pre>background-size: 100%;
-o-background-size: 100%;
-webkit-background-size: 100%</pre>
<p>2- multi background :-</p>
<p>another awesome feature in css3 is multi background</p>
<p>you can add multi background to one container , you think its hard look at this</p>
<pre>background:url(img/twiter.png) no-repeat top right,url(img/simplebg.jpg) no-repeat top left;</pre>
<p>simple and easy  thats it</p>
<p>important note :-</p>
<p>the order is very important here because the first image will be above the next one etc..</p>
<p>we can merge the previous features together like that</p>
<pre>background:url(img/twiter.png) no-repeat top right,url(img/simplebg.jpg) no-repeat top left;</pre>
<pre>-webkit-background-size:auto  auto, 100%;</pre>
<p>3 - background-border :-</p>
<p>yes you can now define a background to be a border to a container</p>
<p>see the  next image</p>
<p><img class="alignnone" title="css3 border image" src="http://www.w3.org/TR/2008/WD-css3-background-20080910/slice" alt="" width="388" height="304" /></p>
<p>you can define the border cordinations like that</p>
<pre>border-image:url("img/simpleborder.png") 25% 30% 12% 20%</pre>
<p>we can use some reserved words like (stretch,repeat,round)</p>
<p>and we will add some extentions to work with most common browsers</p>
<pre>-webkit-border-image:url("img/simpleborder.png") 25% 30% 12% 20%;</pre>
<pre>-moz-border-image: url("img/simpleborder.png") 25% 30% 12% 20%;</pre>
<pre>-o-border-image: url("img/simpleborder.png") 25% 30% 12% 20%;</pre>
<pre>-khtml-border-image: url("img/simpleborder.png") 25% 30% 12% 20%;</pre>
<p>4-  transparent colors:-</p>
<p>we was doing transparent colors by making the global container transparent via obacity features  but now you can simply make the  background colors only transparent by rgba</p>
<pre>rgba(0,0,0,0.5)</pre>
<p>the first 3 values is the rgb  values and the last value is the obacity value</p>
<p>note: there is a code from webdesignerdepot <a href="http://www.webdesignerdepot.com/2009/08/5-css3-design-enhancements-that-you-can-use-today/" target="_blank">http://www.webdesignerdepot.com/2009/08/5-css3-design-enhancements-that-you-can-use-today</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/css3-magic/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>html5 &#8211; introduction</title>
		<link>http://topweb2.net/blog/html5-introduction</link>
		<comments>http://topweb2.net/blog/html5-introduction#comments</comments>
		<pubDate>Fri, 14 Aug 2009 13:51:19 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[web2]]></category>
		<category><![CDATA[ecma script]]></category>
		<category><![CDATA[w3]]></category>

		<guid isPermaLink="false">http://topweb2.net/blog/?p=42</guid>
		<description><![CDATA[hi every body
sorry for not being posting past days thats because i was busy , today we will talk about awesome technology , we will talk about the new html , html5
the w3 team decided that there will no longer going to develop XHTML to focus on develop HTML5 and define its standard , so [...]]]></description>
			<content:encoded><![CDATA[<p>hi every body<br />
sorry for not being posting past days thats because i was busy , today we will talk about awesome technology , we will talk about the new html , html5</p>
<p>the w3 team decided that there will no longer going to develop XHTML to focus on develop HTML5 and define its standard , so if you want to be up to date with web technology you must learn html5 as soon as possible</p>
<p>if you have a text editor and website you now ready to learn it , so come on with me , go on html5</p>
<p>why html5?</p>
<p>html5 is most interactive most flexible than other release of html , and all of the browsers will be supports it and most of complex things that we was usually doing it in dozens on code you will be able to do that in html5 with just a line of code</p>
<p>when i will be ready to use html5?<br />
now ,  yes now you can use html5 immedialtely but in ie you will face some problems becasue they dont support all html5 features yet</p>
<p>why i use it if html5 not crossbrowser technology??<br />
who says that , html5 is not yet a w3 recommedition thats a true , but it will be soon , and now all browsers except ie supports it , don&#8217;t be shy and try it</p>
<p>where i can start?<br />
ok you can start here in my blog i will post tutorials on html5 and javascript2 , and if you love to read you can see the draft on w3.org site  <a href="http://www.w3.org/TR/html5/" target="_blank">http://www.w3.org/TR/html5/ </a></p>
<p>or what  work group draft <a href="http://www.whatwg.org/specs/web-apps/current-work/ " target="_blank">http://www.whatwg.org/specs/web-apps/current-work/ </a></p>
<p>have fun with html5 and see you later</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/html5-introduction/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>css is not only for screen its for print too</title>
		<link>http://topweb2.net/blog/css-print-stylesheet</link>
		<comments>http://topweb2.net/blog/css-print-stylesheet#comments</comments>
		<pubDate>Wed, 08 Apr 2009 16:33:40 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[web2]]></category>

		<guid isPermaLink="false">http://topweb2.net/?p=30</guid>
		<description><![CDATA[CSS Print Stylesheet:-
many of us working on css to style web page for the visitors
you may added this line before in your page

&#60;link rel="stylesheet" type="text/css" href="cssfile.css" /&#62;

ok the css file now will affect the screen but what if we want the css affect the print
yes we want the visitor print the page but without the [...]]]></description>
			<content:encoded><![CDATA[<h2>CSS Print Stylesheet:-</h2>
<p>many of us working on css to style web page for the visitors<br />
you may added this line before in your page<br />
<code><br />
&lt;link rel="stylesheet" type="text/css" href="cssfile.css" /&gt;<br />
</code><br />
ok the css file now will affect the screen but what if we want the css affect the print</p>
<p>yes we want the visitor print the page but without the menu , advertisement .. etc</p>
<p>ok we will now create a  css file and we will name it print.css</p>
<p><span id="more-30"></span></p>
<p>now add this line to your page</p>
<p><code>&lt;link rel="stylesheet" type="text/css" href="print.css" media="print" /&gt;</code></p>
<p>do you notice someting ??<br />
yes , media=&#8221;print&#8221; this tells the browser to use this css file when print</p>
<h3>concepts of print style sheet:-</h3>
<p>1- adjust body margin</p>
<p>adjust the body margin so printed page margin will be as you want not the browser default<br />
you can use this for example<br />
<code><br />
body{margin:0;</p>
<p>border:1px solid #000000;</p>
<p>}</p>
<p>2- use one measure for your fonts and line height and related things:</p>
<p></code></p>
<p>you must use one measure for font size and related things like pt , em so it can display good on your printer</p>
<p> <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>3- page break</p>
<p>the biggest problem will face any developer in print issues is page break , the browsers differ in page break , many times before i used print css if web page is longer than one page it cause pagebreak but if there is image in the middle of that break it will cut and there is a disaster</p>
<p>so you can adjust the page break by<br />
<code><br />
page-break-beforepage-break-after</p>
<p>it tells the browser where to break the page before or after element</p>
<p></code></p>
<p>for example if you want page to break after the div named &#8220;break-div&#8221; you may type this line in print.css<br />
<code><br />
#break-div{page-break-after:always;</p>
<p>}</p>
<p>4- other tips:</p>
<p></code></p>
<p>- don&#8217;t ever use background color or background image in your print stylesheet the visitor will hate you <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>- try to be very simple the visitor when he wants to print your page he wants to keep the information in your page not the design</p>
<p>- just use the print css <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  its better and more professional</p>
<p>enjoy and see you in another post <img src='http://topweb2.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/css-print-stylesheet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>transparent in css</title>
		<link>http://topweb2.net/blog/transparent-in-css</link>
		<comments>http://topweb2.net/blog/transparent-in-css#comments</comments>
		<pubDate>Sat, 04 Apr 2009 16:13:34 +0000</pubDate>
		<dc:creator>Net Code</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[web2]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[opacity]]></category>

		<guid isPermaLink="false">http://topweb2.net/?p=17</guid>
		<description><![CDATA[lets start today talking about exciting issue in lovely css
how to make transparent div in css working in firefox ,internet explorer and opera
ok first lets make a small div

hi i am transparent


ok now in css lets type
.transparent_div{
filter:alpha(opacity=60);
-moz-opacity:.60;
opacity:.60;
}
now you can see your div transparent
i tested the code on firefox , internet explorer and opera
have fun and [...]]]></description>
			<content:encoded><![CDATA[<p>lets start today talking about exciting issue in lovely css<br />
how to make transparent div in css working in firefox ,internet explorer and opera</p>
<p>ok first lets make a small div</p>
<p><code></p>
<div class="transparent_div">hi i am transparent</div>
<p></code></p>
<p><span id="more-17"></span></p>
<p>ok now in css lets type</p>
<p>.transparent_div{<br />
filter:alpha(opacity=60);<br />
-moz-opacity:.60;<br />
opacity:.60;<br />
}</p>
<p>now you can see your div transparent<br />
i tested the code on firefox , internet explorer and opera<br />
have fun and see u</p>
]]></content:encoded>
			<wfw:commentRss>http://topweb2.net/blog/transparent-in-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
