<?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; CSS</title>
	<atom:link href="http://topweb2.net/blog/category/css/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>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>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>
