<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>Software related blog &#187; css</title>
	<link>http://www.softrelated.com</link>
	<description>...un blog soft despre soft si nu numai...</description>
	<pubDate>Tue, 15 Apr 2008 12:13:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>TopStyle Pro, CSS la extrem</title>
		<link>http://www.softrelated.com/topstyle-pro-css-la-extrem.html</link>
		<comments>http://www.softrelated.com/topstyle-pro-css-la-extrem.html#comments</comments>
		<pubDate>Mon, 07 Jan 2008 12:45:27 +0000</pubDate>
		<dc:creator>belial</dc:creator>
		
		<category><![CDATA[css]]></category>

		<category><![CDATA[programe]]></category>

		<guid isPermaLink="false">http://www.softrelated.com/topstyle-pro-css-la-extrem.html</guid>
		<description><![CDATA[Un prieten vechi de-al meu este TopStyle Pro. Am inceput sa lucrez cu el undeva pe la inceputul anului trecut. Pot spune ca e un program care te ajuta sa-ti pastrezi calmul si-n situatiile cele mai extreme. Usor de folosit cu o interfata foarte usor de inteles care-ti &#8220;pune pe tava&#8221; cele mai folosite instrumente [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.softrelated.com/wp-content/uploads/2008/01/ts-logo.gif" title="ts-logo.gif"><img src="http://www.softrelated.com/wp-content/uploads/2008/01/ts-logo.gif" alt="ts-logo.gif" align="left" /></a>Un prieten vechi de-al meu este TopStyle Pro. Am inceput sa lucrez cu el undeva pe la inceputul anului trecut. Pot spune ca e un program care te ajuta sa-ti pastrezi calmul si-n situatiile cele mai extreme. Usor de folosit cu o interfata foarte usor de inteles care-ti &#8220;pune pe tava&#8221; cele mai folosite instrumente fara sa te incurce intr-un fel.</p>
<p>Editorul este destinat codului (x)HTML si CSS, fisiere pe care le deschide extrem de rapid. Din pacate nu beneficiaza de snippet-uri insa are o functie auto-complete destul de folositoare. &#8220;CSS Selectors&#8221; sau asa numitele clase css sunt foarte frumos puse la dispozitia utilizatorului pentru a-i usura cat mai mult procesul de scriere respectiv intelegere a codului. Si culorile cu un mic preview si codul lor HEX isi fac aparitia in bara de meniu.</p>
<p>Trebuie sa recunosc ca programul poate fi folosit cu succes si la editarea fisierelor de tip php. TopStyle Pro nu se da in laturi nici de la frameworking avand un tab usor de folosit cand vine vorba de fisiere multiple, diferite proiecte; tab usor de interschimbat cu un alt tab numit &#8220;Style Inspector&#8221; care are o structura arborescenta continand cam orice definitie CSS care v-a trecut prin minte.</p>
<p>De bagat in seama mai este fireste si functia preview, taburile, si &#8220;style checker-ul&#8221; care ne anunta daca vreun browser va avea vreo problema la interpretarea unei parti din codul nostru.</p>
<p>Putin mai jos niste poze pentru a va ajuta sa va faceti o idee despre program.</p>
<p><a href="http://www.softrelated.com/wp-content/gallery/topstyle/topstyle-1.jpg" class="thickbox" title="topstyle-1.jpg"><img src="http://www.softrelated.com/wp-content/gallery/topstyle/thumbs/thumbs_topstyle-1.jpg" alt="topstyle-1.jpg" title="topstyle-1.jpg" /></a><a href="http://www.softrelated.com/wp-content/gallery/topstyle/topstyle-2.jpg" class="thickbox" title="topstyle-2.jpg"><img src="http://www.softrelated.com/wp-content/gallery/topstyle/thumbs/thumbs_topstyle-2.jpg" alt="topstyle-2.jpg" title="topstyle-2.jpg" /></a><a href="http://www.softrelated.com/wp-content/gallery/topstyle/topstyle-3.jpg" class="thickbox" title="topstyle-3.jpg"><img src="http://www.softrelated.com/wp-content/gallery/topstyle/thumbs/thumbs_topstyle-3.jpg" alt="topstyle-3.jpg" title="topstyle-3.jpg" /></a><a href="http://www.softrelated.com/wp-content/gallery/topstyle/topstyle-4.jpg" class="thickbox" title="topstyle-4.jpg"><img src="http://www.softrelated.com/wp-content/gallery/topstyle/thumbs/thumbs_topstyle-4.jpg" alt="topstyle-4.jpg" title="topstyle-4.jpg" /></a><a href="http://www.softrelated.com/wp-content/gallery/topstyle/topstyle-5.jpg" class="thickbox" title="topstyle-5.jpg"><img src="http://www.softrelated.com/wp-content/gallery/topstyle/thumbs/thumbs_topstyle-5.jpg" alt="topstyle-5.jpg" title="topstyle-5.jpg" /></a></p>
<p>Asadar daca va petreceti mult timp printre clase si defintii CSS si nu ati auzit inca de acest minunat programel va invit sa va descarcati o copie de pe pagina oficiala.</p>
<p class="downloadboxr"><a href="http://www.newsgator.com/download/products/topstyle.exe">Download TopStyle Pro</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.softrelated.com/topstyle-pro-css-la-extrem.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cosmetizare link cu CSS</title>
		<link>http://www.softrelated.com/cosmetizare-link-cu-css.html</link>
		<comments>http://www.softrelated.com/cosmetizare-link-cu-css.html#comments</comments>
		<pubDate>Tue, 13 Nov 2007 17:24:38 +0000</pubDate>
		<dc:creator>belial</dc:creator>
		
		<category><![CDATA[css]]></category>

		<category><![CDATA[cosmetizare]]></category>

		<guid isPermaLink="false">http://www.softrelated.com/cosmetizare-link-cu-css.html</guid>
		<description><![CDATA[Daca vreti sa dati un look mai deosebit link-urilor voastre puteti incerca varianta de mai jos:
Codul html:

1
2
3
4
5
6
7
8
9
10
&#60;html&#62;
&#60;head&#62;
&#60;title&#62;link&#60;/title&#62;
&#60;link href=&#34;style.css&#34; rel=&#34;stylesheet&#34; type=&#34;text/css&#34; /&#62;
&#60;style type=&#34;text/css&#34;&#62;
&#60;!--
.style2 {color: #CC6600}
--&#62;
&#60;/style&#62;
&#60;a href=&#34;#&#34; class=&#34;a style2&#34;&#62;link super link&#60;/a&#62;

Codul css (style.css):

1
2
3
4
5
6
7
8
9
10
11
12
.a &#123;
color: #990000;
text-decoration: none;
background-color: transparent;
border-color: #333333;
border-bottom-width: 1px;
border-left-width: 0px;
border-right-width: 0px;
border-top-width: 0px;
border-style: dotted;
font:10px Verdana, Arial, Helvetica, sans-serif;
&#125;

Efectul final:

]]></description>
			<content:encoded><![CDATA[<p>Daca vreti sa dati un look mai deosebit link-urilor voastre puteti incerca varianta de mai jos:<br />
Codul html:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;link&lt;/title&gt;
&lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
.style2 {color: #CC6600}
--&gt;
&lt;/style&gt;
&lt;a href=&quot;#&quot; class=&quot;a style2&quot;&gt;link super link&lt;/a&gt;</pre></td></tr></table></div>

<p>Codul css (style.css):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="css"><span style="color: #6666ff;">.a</span> <span style="color: #66cc66;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">990000</span></span>;
<span style="color: #000000; font-weight: bold;">text-decoration</span>: <span style="color: #993333;">none</span>;
<span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #993333;">transparent</span>;
<span style="color: #000000; font-weight: bold;">border-color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">333333</span></span>;
<span style="color: #000000; font-weight: bold;">border-bottom-width</span>: <span style="color: #933;">1px</span>;
<span style="color: #000000; font-weight: bold;">border-left-width</span>: <span style="color: #933;">0px</span>;
<span style="color: #000000; font-weight: bold;">border-right-width</span>: <span style="color: #933;">0px</span>;
<span style="color: #000000; font-weight: bold;">border-top-width</span>: <span style="color: #933;">0px</span>;
<span style="color: #000000; font-weight: bold;">border-style</span>: <span style="color: #993333;">dotted</span>;
font<span style="color: #3333ff;">:<span style="color: #933;">10px</span></span> Verdana, Arial, Helvetica, <span style="color: #993333;">sans-serif</span>;
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>Efectul final:<br />
<a href="http://www.softrelated.com/wp-content/uploads/2007/11/link.jpg" title="link.jpg"><img src="http://www.softrelated.com/wp-content/uploads/2007/11/link.thumbnail.jpg" alt="link.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.softrelated.com/cosmetizare-link-cu-css.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>CSS Cheat Sheet</title>
		<link>http://www.softrelated.com/css-cheat-sheet.html</link>
		<comments>http://www.softrelated.com/css-cheat-sheet.html#comments</comments>
		<pubDate>Sat, 03 Nov 2007 19:45:28 +0000</pubDate>
		<dc:creator>belial</dc:creator>
		
		<category><![CDATA[css]]></category>

		<category><![CDATA[CSS Cheat Sheet]]></category>

		<guid isPermaLink="false">http://www.softrelated.com/css-cheat-sheet.html</guid>
		<description><![CDATA[Un must have pentru cei care doresc sa se initieze in CSS.

Poza-i destul de folositoare cand incerci sa inveti cum sta treaba cu css-ul. Sper sa va fie de ajutor (cel putin cat mi-a fost mie).
]]></description>
			<content:encoded><![CDATA[<p>Un <em>must have</em> pentru cei care doresc sa se initieze in CSS.</p>
<p><a href="http://www.softrelated.com/wp-content/gallery/css/css_cheat_sheet.png" title="css_cheat_sheet.png" class="thickbox"><img src="http://www.softrelated.com/wp-content/gallery/css/thumbs/thumbs_css_cheat_sheet.png" alt="css_cheat_sheet.png" title="css_cheat_sheet.png" /></a></p>
<p>Poza-i destul de folositoare cand incerci sa inveti <em>cum sta treaba</em> cu css-ul. Sper sa va fie de ajutor (cel putin cat mi-a fost mie).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.softrelated.com/css-cheat-sheet.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Font Size (em, px, pt, etc)</title>
		<link>http://www.softrelated.com/font-size-em-px-pt-etc.html</link>
		<comments>http://www.softrelated.com/font-size-em-px-pt-etc.html#comments</comments>
		<pubDate>Sat, 03 Nov 2007 18:31:42 +0000</pubDate>
		<dc:creator>belial</dc:creator>
		
		<category><![CDATA[css]]></category>

		<category><![CDATA[font size]]></category>

		<guid isPermaLink="false">http://www.softrelated.com/font-size-em-px-pt-etc.html</guid>
		<description><![CDATA[Pentru a defini marimea unui font avem la indemana mai multe variante. Probabil ca ati intalnit mai multe variante de genul:

#body h2 &#123; font-size: 1em;&#125;

sau

#body h2 &#123; font-size: 10px;&#125;

sau

#body h2 &#123; font-size: 20pt;&#125;

sau

#body h2 &#123; font-size: medium;&#125;

Este crucial ce variante folosim. Voi incerca sa va explic si de ce.

1em se refera la marimea caracterului &#8220;M&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Pentru a defini marimea unui font avem la indemana mai multe variante. Probabil ca ati intalnit mai multe variante de genul:</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#body</span> h2 <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span>: <span style="color: #933;">1em</span>;<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>sau</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#body</span> h2 <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span>: <span style="color: #933;">10px</span>;<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>sau</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#body</span> h2 <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span>: <span style="color: #933;">20pt</span>;<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>sau</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#body</span> h2 <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span>: <span style="color: #993333;">medium</span>;<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Este crucial ce variante folosim. Voi incerca sa va explic si de ce.</p>
<ul>
<li>1em se refera la marimea caracterului &#8220;M&#8221; cand browser-ul afiseaza pagina la marimea standard a textului (la fel si 1ex se refera la marimea caracterului &#8220;X&#8221;);</li>
<li>1px inseamna ca marimea fontului va fi de 1px (pixel);</li>
<li>1pt inseamna ca marimea fontului va fi de 1 punct. Aceasta este o valoare fixa pentru toate fonturile si reprezinta cca. 1/72 dintr-un inch. Uneori nu se poate folosi aceasta valoare.</li>
</ul>
<p>Valorie relative sunt ceva de genul <strong>em, ex, px,</strong> etc iar cele fixe sunt  <strong>pt, in, cm, mm, </strong>etc.</p>
<p>Fireste, totul depinde de context, insa va sugerez sa folositi valorile relative pentru ca pagina sa fie cat mai compatibila cu o arie mai mare de rezolutii respectiv browsere.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.softrelated.com/font-size-em-px-pt-etc.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Ce este CSS ?</title>
		<link>http://www.softrelated.com/ce-este-css.html</link>
		<comments>http://www.softrelated.com/ce-este-css.html#comments</comments>
		<pubDate>Sat, 03 Nov 2007 18:06:50 +0000</pubDate>
		<dc:creator>belial</dc:creator>
		
		<category><![CDATA[css]]></category>

		<category><![CDATA[ce este?]]></category>

		<guid isPermaLink="false">http://www.softrelated.com/ce-este-css.html</guid>
		<description><![CDATA[Mai mult ca sigur ca toti dintre noi am folosit cel putin o data CSS (Cascade Style Sheets) dar nu neaparat am stiut ce este.
Istoria CSS-ului dateaza inca din &#8216;97 cand a fost folosit pentru prima data. Ca sa fac o comparatie, va invit sa va ganditi la functia intalnita in MS Word cu care [...]]]></description>
			<content:encoded><![CDATA[<p>Mai mult ca sigur ca toti dintre noi am folosit cel putin o data CSS <em>(Cascade Style Sheets)</em> dar nu neaparat am stiut ce este.</p>
<p>Istoria CSS-ului dateaza inca din &#8216;97 cand a fost folosit pentru prima data. Ca sa fac o comparatie, va invit sa va ganditi la functia intalnita in MS Word cu care putem sa definim anumite clase de preformatare pentru difertie parti ale unui document.</p>
<p>Cele mai intalnite functii se refera la <em>font</em>-ul si la <em>culoarea</em> unui text. Spre exemplu in HTML ati fi folosit sintaxa</p>

<div class="wp_syntax"><div class="code"><pre>&lt;font color=&quot;#00ed00&quot;&gt;
&lt;h4&gt;un titlu rosu&lt;/h4&gt;
&lt;/font&gt;</pre></div></div>

<p><span class="txt"><font face="courier new, courier, mono"> pentru a afisa </font></span><font color="red">un titlu rosu</font></p>
<p>Avantajul cand folositi CSS este acela ca puteti defini un stil cum ar fi <em><span class="txt"></span></em></p>

<div class="wp_syntax"><div class="code"><pre class="css">H4 <span style="color: #66cc66;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #993333;">red</span>; <span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>ceea ce va insemna ca toate titlurile definite cu h4 vor fi de culoare rosie.</p>
<p>Regula de baza pe care este construit CSS se bazeaza pe doua lucruri: <strong>selector </strong>si <strong>declaratie</strong>.</p>
<p>Selectorul reprezinta tag-ul HTML care va fi afectat de declaratie. Declaratia reprezinta stilul dupa care va fi formatat selectorul.</p>
<p>Asadar pentru a face ca tot textul bold sa fie de culoare rosie vom folosi declaratia:</p>

<div class="wp_syntax"><div class="code"><pre class="css">b <span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #993333;">red</span>;<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>O alta calitate a CSS este aceea de a putea defini mai multe declaratii in acelasi timp cum ar fi:</p>

<div class="wp_syntax"><div class="code"><pre class="css">b <span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #993333;">red</span>;<span style="color: #66cc66;">&#125;</span> h1<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #993333;">red</span>;<span style="color: #66cc66;">&#125;</span> h2<span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #993333;">red</span>;<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>In loc sa folosim declaratia de mai sus putem s-o folosim pe cea de mai jos:</p>

<div class="wp_syntax"><div class="code"><pre class="css">b, h1, h2 <span style="color: #66cc66;">&#123;</span>colord: <span style="color: #993333;">red</span>;<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Asadar toate titlurile cu tag-urile h1 si h2 respectiv textul bold vor fi de culoare rosie.</p>
<p>Deasemenea putem grupa mai multe declaratii:</p>

<div class="wp_syntax"><div class="code"><pre class="css">h4 <span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span>: Tahoma; <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #000000; font-weight: bold;">blue</span><span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>CSS poate fi folosit in 3 parti pe o pagina: in sectiunea &lt;head&gt;, intr-un fisier extern sau intr-un tag separat. Declaratiile facute intr-un tag separat vor afecta doar acel tag pe cand celelalte doua variante vor afecta pagina care incarca declaratiile, integral.</p>
<p>Pentru a putea putea folosi declaratiile CSS in sectiunea <em>&lt;head&gt;</em> va trebui sa cream un tag numit <em>&lt;style&gt;</em>:</p>

<div class="wp_syntax"><div class="code"><pre>&lt;head&gt;
&lt;style type=&quot;text/css&quot;&gt;
H4 { color: blue; }
&lt;/style&gt;
&lt;/head&gt;</pre></div></div>

<p>O alta medota ar fi sa ne facem un fisier cu extensia <em>.css</em> iar mai apoi sa-l incarcam folosind codul urmator:</p>

<div class="wp_syntax"><div class="code"><pre>&lt;link href=&quot;stylesheet.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;</pre></div></div>

<p>inainte de tag-ul .</p>
<p>O metoda pe care eu o mai folosesc cand vreau sa fac <em>bypass</em> la anumite declaratii si pe care nu o recomand decat celor care stiu ce fac este aceea de a importa declaratiile dintr-un fisier css chiar daca documentul are stabilite niste declaratii locale:</p>

<div class="wp_syntax"><div class="code"><pre>&lt;style&gt; @import URL (http://paginata.com/stylesheet.css);
H4 { color: #0000ff; }
&lt;/style&gt;</pre></div></div>

<p>Atentie la declararile multiple pentru acelasi element; ultima declaratie va fi folosita pentru formatarea selectorului:</p>

<div class="wp_syntax"><div class="code"><pre class="css">h1 <span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span>: <span style="color: #933;">1em</span>;<span style="color: #66cc66;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css">h1 <span style="color: #66cc66;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span>: <span style="color: #933;">15px</span>;<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Asadar titlul cu tag-ul h1 va avea marimea font-ului de 15px.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.softrelated.com/ce-este-css.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
