<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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>html-css &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/html-css/</link>
	<description>Feed of posts on WordPress.com tagged "html-css"</description>
	<pubDate>Tue, 14 Oct 2008 03:37:53 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Pseudo-Pseudo Classes]]></title>
<link>http://schleichermann.wordpress.com/2008/09/09/pseudo-pseudo-classes/</link>
<pubDate>Tue, 09 Sep 2008 19:41:12 +0000</pubDate>
<dc:creator>schleichermann</dc:creator>
<guid>http://schleichermann.es.wordpress.com/2008/09/09/pseudo-pseudo-classes/</guid>
<description><![CDATA[If you need a common chunk of text added before content you can use Pseudo selectors to accomplish t]]></description>
<content:encoded><![CDATA[<p>If you need a common chunk of text added before content you can use Pseudo selectors to accomplish this. An example is adding a chunk of text to the front of all blockquote elements in your HTML defining the quote as belonging to a specific category.</p>
<p><span style="color:#3366ff;"><code>blockquote:before { content: "Classical"; }</code></span></p>
<p>Or you can use pseudo selectors to add check marks to the front of all links which have been visited by the user.</p>
<p>a:visited { padding: 20px; background: transparent url(/images/check.png) no-repeat top left;</p>
<p>Here are some others you might find useful:</p>
<p><span style="color:#3366ff;"><code>a:before { content:"click here"; }</code><br />
<code>a:after { content:"click here"; }</code><br />
<code>p:first-letter { font-size:20px; }</code></span></p>
<p>These only work in newer more advanced browsers ( down with IE6 )</p>
<p><span style="color:#3366ff;"><code>a[title] { color:red; }</code></span> this is how you select a tag using one of its attributes as a qualifier. In other words this selector will only apply the color red to links that have a title.</p>
<p><span style="color:#3366ff;"><code>a[title=special] { color:green; }</code></span> this one applies the color green to all links which have a title and that title equals "special".</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CSS Selector Specificity]]></title>
<link>http://schleichermann.wordpress.com/2008/09/05/css-selector-specificity/</link>
<pubDate>Fri, 05 Sep 2008 19:56:05 +0000</pubDate>
<dc:creator>schleichermann</dc:creator>
<guid>http://schleichermann.es.wordpress.com/2008/09/05/css-selector-specificity/</guid>
<description><![CDATA[To determine which CSS style in your style sheet will outrank the others you need to calculate the ]]></description>
<content:encoded><![CDATA[<p>To determine which CSS style in your style sheet will outrank the others you need to calculate the "Specificity" for each of the styles based on the selectors used to target the HTML element. To calculate use the following rules:</p>
<p>HTML Tag Selector: 1 point ( i.e. p, div, span )<br />
CSS Class Selector: 10 points ( i.e. class="redText" )<br />
HTML ID Selector: 100 points ( i.e. id="HeaderBox" )</p>
<p>Example Styles:</p>
<p>span { color:yellow; } =&#62; has a score of 1 = 1<br />
#HeaderBox span {color:blue;} =&#62; has a score of 100+1 = 101<br />
#HeaderBox .redText span { color:red; } =&#62; has a score of 100+10+1 = 111</p>
<p>Example HTML:<br />
<span style="color:#3366ff;"><code>&#60;div id="HeaderBox"&#62;<br />
&#60;span&#62;This text will be blue.&#60;/span&#62;<br />
&#60;div class="redText"&#62;<br />
&#60;span&#62;This text will be red.&#60;/span&#62;<br />
&#60;/div&#62;<br />
&#60;/div&#62;</code></span></p>
<p><span style="color:#3366ff;">&#60;span&#62;This text will be yellow.&#60;/span&#62;</span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Phần 1:Cơ bản về CSS - Cascading Style Sheets]]></title>
<link>http://phuocloc.wordpress.com/?p=19</link>
<pubDate>Tue, 19 Aug 2008 14:49:07 +0000</pubDate>
<dc:creator>phuocloc</dc:creator>
<guid>http://phuocloc.es.wordpress.com/2008/08/19/ph%e1%ba%a7n-1c%c6%a1-b%e1%ba%a3n-v%e1%bb%81-css-cascading-style-sheets/</guid>
<description><![CDATA[
I. CSS là gì?
CSS (Cascading Style Sheets) được hiểu một cách đơn giản đó là các]]></description>
<content:encoded><![CDATA[<p><!--[if gte mso 9]&#62;  Normal 0   false false false        MicrosoftInternetExplorer4  &#60;![endif]--><!--[if gte mso 9]&#62;   &#60;![endif]--></p>
<p class="MsoNormal" style="line-height:normal;"><a name="_Toc190915486"><strong><span style="font-size:13.5pt;font-family:&#34;">I. CSS là gì?</span></strong></a><strong></strong></p>
<p class="MsoNormal" style="line-height:normal;"><span style="font-size:12pt;font-family:&#34;">CSS (Cascading Style Sheets) được hiểu một cách đơn giản đó là cách mà chúng ta thêm các kiểu hiển thị (font chữ, kích thước, màu sắc...) cho một tài liệu Web</span></p>
<p class="MsoNormal" style="line-height:normal;text-align:left;"><a name="_Toc190915487"><strong><span style="font-size:13.5pt;font-family:&#34;">II. Một số đặc tính cơ bản của CSS.</span></strong></a><strong></strong></p>
<ol type="1">
<li class="MsoNormal"><span style="font-size:12pt;font-family:&#34;">CSS quy định cách hiển thị của các thẻ HTML bằng cách      quy định các thuộc tính của các thẻ đó (font chữ, màu sắc). Để cho thuận      tiện bạn có thể đặt toàn bộ các thuộc tính của thẻ vào trong một file      riêng có phần mở rộng là ".css" </span></li>
</ol>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span style="font-size:12pt;font-family:&#34;">CSS nó phá vỡ giới hạn trong thiết kế Web, bởi chỉ cần một file CSS có thể cho phép bạn quản lí định dạng và layout trên nhiều trang khác nhau. Các nhà phát triển Web có thể định nghĩa sẵn thuộc tính của một số thẻ HTML nào đó và sau đó nó có thể dùng lại trên nhiều trang khác.</span></p>
<ol type="1">
<li class="MsoNormal"><span style="font-size:12pt;font-family:&#34;">Có thể khai báo CSS bằng nhiều cách khác nhau. Bạn có      thể đặt đoạn CSS của bạn phía trong thẻ <strong>&#60;head&#62;...&#60;/head&#62;</strong>, hoặc      ghi nó ra file riêng với phần mở rộng ".css", ngoài ra bạn còn      có thể đặt chúng trong từng thẻ HTML riêng biệt </span></li>
</ol>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span style="font-size:12pt;font-family:&#34;">Tuy nhiên tùy từng cách đặt khác nhau mà độ ưu tiên của nó cũng khác nhau. Mức độ ưu tiên của CSS sẽ theo thứ tự sau.</span></p>
<ol type="1">
<li>
<ol type="1">
<li class="MsoNormal"><span style="font-size:12pt;font-family:&#34;">Style đặt trong từng thẻ HTML riêng biệt </span></li>
<li class="MsoNormal"><span style="font-size:12pt;font-family:&#34;">Style đặt trong phần <strong>&#60;head&#62;</strong></span></li>
<li class="MsoNormal"><span style="font-size:12pt;font-family:&#34;">Style đặt trong file mở rộng .css</span></li>
<li class="MsoNormal"><span style="font-size:12pt;font-family:&#34;">Style mặc định của trình duyệt</span></li>
</ol>
</li>
</ol>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span style="font-size:12pt;font-family:&#34;">Mức độ ưu tiên sẽ giảm dần từ trên xuống dưới. </span></p>
<ol type="1">
<li class="MsoNormal"><span style="font-size:12pt;font-family:&#34;">CSS có tính kế thừa: giả sử rằng bạn có một thẻ <strong>&#60;div      id="vidu"&#62;</strong> đã được khai báo ở đầu file css với các thuộc tính      như sau:</span></li>
</ol>
<p class="MsoNormal" style="text-indent:-0.25in;line-height:normal;margin:0 0 0.0001pt 0.5in;"><!--[if !supportLists]--><span style="font-size:10pt;font-family:&#34;"><span><span style="font-family:&#34;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> <strong> </strong></span></span></span><!--[endif]--><strong><span style="font-size:10pt;font-family:&#34;"> <em>#vidu {</em></span></strong></p>
<p class="MsoNormal" style="text-indent:-0.25in;line-height:normal;margin:0 0 0.0001pt 0.5in;"><!--[if !supportLists]--><em><strong><span style="font-size:10pt;font-family:&#34;"><span><span style="font-family:&#34;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span style="font-size:10pt;font-family:&#34;"><span> </span>width: 200px;</span></strong></em><!--[endif]--></p>
<p class="MsoNormal" style="text-indent:-0.25in;line-height:normal;margin:0 0 0.0001pt 0.5in;"><!--[if !supportLists]--><em><strong><span style="font-size:10pt;font-family:&#34;"><span><span style="font-family:&#34;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span><span style="font-size:10pt;font-family:&#34;"><span> </span>height: 300px;</span></strong></em><!--[endif]--></p>
<p class="MsoNormal" style="text-indent:-0.25in;line-height:normal;margin:0 0 0.0001pt 0.5in;"><!--[if !supportLists]--><em><strong><span style="font-size:10pt;font-family:&#34;"><span><span style="font-family:&#34;font-variant:normal;font-weight:normal;font-size:7pt;line-height:normal;"> </span></span></span></strong><span style="font-size:10pt;font-family:&#34;"><strong> }</strong></span></em><!--[endif]--></p>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span style="font-size:12pt;font-family:&#34;">Ở một chỗ nào đó trong file css bạn lại khai báo một lần nữa thẻ <strong>&#60;div id="vidu"&#62;</strong> với các thuộc tính.</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 0.0001pt 0.5in;"><em><strong><span style="font-size:10pt;font-family:&#34;">#vidu {</span></strong></em></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 0.0001pt 0.5in;"><em><strong><span style="font-size:10pt;font-family:&#34;"><span> </span>width: 400px;</span></strong></em></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 0.0001pt 0.5in;"><em><strong><span style="font-size:10pt;font-family:&#34;"><span> </span>background-color: #CC0000;</span></strong></em></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 0.0001pt 0.5in;"><em><span style="font-size:10pt;font-family:&#34;"><strong>}</strong></span></em></p>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span style="font-size:12pt;font-family:&#34;">Sau đoạn khai báo này thì thẻ <strong>&#60;div id="vidu"&#62;</strong> sẽ có thuộc tính:</span></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 0.0001pt 0.5in;"><em><strong><span style="font-size:10pt;font-family:&#34;">#vidu {</span></strong></em></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 0.0001pt 0.5in;"><em><strong><span style="font-size:10pt;font-family:&#34;"><span> </span>width: 400px; /* Đè lên khai báo cũ */</span></strong></em></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 0.0001pt 0.5in;"><em><strong><span style="font-size:10pt;font-family:&#34;"><span> </span>height: 300px;</span></strong></em></p>
<p class="MsoNormal" style="line-height:normal;margin:0 0 0.0001pt 0.5in;"><em><strong><span style="font-size:10pt;font-family:&#34;"><span> </span>background-color: #CC0000;</span></strong></em></p>
<p class="MsoNormal" style="line-height:normal;text-align:left;margin:0 0 0.0001pt 0.5in;"><em><span style="font-size:10pt;font-family:&#34;"><strong>}</strong></span></em></p>
<p><!--[if gte mso 9]&#62;  Normal 0   false false false        MicrosoftInternetExplorer4  &#60;![endif]--><!--[if gte mso 9]&#62;   &#60;![endif]--><br />
<a name="_Toc190915488"><strong><span style="font-size:18pt;font-family:&#34;">III.Cú pháp của CSS.</span></strong></a></p>
<p><a name="_Toc190915488"><strong></strong></a><strong></strong></p>
<p class="MsoNormal" style="line-height:normal;"><span style="font-size:12pt;font-family:&#34;">Sau khi hiểu là nắm bắt được một số đặc tính của CSS chúng ta tiếp tục đi tìm hiểu về cú pháp và cách khai báo của các thẻ CSS</span></p>
<p class="MsoNormal" style="line-height:normal;"><span style="font-size:12pt;font-family:&#34;">Cú pháp của CSS được chia làm 3 phần. phần thẻ chọn (selector), phần thuộc tính (property), phần nhãn (value).</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><em><span style="font-size:10pt;font-family:&#34;"><strong>selector {property: value}</strong></span></em></p>
<p class="MsoNormal" style="line-height:normal;"><span style="font-size:12pt;font-family:&#34;">Nếu nhãn của bạn có nhiều từ bạn nên đặt nhãn của bạn vào trong dấu nháy kép</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&#34;"><span> </span><em><strong>p {font-family: "sans serif"}</strong></em></span></p>
<p class="MsoNormal" style="line-height:normal;"><span style="font-size:12pt;font-family:&#34;">Trong trường hợp thẻ chọn của bạn nhiều thuộc tính thì các thuộc tính sẽ được ngăn cách bởi dấu (;).</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><em><span style="font-size:10pt;font-family:&#34;"><strong>p {text-align:center;color:red}</strong></span></em></p>
<p class="MsoNormal" style="line-height:normal;"><span style="font-size:12pt;font-family:&#34;">Khi thẻ chọn có nhiều thuộc tính thì chúng ta nên để mỗi thuộc tính ở trên một dòng riêng biệt.</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><em><strong><span style="font-size:10pt;font-family:&#34;">p {</span></strong></em></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><em><strong><span style="font-size:10pt;font-family:&#34;"><span> </span>text-align: center;</span></strong></em></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><em><strong><span style="font-size:10pt;font-family:&#34;"><span> </span>color: black;</span></strong></em></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><em><strong><span style="font-size:10pt;font-family:&#34;"><span> </span>font-family: arial</span></strong></em></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;text-align:left;"><em><span style="font-size:10pt;font-family:&#34;"><strong>}</strong></span></em></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Full Browser SWF in Internet Explorer]]></title>
<link>http://shantronix.wordpress.com/?p=6</link>
<pubDate>Tue, 22 Jul 2008 06:58:06 +0000</pubDate>
<dc:creator>soulsonic</dc:creator>
<guid>http://shantronix.es.wordpress.com/2008/07/22/full-browser-swf-in-internet-explorer/</guid>
<description><![CDATA[
An easy one to kick this blog off, but something I can never remember when I need it..
So I&#8217;v]]></description>
<content:encoded><![CDATA[<p><a href="http://shantronix.wordpress.com/files/2008/07/full-browser-swf-in-internet-explorer1.jpg"><img class="alignnone size-full wp-image-8" src="http://shantronix.wordpress.com/files/2008/07/full-browser-swf-in-internet-explorer1.jpg" alt="" width="400" height="179" /></a></p>
<p>An easy one to kick this blog off, but something I can never remember when I need it..</p>
<p>So I've been working on a website in Flash that needs to automatically resize, or stretch itself to the browser window (More on how to do that in another post). Works perfectly in Safari, Firefox, and Opera - But of course breaks in IE (No surprise there, huh).</p>
<p>I seem to be getting this unwanted strip of blank space on the right of the screen, and also IE keeps displaying the vertical scrollbar, even though I have used <em>overflow:hidden</em> on both the X and Y axis in my CSS.</p>
<p>So here is the soution:</p>
<p>My SWF is contained in a DIV with the following CSS element to disable the vertical and horizontal scrollbars:</p>
<p><span style="color:#993366;"> #div {<br />
visibility: visible;<br />
position: absolute;<br />
top:0px;<br />
left: 0px;<br />
height: 100%;<br />
width: 100%;<br />
z-index: 1;<br />
display: block;<br />
border: 0;<br />
overflow-x:hidden;<br />
overflow-y:hidden;<br />
}</span></p>
<p>Now this works fine for all browsers except IE, in which you need to add the following..</p>
<p>In the body tag set the margins to 0. This gets rid of the unwanted white strip down the side.</p>
<p><span style="color:#993366;">&#60;body topmargin="0" leftmargin="0"&#62;</span></p>
<p>and in my css I type the following to get rid of the dead scrollbar in IE:</p>
<p><span style="color:#993366;">body {overflow: auto;}</span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Curso HTML Parte 1 - Lo básico]]></title>
<link>http://glendasnotepad.wordpress.com/?p=13</link>
<pubDate>Fri, 18 Jul 2008 07:44:49 +0000</pubDate>
<dc:creator>gmesglenda</dc:creator>
<guid>http://glendasnotepad.es.wordpress.com/2008/07/18/curso-html-parte-1/</guid>
<description><![CDATA[Pues este es un pequeño tutorial introductorio de HTML. Se asume que no sabes nada de HTML pero que]]></description>
<content:encoded><![CDATA[<p style="text-align:justify;"><span style="color:#000000;">Pues este es un pequeño tutorial introductorio de HTML. Se asume que no sabes nada de HTML pero que posees las habilidades básicas de computación.<br />
<!--more--></span> <span style="color:#000000;"><br />
El HTML, o Hypertext Markup Language, es el lenguaje de marcado mas usado mundialmente para construir páginas web. Quiza hayas escuchado antes de el o no, pero lo mas seguro es que la mayoria de páginas que has visitado, hayan sido construidas con el. El HTML se encarga de organizar el contenido, y las CSS(Cascading Style Sheets u Hojas de Estilo en Cascada) se encargan de su formato, o como este se ve. Por el momento no veremos CSS, asi que no te preocupes mucho por eso.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Ahora sería un buen momento para llenarte la pantalla de la historia del HTML, como funciona, estándares, reglas, etc. <strong>PERO!</strong> realmente yo creo que para comenzar a aprender HTML, se tiene que practicar, ensuciarte un poco las manos, por eso dejaremos las cosas técnicas para despues. Asi que, comenzemos.</span></p>
<h3 style="text-align:justify;"><span style="color:#000000;">Tu Primera Página</span></h3>
<p style="text-align:justify;"><span style="color:#000000;">Los archivos HTML no son mas que simples archivos de texto, asi que para comenzar solamente necesitas un editor de texto......increíble no?. Si eres usuario de Windows puedes usar el Notepad, para los usuarios de Linux, cualquier editor de texto servirá: Gedit, Kedit, etc.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Corre tu editor de elección y escribe algo sencillo que tu quieras o algo como esto:</span></p>
<blockquote>
<p style="text-align:center;"><span style="color:#000000;">Mi primera pagina web</span></p>
</blockquote>
<p style="text-align:justify;"><span style="color:#000000;">Un texto sencillo bastara. Ahora crea un folder en cualquier lugar que desees, y llamalo "html". Guarda tu archivo como "primerapagina.html", pues ten cuidado porque algunos editores, como Notepad, guardan con la extension ".txt" asi que es mejor asegurarse de escribir la extensión al final.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Para ver tu archivo solamente necesitas un navegador web, como el Firefox o el Internet Explorer, ahora simplemente abre tu navegador y para ver tu página puedes hacer lo siguiente:</span></p>
<ul style="text-align:justify;">
<li><span style="color:#000000;">Archivo-&#62;Abrir Archivo-&#62;Busca la carpeta donde guardaste tu archivo-&#62;Abrir</span></li>
<li><span style="color:#000000;">En la barra de dirección, escribe la dirección donde se encuentra tu pagina, ej: "C:\html\primerapagina.html".</span></li>
<li><span style="color:#000000;">O simplemente un doble click la abrira en tu navegador predeterminado.</span></li>
</ul>
<p style="text-align:justify;"><span style="color:#000000;">Y como arte de magia, ahí esta, tu primera página web, date unas palmadas en la espalda...........ahora sigue leyendo.</span></p>
<h3 style="text-align:justify;"><span style="color:#000000;">Etiquetas</span></h3>
<p style="text-align:justify;"><span style="color:#000000;">HTML podrá ser todo texto, pero aun asi existen algunas características para crear un documento HTML válido. La estructura del HTML incluye las llamadas etiquetas que encierran al contenido para darle algún significado. Cada etiqueta comienza con un símbolo de menor que "&#60;" y se cierra con el símbolo de mayor que "&#62;".</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Cambia tu texto para que se vea algo asi:</span></p>
<blockquote><p><span style="color:#000000;">&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;<br />
&#60;html&#62;<br />
&#60;body&#62;<br />
Mi primera pagina<br />
&#60;/body&#62;<br />
&#60;/html&#62;</span></p></blockquote>
<p style="text-align:justify;"><span style="color:#000000;">Ahora guarda tu página y refresca tu navegador. No hay ningun cambio notable pero eso esta bien, recuerda HTML es solamente para el <strong>estructurar el contenido</strong>, no como este se ve.<br />
Analicemos las etiquetas:<br />
La primera linea del !DOCTYPE es para decirle a tu navegador que clase de documento esta tratando, pero eso es un aspecto mas técnico, asi que por ahora no entraremos en detalle, solo recuerda de meter esa línea siempre en tu documento.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">La etiqueta </span><span style="color:#000000;">html </span><span style="color:#000000;">es importante, le dice a tu navegador que todo lo que este dentro de la etiqueta es parte de un documento HTML. Lo que se encuentra entre las etiquetas </span><span style="color:#000000;">body</span><span style="color:#000000;"> es el cuerpo del contenido y es lo que se mostrará en tu navegador.<br />
Por lo tanto, todo aquello que se encuentre adentro de una etiqueta se ve afectado por ella.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Cada etiqueta posee una etiqueta correspondiente a su apertura y a su cierre, por ejemplo: "</span><span style="color:#000000;">&#60;html&#62;&#60;/html&#62;</span><span style="color:#000000;">". Aunque las versiones anteriores de HTML permitían dejar las etiquetas abiertas, los estándares de ahora requieren que todas las etiquetas se cierren. Asi que, como consejo, SIEMPRE CIERRA TUS ETIQUETAS.<br />
Hay etiquetas que no se cierran, por ejemplo la etiqueta de salto de línea </span><span style="color:#000000;">&#60;br/&#62;</span><span style="color:#000000;">, que se cierran a ellas mismas.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Las etiquetas tambien poseen lo que se conoce como atributos, que son parametros extras de las etiquetas, se ven algo asi: '</span><span style="color:#000000;">&#60;etiqueta1 <span>attribute=</span><span>"valor"</span>&#62;&#60;/etiqueta1&#62;</span><span style="color:#000000;">'. Los atributos siempre van entre comillas dobles. En otro tutorial hablaremos de ellos.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">De esto podemos decir que cada etiqueta nos dan el principio y fin de un "elemento", que son las piezas que conforman nuestra página.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Pero a nuestra página le falta algo muy esencial no? El título. Asi que modifica tu documento agregando la etiqueta </span><span style="color:#000000;">head</span><span style="color:#000000;"> donde se muestra:</span></p>
<blockquote><p><span style="color:#000000;">&#60;html&#62;<br />
&#60;head&#62;<br />
&#60;title&#62;Mi primera pagina&#60;/title&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
...</span></p></blockquote>
<p style="text-align:justify;"><span style="color:#000000;">Si te fijas ademas de la etiqueta </span><span style="color:#000000;">head</span><span style="color:#000000;"> introducimos la etiqueta </span><span style="color:#000000;">title</span><span style="color:#000000;"> la cual nos permite mostrar el título. El elemento </span><span style="color:#000000;">head</span><span style="color:#000000;">, le da informacion sobre la pagina al navegador. Existen otra información ademas del titulo, que se veran en cursos mas adelante.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Por ahora recarga tu página y veras que tu título aparece en tu navegador.</span></p>
<h4 style="text-align:justify;"><span style="color:#000000;">Párrafos y Encabezados.</span></h4>
<p style="text-align:justify;"><span style="color:#000000;">Pues una página sin contenido no seria de mucho uso verdad?. Asi que agrega unas cuantas lineas de texto dentro del </span><span style="color:#000000;">body</span><span style="color:#000000;"> de tu archivo, por ejemplo:</span></p>
<blockquote><p><span style="color:#000000;">...<br />
&#60;body&#62;<br />
Esta es mi primera pagina.<br />
Verdad que es muy genial?<br />
&#60;/body&#62;<br />
...</span></p></blockquote>
<p style="text-align:justify;"><span style="color:#000000;">Guarda tu documento, refresca tu navegador y poof!......lo mas probable es que tu texto no salió como lo esperabas. Ahora te preguntaras, "Porque?". Pues los navegadores no leen el texto que escribes sino las etiquetas dentro de las cuales esta contenido tu texto. Si quieres separar por lineas tu texto, tienes que especificarle al navegador lo que quieres hacer, para eso ocupamos la etiqueta de párrafo </span><span style="color:#000000;">&#60;p&#62;</span></p>
<blockquote><p><span style="color:#000000;">&#60;p&#62;Esta es mi primera pagina.&#60;/p&#62;<br />
&#60;p&#62;Verdad que es muy genial?&#60;/p&#62;</span></p></blockquote>
<p style="text-align:justify;"><span style="color:#000000;">Tambien puedes separar tu texto con la etiqueta </span><span style="color:#000000;">&#60;br/&#62;</span><span style="color:#000000;">, salto de línea, aunque es preferible separar bloques de texto con párrafos.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Si lo que quieres es crear un título o encabezado para tu texto, utiliza las etiquetas de </span><span style="color:#000000;">heading</span><span style="color:#000000;">. Estas etiquetas van desde </span><span style="color:#000000;">h1</span><span style="color:#000000;"> a </span><span style="color:#000000;">h6</span><span style="color:#000000;">, siendo </span><span style="color:#000000;">h1</span><span style="color:#000000;"> el de mayor prioridad, por ende mas énfasis, y </span><span style="color:#000000;">h6</span><span style="color:#000000;"> el de menor importancia. Prueba en tu documento incluir estas etiquetas:</span></p>
<blockquote><p><span style="color:#000000;">...<br />
&#60;body&#62;<br />
&#60;h1&#62;Mi Pagina Genial&#60;/h1&#62;<br />
&#60;p&#62;Esta es mi primera pagina.&#60;/p&#62;<br />
&#60;p&#62;Verdad que es muy genial?&#60;/p&#62;<br />
&#60;h2&#62;Porque es genial mi pagina?&#60;/h2&#62;<br />
&#60;p&#62;Porque la escribi yo mismo&#60;/p&#62;<br />
&#60;/body&#62;<br />
...</span></p></blockquote>
<p style="text-align:justify;"><span style="color:#000000;">Si notas utilizamos las etiquetas en orden, de mayor a menor, se crearon con esa idea en mente.<br />
Como una pequeña nota, cabe decir que la etiqueta </span><span style="color:#000000;">h1</span><span style="color:#000000;"> solo deberia ser usada 1 vez, ya que es la principal, pero las demas se pueden usar cuantas veces desees, pero teniendo en cuenta el orden.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Si te fijas en los títulos, están en negrita. Si deseas poner en negrita, o énfasis, tu texto utiliza la etiqueta </span><span style="color:#000000;">&#60;em&#62;</span><span style="color:#000000;"> o </span><span style="color:#000000;">&#60;strong&#62;</span><span style="color:#000000;">.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Bueno con eso finalizo la primera parte de nuestro curso de principiantes de HTML, en la proxima entrega veremos mas temas como lo son las listas, tablas, enlaces, etc. Recuerda practica y edita el codigo como se te ocurra para que te hagas una idea de lo que hace cada etiqueta. No tengas miedo, que no hay mejor forma de aprender que la prueba y error. Hasta la proxima!</span></p>
<p style="text-align:justify;"><em><br />
</em></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Page break in HTML pages]]></title>
<link>http://syedgakbar.wordpress.com/?p=27</link>
<pubDate>Sat, 21 Jun 2008 14:02:40 +0000</pubDate>
<dc:creator>syedgakbar</dc:creator>
<guid>http://syedgakbar.es.wordpress.com/2008/06/21/page-break-in-html-pages/</guid>
<description><![CDATA[Page break in HTML pages
 
When generating reports directly in the HTML, it&#8217;s often required ]]></description>
<content:encoded><![CDATA[<div><span style="font-size:x-small;font-family:Verdana;">Page break in HTML pages</span></div>
<div> </div>
<div><span style="font-size:x-small;font-family:Verdana;">When generating reports directly in the HTML, it's often required to do a forced page break so that a new sections always prints on a new page. Fortunately, this is very simple with the help of CSS. For this you just need to add the "page-break-before:always" or "page-break-after:always" styles to the tags on which you want to have the page break.</span></div>
<div> </div>
<div><span style="font-size:x-small;font-family:Verdana;">As clear from the name, if you add the  "page-break-before:always", it will add a page break before the current tag. Similarly, "page-break-after:always" will create a page break after the current tag end.</span></div>
<div> </div>
<div><span style="font-size:x-small;font-family:Verdana;">Here is a sample code to see this in action</span></div>
<blockquote>
<div><span style="font-size:x-small;color:#0000ff;font-family:Verdana;">&#60;div style="page-break-before:always"&#62;This will print on first page&#60;/div&#62;</span></div>
<div> </div>
<div><span style="font-size:x-small;color:#0000ff;font-family:Verdana;">&#60;div style="page-break-before:always; page-break-after:always"&#62;This will print on second page&#60;/div&#62;</span></div>
<div> </div>
<div><span style="font-size:x-small;color:#0000ff;font-family:Verdana;">&#60;div&#62;This will print on third page&#60;/div&#62;</span></div>
</blockquote>
<div><span style="font-size:x-small;font-family:Verdana;">Please notice that how we have added the page break before and after attributes on the second page such that we no longer need this on the third DIV tag.</span></div>
<div> </div>
<div><span style="font-size:x-small;font-family:Verdana;">Note: Please note that these attributes doesn't work in FireFox (and most other browsers) when used within tables (cells or rows). When having problem with the page break, make sure the section you want to have break on is not under any table.</span></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cursor Positions, Selected Text, and A Simple HTML Editor]]></title>
<link>http://triaslama.wordpress.com/?p=176</link>
<pubDate>Fri, 06 Jun 2008 11:28:29 +0000</pubDate>
<dc:creator>triaslama</dc:creator>
<guid>http://triaslama.es.wordpress.com/2008/06/06/cursor-positions-selected-text-and-a-simple-html-editor/</guid>
<description><![CDATA[It would be nice if we have a HTML text editor that doing a simple task of HTML editor for us. It wo]]></description>
<content:encoded><![CDATA[<p>It would be nice if we have a HTML text editor that doing a simple task of HTML editor for us. It works just like HTML view of Wordpress admin page when we write a post. We select the text press specific button and then the selected text will be enclosed with appropriate format. I Test the code in Mozilla Firefox and Internet Explorer, so in both browsers this code should works fine. Here the screenshoots:</p>
<div style="border:1px solid red;"><img class="aligncenter size-full wp-image-178" src="http://triaslama.wordpress.com/files/2008/06/canvaspage.jpg" alt="" width="371" height="288" /></div>
<p><em>Screenshoots page.</em></p>
<p>We need to prepare the prerequisites.</p>
<p>As prerequisites, at least we need two things. First, we need to know how to define the cursor position inside a &#60;textarea&#62; element, second we need to know how to retrieve a selected text inside a &#60;textarea&#62; element. So, for the first step, I will talk about the both things shortly.</p>
<p>Every browser brings the different behaviour. The browser quirk will make our code a little bit longer because we need to specify different code for different browser. Defining cursor position (current position) is trivial in Mozilla Firefox, but we need a little trick in Internet Explorer. If we want to retrieve selected text in a &#60;textarea&#62; element, both (Forefox and IE) has their own way too.</p>
<p><strong>Defining Cursor Position Inside a &#60;textarea&#62; Element</strong><br />
In Firefox we just need the following code to determine the current position of cursor in a &#60;textarea&#62; element:</p>
<p><code>var currentPosition = txtArea.selectionStart;</code></p>
<p>txtArea is a &#60;textarea&#62; element.<br />
Internet Explorer (I use IE 6) doesn't have <em>selectionStart</em> and <em>selectionEnd</em> property, so we need a little more effort to determine start and end position of the cursor (this is a tricky way).<br />
<code><br />
var range = document.selection.createRange();<br />
var drange = range.duplicate();<br />
drange.moveToElementText(txtArea);<br />
drange.setEndPoint("EndToEnd", range);</code></p>
<p><code>var currentPosition = drange.text.length - range.text.length;<br />
var endPosition = drange.text.length - currentPosition;</code></p>
<p><!--more--></p>
<p><strong>Defining Selected Text Inside a &#60;textarea&#62; Element</strong><br />
In Firefox we need more effort to retrieve selected text inside a &#60;textarea&#62; element, we get selected text with the help of <em>selectionStart</em> and <em>selectionEnd</em> property. Then split &#60;textarea&#62; value using <em>selectionStart</em> and <em>selectionEnd</em> values.<br />
<code><br />
var txtArea = document.getElementById("txtArea");<br />
var text = txtArea.value;<br />
var selectedText = text.substring(txtArea.selectionStart,txtArea.selectionEnd);<br />
</code><br />
In Internet Explorer (IE) we need the following code to get the selected text:<br />
<code><br />
var selectedText = document.selection.createRange().text;<br />
</code></p>
<p><strong>Simple HTML Text Editor</strong><br />
Now we will combine these two things, and get ready for bigger challenge! We will create a simple HTML text editor.<br />
It just works as is, we type something in textarea, select the text and press one of button above the textarea to insert appropriate tag. This simple HTML text editor also work fine with new line and paragraph. So if you place a new line in textarea (by press 'Enter' button) it would be displayed as new   line too. The same thing happen for paragraph.</p>
<p>Here a screenshoot of my HTML text editor:</p>
<div style="border:1px solid red;"><img class="aligncenter size-full wp-image-179" src="http://triaslama.wordpress.com/files/2008/06/canvasresult.jpg" alt="" width="381" height="448" /></div>
<p><em>A simple HTML text editor.</em></p>
<p>Now, lets take a look at the code. I use HTML file for presentation and Javascript code for hadling what should happen under the hood.</p>
<div style="border:2px solid goldenrod;background-color:#EFEFEF;font-family:'courier new';font-size:11px;">
<ul> &#60;html&#62;<br />
&#60;head&#62;<br />
&#60;title&#62;HTML Editor&#60;/title&#62;<br />
&#60;script lang="javascript" type="text/javascript" src="htmleditor.js"&#62;<br />
&#60;/script&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
&#60;input type="button" id="btnBold" value="B" onclick="insertsBoldTag()" /&#62;<br />
&#60;input type="button" id="btnItalic" value="I" onclick="insertsItalicTag()" /&#62;<br />
&#60;input type="button" id="btnUnderline" value="U" onclick="insertsUnderlineTag()" /&#62;<br />
&#60;input type="button" id="btnDelete" value="Del" onclick="insertsDeleteTag()" /&#62;<br />
&#60;br/&#62;<br />
&#60;textarea id="area" cols="35" rows="12"&#62;<br />
&#60;/textarea&#62;<br />
&#60;p&#62;<br />
&#60;input type="button" id="btn" value="Publish" onclick="publish()" /&#62;<br />
&#60;p&#62;<br />
&#60;div id="showDiv"&#62;<br />
&#60;/div&#62;<br />
&#60;/body&#62;<br />
&#60;/html&#62;</ul>
</div>
<p>&#160;</p>
<p>I think the HTML page is quite simple, it draws four buttons (bold, italic, underline, and del button respectively), a textarea, and a publish button.</p>
<p>All processing handled by the following Javascript file:</p>
<div style="border:2px solid goldenrod;background-color:#EFEFEF;font-family:'courier new';font-size:11px;">
<pre>var area;
var showDiv;
var formattedStr = "";
startPosition = 0;
var endPosition = 0;

window.onload = function()
{
	area = document.getElementById("area");
	showDiv = document.getElementById("showDiv");
};

function publish()
{
	formattedStr = "&#60;pre&#62;"+document.getElementById("area").value+"&#60;/pre&#62;";
	showDiv.innerHTML = formattedStr;
}

function insertsBoldTag()
{
	findPositions();

	var text = area.value;
	if (startPosition!=endPosition) {
		var sbStr = text.substring(startPosition,endPosition);
		sbStr = "&#60;b&#62;"+sbStr+"&#60;/b&#62;";

		fillsFormattedString(text,sbStr);
	}
}

function insertsItalicTag()
{
	findPositions();

	var text = area.value;
	if (startPosition!=endPosition) {
		var sbStr = text.substring(startPosition,endPosition);
		sbStr = "&#60;i&#62;"+sbStr+"&#60;/i&#62;";

		fillsFormattedString(text,sbStr);
	}
}

function insertsUnderlineTag()
{
	findPositions();

	var text = area.value;
	if (startPosition!=endPosition) {
		var sbStr = text.substring(startPosition,endPosition);
		sbStr = "&#60;u&#62;"+sbStr+"&#60;/u&#62;";

		fillsFormattedString(text,sbStr);
	}
}

function insertsDeleteTag()
{
	findPositions();

	var text = area.value;
	if (startPosition!=endPosition) {
		var sbStr = text.substring(startPosition,endPosition);
		sbStr = "&#60;del&#62;"+sbStr+"&#60;/del&#62;";

		fillsFormattedString(text,sbStr);
	}
}

function findPositions()
{
	var text = area.value;

	if (document.selection) {
		// Internet Explorer
		var range = document.selection.createRange();
		var dpl = range.duplicate();
		if (range.text.length &#62; 0) {
			dpl.moveToElementText(area);
			dpl.setEndPoint("EndToEnd", range);
			startPosition = dpl.text.length-range.text.length;
			endPosition = startPosition + range.text.length;
		}
	}
	else {
		// Mozilla Firefox
		startPosition = area.selectionStart;
		endPosition = area.selectionEnd;
	}
}

function fillsFormattedString(text, selectedText)
{
	// split textarea value into three pieces: before startPosition,
        // startPosition until endPosition, and after endPosition
	var str1 = text.substring(0,startPosition);
	var str2 = text.substring(startPosition,endPosition);
	var str3 = text.substring(endPosition,text.length);

	// replace str2 with formatted substring (selectedText)
	str2 = selectedText;
	// form the new string
	formattedStr = str1+str2+str3;
	area.value = formattedStr;
}</pre>
</div>
<p>&#160;</p>
<p>To apply HTML text editor, we need to know how to get cursor positions and how to retrieve selected text.<br />
Lets take a look at Javascript code. In <strong>window.onload</strong> (happen when our page is load) I retrieve &#60;textarea&#62; and &#60;div&#62; element</p>
<pre>window.onload = function()
{
     area = document.getElementById("area");
     showDiv = document.getElementById("showDiv");
};</pre>
<p>When we click bold button ('<strong>B</strong>') the cursor positions (<strong>startPosition</strong> and <strong>endPosition</strong>) will be filled with appropriate value depend on what we have already selected. Split the string value using startPosition and endPosition, then enclose the string with &#60;b&#62; tag.</p>
<pre><code>
findPositions();</code>
<code>
var text = area.value;
if (startPosition!=endPosition) {
	var sbStr = text.substring(startPosition,endPosition);
	sbStr = "&#60;b&#62;"+sbStr+"&#60;/b&#62;";
</code></pre>
<p>The next step, I split the string into three pieces: first character to startPosition, between startPosition and endPosition, endPosition until last character.<br />
<code><br />
var str1 = text.substring(0,startPosition);<br />
var str2 = text.substring(startPosition,endPosition);<br />
var str3 = text.substring(endPosition,text.length);<br />
</code></p>
<p>Then I replace the second substring (str2) with selectedText (text that we have already inserted with the appropriate tag). So the result is new string with html tag inside it, and gives it back to textarea.<br />
<code><br />
// replace str2 with formatted substring (selectedText)<br />
str2 = selectedText;<br />
// form the new string<br />
formattedStr = str1+str2+str3;<br />
area.value = formattedStr;</code></p>
<p>The same thing also valid for italic, underline, and del button but we insert &#60;i&#62;, &#60;u&#62;, &#60;del&#62;, for italic, underline, and del button respectively.</p>
<p>When we click 'Publish' button, we retrieve value of textarea and pass it as <strong>innerHTML</strong> of showDiv element.<br />
<code><br />
formattedStr = "&#60;pre&#62;"+document.getElementById("area").value+"&#60;/pre&#62;";<br />
showDiv.innerHTML = formattedStr;<br />
</code></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CSS in ASP.NET Server Controls, Declaratively vs. Programmatically]]></title>
<link>http://triaslama.wordpress.com/?p=160</link>
<pubDate>Wed, 07 May 2008 00:03:20 +0000</pubDate>
<dc:creator>triaslama</dc:creator>
<guid>http://triaslama.es.wordpress.com/2008/05/07/css-in-aspnet-server-controls-declaratively-vs-programmatically/</guid>
<description><![CDATA[ASP.NET controls has a bunch of attributes that take in order the look and feel of every control. Fo]]></description>
<content:encoded><![CDATA[<p>ASP.NET controls has a bunch of attributes that take in order the look and feel of every control. For example TextBox server control, if we want the TextBox color turn into specific color we specify the ForeColor attribute to the name of Color defined in Color structure. If we want the TextBox text font appear in Georgia font, set Font-Name attribute to Georgia. ASP.NET TextBox script for above requirements will look something like this:<br />
<code><br />
&#60;asp:TextBox id="txtTest" <span style="color:red;">ForeColor="Red"  Font-Name="Georgia"</span> runat="server" /&#62;<br />
</code><br />
It looks simple, right?</p>
<p>But wait, for the one familiar with ASP.NET it doesn't matter, but for everyone who already familiar with <a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets" target="_blank">CSS</a> maybe  there is a bit problem because the attribute name of ASP.NET server controls slightly different with attribute in CSS file. So sometimes we may prefer that the looks and feels of ASP.NET controls ruled within CSS file. And yes, we can do this!</p>
<p>In ASP.NET information within a CSS file can be accessed either declaratively or programmatically, its up to you which one to choose. To make a CSS file visible within our page put this declaration inside our &#60;head&#62;&#60;/head&#62; tag:</p>
<p><code>&#60;link rel="stylesheet" type="text/css" href="<strong>[filelocation/css_filename.css]</strong>" /&#62;</code></p>
<p><!--more--><br />
<strong>Accessing CSS Declaratively in ASP.NET Server Controls</strong><br />
To access CSS file in declaratively style, we need <strong>CssClass</strong> attribute of every ASP.NET server control. We pass class inside CSS file as value for <strong>CssClass</strong> attribute. Look at the following code for detail (css_one.aspx):</p>
<div style="background-color:#EFEFEF;font-family:'courier new';font-size:11px;border:2px solid goldenrod;">
<ul> &#60;%@ Page Language="C#" %&#62;</p>
<p>&#60;html&#62;<br />
&#60;head&#62;<br />
&#60;title&#62;CSS Inside ASP.NET Server Controls&#60;/title&#62;<br />
&#60;link rel="stylesheet" type="text/css" href="../simple2.css" /&#62;<br />
&#60;script lang="C#" runat="server"&#62;<br />
void ShowText(object sender, EventArgs e)<br />
{<br />
this.lbl.Text = this.txtInput.Text;<br />
}<br />
&#60;/script&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
&#60;form runat="server"&#62;<br />
&#60;asp:TextBox id="txtInput" CssClass="TxtStyle" runat="server" /&#62;<br />
&#60;asp:Button id="btnSubmit" text="Submit" onclick="ShowText" CssClass="BtnStyle" runat="server" /&#62;<br />
&#60;p /&#62;<br />
&#60;asp:Label id="lbl" CssClass="Common" runat="server" /&#62;<br />
&#60;/form&#62;<br />
&#60;/body&#62;<br />
&#60;/html&#62;</ul>
</div>
<p>This is external CSS file for the code above (simple2.css):</p>
<div style="background-color:#EFEFEF;font-family:'courier new';font-size:11px;border:2px solid goldenrod;">
<pre>.BtnStyle
{
   font-family:Times New Roman;
   font-size:20px;
   font-weight:bold;
}

.TxtStyle
{
   font-family:Georgia;
   font-size:17px;
   font-weight:bold;
   border:2px solid goldenrod;
}

.Common
{
   background-color:gainsboro;
   color:red;
   font-family:Courier New;
   font-size:17px;
   font-weight:bold;
}</pre>
</div>
<p>This is the result of css_one.aspx:</p>
<div style="border:1px solid red;"><img class="alignnone size-full wp-image-161" src="http://triaslama.wordpress.com/files/2008/05/css_aspnet.jpg" alt="" width="338" height="82" /></div>
<p><em>Style of ASP.NET page via CSS.</em></p>
<p><strong>Accessing CSS Programmatically in ASP.NET Server Controls</strong><br />
Accessing CSS programmatically can be accomplised with the help of <strong>Attributes</strong> property of ASP.NET server controls. For example if we want apply styles defined in external CSS file in Button object named btn:</p>
<p><code>btn.Attributes["class"] = "BtnStyle";</code></p>
<p>The rest should be same as declaratively manner, but I use code behind and put the C# code in separate file (css_two.aspx.cs). This is our presentation (css_two.aspx):</p>
<div style="background-color:#EFEFEF;font-family:'courier new';font-size:11px;border:2px solid goldenrod;">
<ul> &#60;%@ Page Language="C#" CodeFile="css_two.aspx.cs" Inherits="CSS.CSSProgrammatically" %&#62;</p>
<p>&#60;html&#62;<br />
&#60;head&#62;<br />
&#60;title&#62;CSS in ASP.NET&#60;/title&#62;<br />
&#60;link rel="stylesheet" type="text/css" href="../simple2.css" /&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
&#60;form runat="server"&#62;<br />
&#60;asp:TextBox id="txtInput" runat="server" /&#62;<br />
&#60;asp:Button id="btnInput" text="Submit" onclick="SubmitValue" runat="server" /&#62;<br />
&#60;p /&#62;<br />
&#60;asp:Label id="lbl" runat="server" /&#62;<br />
&#60;/form&#62;<br />
&#60;/body&#62;<br />
&#60;/html&#62;</ul>
</div>
<p>In Page directive we add <strong>CodeFile</strong> and <strong>Inherits</strong> attributes, because we use code behind in css_two.aspx.cs file and our page will use <a href="http://en.wikipedia.org/wiki/Partial_class" target="_blank">partial class</a> defined in CSS.CSSProgrammatically class. This class resides in css_two.aspx.cs file. This is the code behind (css_two.aspx.cs):</p>
<div style="background-color:#EFEFEF;font-family:'courier new';font-size:11px;border:2px solid goldenrod;">
<pre>using System;
using System.Web;
using System.Web.UI;

namespace CSS
{
    public partial class CSSProgrammatically : Page
    {
        private void Page_Load()
        {
            this.txtInput.Attributes["class"] = "TxtStyle";
            this.btnInput.Attributes["class"] = "BtnStyle";
            this.lbl.Attributes["class"] = "Common";
        }

        protected void SubmitValue(object sender, EventArgs e)
        {
            this.lbl.Text = this.txtInput.Text;
        }
    }
}
</pre>
</div>
<p>We use the same CSS file as before. The above files will produce output something similar with the previous result.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[&lt;title /&gt; bug in Internet Explorer]]></title>
<link>http://oligofren.wordpress.com/?p=150</link>
<pubDate>Sat, 19 Apr 2008 12:29:16 +0000</pubDate>
<dc:creator>Carl-Erik</dc:creator>
<guid>http://oligofren.es.wordpress.com/2008/04/19/title-bug-in-internet-explorer/</guid>
<description><![CDATA[Just thought I would bring along my experience on this little known bug in Internet Explorer. I wrot]]></description>
<content:encoded><![CDATA[<p>Just thought I would bring along my experience on this little known bug in Internet Explorer. <!--more-->I wrote a little test page the other night, and tried validating it. The W3C Validator complained that the XHTML head tag must have a title tag, and so I just made a blank title tag (without content) in normal, quite valid, XML like this: <code>&#60;title /&#62;</code></p>
<p>This should be exactly the same as writing <code>&#60;title&#62;&#60;/title&#62;</code>, just shorter, something both Firefox and the W3C validator agreed on. But Microsoft Internet Explorer thought otherwise and gave me a blank page! It actually took me more than a day before figuring it out. I though it had someting to do with the CSS all along, and just figured it out by coincidence. Hope someone out there will find this useful ...</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[DOM &amp; HTML Revisited]]></title>
<link>http://triaslama.wordpress.com/?p=99</link>
<pubDate>Fri, 18 Apr 2008 16:52:20 +0000</pubDate>
<dc:creator>triaslama</dc:creator>
<guid>http://triaslama.es.wordpress.com/2008/04/18/dom-html-revisited/</guid>
<description><![CDATA[What can I say about DOM (Document Object Model)? Its lightweight, its everywhere, its some kind use]]></description>
<content:encoded><![CDATA[<p>What can I say about DOM (Document Object Model)? Its lightweight, its everywhere, its some kind useful. How about HTML? its everywhere and its easy. But, I think, the most important about them both is because both doesn't suck!<br />
I don't know how about you. I just doing a simple (and I think interesting enough) exploration about HTML &#38; DOM. Let's check it out!</p>
<p>Suppose I want to make an element enabled &#38; disabled when I select an item from a dropdownlist (combo box). With HTML it can be accomplished easily! How about if I want to make a new &#60;select&#62; element when I have choose something from previous &#60;select&#62; element?? With mix blend of DOM &#38; HTML it can be accomplished easily too!</p>
<p>This page consist of two parts, each of them separated by horizontal lin. This is the screenshots of my simple page:<br />
<img class="aligncenter size-full wp-image-128" src="http://triaslama.wordpress.com/files/2008/04/init2.jpg" alt="init" /><br />
<em>Initial condition, first part and second part separated by horizontal line.</em></p>
<p><!--more--></p>
<p><strong>First Part</strong><br />
When we select "Others" from fruit dropdownlist the text box will be enabled, otherwise text box will remain disabled. Please aware about one thing, because we only use HTML, DOM, and Javascript this example is stateless. If we refresh the page everything will back to its initial state whatever changes we have made.</p>
<p><img class="alignnone size-full wp-image-129" src="http://triaslama.wordpress.com/files/2008/04/img_enabled.jpg" alt="enabled" /><br />
<em>Others selected, so textbox and button enabled.</em></p>
<p>Everytime we select the fruit dropdownlist <strong>change</strong> event will be fired, this event will activate <strong>selectedItemChange</strong> function. <strong>selectedItemChange</strong> receives one parameter that is fruit dropdownlist value. Then this value evaluated. If value equal with <strong>"others"</strong> then textbox and button will be enabled. If we click “Add To List” button, value entered in text box will be filled in fruit dropdownlist.</p>
<p><strong>Second Part</strong><br />
If we select something except the dash (---) a new dropdownlist element will be created and populated with the appropriate values. This is done by following code:</p>
<p><code>var slcTwo = document.createElement("select");<br />
for (var i=0;i&#60;arr[val].length;i++) {<br />
var option = document.createElement("option");<br />
var text = document.createTextNode(arr[val][i]);<br />
option.appendChild(text);<br />
slcTwo.appendChild(option);</code><br />
<code>}</code><br />
<code><br />
container.appendChild(slcTwo);<br />
</code><br />
And this is screenshot when a dropdownlist created and populated with appropriate value based on the value of previous dropdownlist.</p>
<p><a href="http://triaslama.files.wordpress.com/2008/04/img_enabled_parttwo1.jpg"><img class="aligncenter size-full wp-image-132" src="http://triaslama.wordpress.com/files/2008/04/img_enabled_parttwo1.jpg" alt="" /></a></p>
<p><em>Another dropdownlist created automatically and populated with values according to selected item in subject dropdownlist.</em></p>
<p>Now let the code talk for more detail, and here is the complete of HTML code:</p>
<div style="background-color:#EFEFEF;font-family:'courier new';font-size:11px;">
<ul> &#60;html&#62;<br />
&#60;head&#62;<br />
&#60;title&#62;Test Something&#60;/title&#62;<br />
&#60;script lang="javascript" type="text/javascript" src="explore_code.js" &#62;<br />
&#60;/script&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
&#60;b&#62;Fruit: &#60;/b&#62;<br />
&#60;select id="slcFruit" onchange="selectedItemChange(this.value)" &#62;<br />
&#60;option value="banana"&#62;Banana&#60;/option&#62;<br />
&#60;option value="jackfruit"&#62;Jackfruit&#60;/option&#62;<br />
&#60;option value="mango"&#62;Mango&#60;/option&#62;<br />
&#60;option value="orange"&#62;Orange&#60;/option&#62;<br />
&#60;option value="others"&#62;&#60;b&#62;Others&#60;/b&#62;&#60;/option&#62;<br />
&#60;/select&#62;</p>
<p>&#60;input type="text" id="txtMore" disabled="true" /&#62;</p>
<p>&#60;input type="button" id="btnAdd" value="Add To List" onclick="addToList(txtMore.value)" disabled="disabled" /&#62;<br />
&#60;p /&#62;<br />
&#60;hr /&#62;<br />
&#60;b&#62;Subject: &#60;/b&#62;&#60;select id="slcOne" onchange="selectedItemChange2(this.value)"&#62;<br />
&#60;option value=""&#62; --- &#60;/option&#62;<br />
&#60;option value="computer"&#62;Computer&#60;/option&#62;<br />
&#60;option value="sports"&#62;Sports&#60;/option&#62;<br />
&#60;option value="vegetables"&#62;Vegetables&#60;/option&#62;<br />
&#60;/select&#62;<br />
&#60;p /&#62;<br />
&#60;div id="container"&#62;<br />
&#60;/div&#62;<br />
&#60;/body&#62;<br />
&#60;/html&#62;</ul>
</div>
<p>Explore_presentation.htm refers to explore_code.js. Javascript code with DOM inside listed below (explore_code.js):</p>
<div style="background-color:#EFEFEF;font-family:'courier new';font-size:11px;">
<ul> var arr;</p>
<p>window.onload = function()<br />
{<br />
arr = new Array();</p>
<p>arr["computer"] = ["Hardware","Software","Internet","Programming","Science"];<br />
arr["sports"] = ["Football","Badminton","Tennis","Swimming"];<br />
arr["vegetables"] = ["Cabbage","Carrot","Spinach","Tomato"];<br />
};</p>
<p>function selectedItemChange(val)<br />
{<br />
var resVal = "others";<br />
var txtMore = document.getElementById("txtMore");<br />
txtMore.value = "";<br />
txtMore.disabled = true;</p>
<p>if (val==resVal) {<br />
txtMore.disabled = false;<br />
btnAdd.disabled = false;<br />
}<br />
}</p>
<p>function addToList(newVal)<br />
{<br />
var slcFruit = document.getElementById("slcFruit");<br />
var txtMore = document.getElementById("txtMore");<br />
var btnAdd = document.getElementById("btnAdd");<br />
var option = new Option(newVal, newVal);</p>
<p>txtMore.value = "";<br />
txtMore.disabled = true;<br />
btnAdd.disabled = true;<br />
slcFruit.appendChild(option);<br />
}</p>
<p>function selectedItemChange2(val)<br />
{<br />
var container = document.getElementById("container");<br />
container.innerHTML = "";</p>
<p>var slcTwo = document.createElement("select");<br />
for (var i=0;i&#60;arr[val].length;i++) {<br />
var option = document.createElement("option");<br />
var text = document.createTextNode(arr[val][i]);<br />
option.appendChild(text);<br />
slcTwo.appendChild(option);<br />
}</p>
<p>container.appendChild(slcTwo);<br />
}</ul>
</div>
<p>I think it something looks good, how about you?</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Curso de Introducción a CSS (Cascading Style Sheets)]]></title>
<link>http://hispasystem.wordpress.com/?p=42</link>
<pubDate>Wed, 26 Mar 2008 14:55:53 +0000</pubDate>
<dc:creator>hispasystem</dc:creator>
<guid>http://hispasystem.es.wordpress.com/2008/03/26/curso-de-introduccion-a-css-cascading-style-sheets/</guid>
<description><![CDATA[
Pues bien este artículo lo escribiré con el fin de que se inicien un poco en dar estilo a los doc]]></description>
<content:encoded><![CDATA[<div style="text-align:center;"><img src="http://hispasystem.wordpress.com/files/2008/03/275px-css.png" alt="Logo CSS" height="313" width="275" /></div>
<p>Pues bien este artículo lo escribiré con el fin de que se inicien un poco en dar estilo a los documentos <a href="http://en.wikipedia.org/wiki/HTMLL">HTML</a>, <a href="http://en.wikipedia.org/wiki/CSS">CSS</a> además también sirve para dar estilo a los documentos <a href="http://en.wikipedia.org/wiki/XML">XML</a> aun así, para estos yo prefiero usar <a href="http://en.wikipedia.org/wiki/Extensible_Stylesheet_Language">XSL </a>(pronto escribiré un artículo sobre esto)</p>
<p>Destaco que se dividirá en varias clases.</p>
<p><b> Índice</b></p>
<ul>
<li>1. ¿Que es CSS?</li>
<li>2. ¿Para que sirve?
<ul>
<li>2.1 Beneficios</li>
<li>2.2 Inconvenientes</li>
</ul>
</li>
<li>3. ¿Cómo funciona?</li>
<li>4. Usando las hojas de estilo</li>
<li>5. Sintaxis Básica
<ul>
<li>5.1. Agrupamiento</li>
<li>5.2. Herencia</li>
<li>5.3. Clase como selector</li>
<li>5.4. ID como selector</li>
<li>5.5. Selectores contextuales</li>
<li>5.6. Comentarios</li>
<li>5.7. 5.7. Pseudo-clases y pseudo-elementos</li>
<li>5.8. Diseño en cascada</li>
<li>5.9. Modelo de formato</li>
</ul>
</li>
<li>6. Usabilidad y Accesibilidad con las Hojas de Estilo</li>
<li>7. Editores Web para trabajar con CSS</li>
<li>8. Compatibilidad con los Navegadores</li>
</ul>
<p><b>Información al usuario:<br />
</b></p>
<p>-Si quiere seguir el curso le recomiendo tener un mínimo conocimiento de <a href="http://en.wikipedia.org/wiki/HTML">Html.</a></p>
<p>-Si desean suscribirse pueden mandar un mail a la dirección situada en la sección <a href="http://hispasystem.wordpress.com/contacto/">Contacto</a> o publicando un comentario con la petición de su inscripción.</p>
<p>-Pueden seguir  el curso sin necesidad de suscribirse pero al no hacer esto, no les ofreceré soporte en sus dudas ni podrán acceder a  todas las ventajas que supondrá estar suscrito.</p>
<p><i><b> Atte:  </b></i>Edgar H.S. Group</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Javascript And CSS Animations: The Difference Between Display And Visibility]]></title>
<link>http://triaslama.wordpress.com/?p=65</link>
<pubDate>Sat, 08 Mar 2008 04:39:48 +0000</pubDate>
<dc:creator>triaslama</dc:creator>
<guid>http://triaslama.es.wordpress.com/2008/03/08/javascript-and-css-animations-the-difference-between-display-and-visibility/</guid>
<description><![CDATA[Display and visibility are two properties of style attribute which determine whether an element shou]]></description>
<content:encoded><![CDATA[<p><b>Display</b> and <b>visibility</b> are two properties of style attribute which determine whether an element should appear or disappear. Although both share the same functionality but, display and visibility has important distinctions. In this post I will unveil one of the difference between display and visibility.</p>
<p>Here is the scenario:</p>
<p><a href="http://triaslama.wordpress.com/files/2008/03/dispvis_fullview2.jpg" title="Display and Visibility"><img src="http://triaslama.wordpress.com/files/2008/03/dispvis_fullview2.jpg" alt="Display and Visibility" /></a></p>
<p>The above picture produced by HTML and Javascript code, here HTML code (dv.htm):</p>
<div> &#60;html&#62;<br />
&#60;head&#62;<br />
&#60;title&#62;The Difference Between Display and Visibility&#60;/title&#62;<br />
&#60;script lang="javascript" type="text/javascript" src="dv2.js" src="dv2.js"&#62;<br />
&#60;/script&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
Select Mode: &#60;p&#62;<br />
&#60;input type="radio" id="rad1" name="rdChoice" checked="true" value="display"&#62;Display&#60;/input&#62;<br />
&#60;br&#62;<br />
&#60;input type="radio" id="rad2" name="rdChoice" value="visibility"&#62;Visibility&#60;/input&#62;<br />
&#60;p&#62;<br />
&#60;b&#62;To see the difference between display and visibility:&#60;/b&#62;&#60;br&#62; select desired mode&#62;&#62;move mouse cursor over the text below&#62;&#62;hold down 'Ctrl' key&#62;&#62;click the element<br />
&#60;p&#62;<br />
&#60;div id="content" style="border:2px solid black; width:400px;font-family:arial;font-size:17px"&#62;<br />
&#60;b&#62;<br />
&#60;span id="firstSpan"&#62;The Difference &#60;/span&#62;&#60;span id="secondSpan"&#62;Between &#60;/span&#62;&#60;span id="thirdDiv"&#62;Display and &#60;/span&#62;&#60;span id="fourthSpan"&#62;Visibility.&#60;/span&#62;<br />
&#60;/b&#62;<br />
&#60;/div&#62;<br />
&#60;/body&#62;<br />
&#60;/html&#62;</div>
<p>and this is Javascript code:</p>
<div style="background-color:#eeeeee;"><code><br />
window.onload = selectSpan;</code><br />
<code><br />
function selectSpan()<br />
{<br />
var spans = document.getElementsByTagName("span");<br />
for (var i=0;i<br />
spans[i].onmouseover = function()<br />
{<br />
this.style.backgroundColor = "lavender";<br />
};<br />
spans[i].onmouseout = function()<br />
{<br />
this.style.backgroundColor = "white";<br />
};<br />
spans[i].onclick = function(e)<br />
{<br />
// event in IE acessible through window.event property<br />
e = e&#124;&#124;window.event;<br />
var rad1 = document.getElementById("rad1");<br />
var rad2 = document.getElementById("rad2");</code><br />
<code><br />
if (e.ctrlKey) {<br />
if (rad1.checked) {<br />
//window.alert(rad1.value);<br />
this.style.display = "none";<br />
}<br />
else if (rad2.checked) {<br />
//window.alert(rad2.value);<br />
this.style.visibility = "hidden";<br />
}<br />
else {<br />
window.alert("something else selected.");<br />
}<br />
}<br />
};<br />
}<br />
}<br />
</code></div>
<p><b>Display</b> mode has several possible values such as <i>none, inline, </i>and<i> block</i>. <b>Visibility</b> has two possible values that is <i>visible</i> and <i>hidden</i>. Setting visibility property of an element to hidden will make that element disappear but still leaving that element in document. Setting the display property of an element to <i>none </i>will make that element looks like just removed from the document / pulled out from the document.</p>
<p>To prove this concept, run the code in browser select a mode (display or visibility), move your mouse over an element inside the block then hold down 'Ctrl' key and click  element that you want to make it disappear / invisible from document.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Javascript and CSS Animations: The Difference of Element Positioning.]]></title>
<link>http://triaslama.wordpress.com/?p=57</link>
<pubDate>Wed, 05 Mar 2008 23:03:49 +0000</pubDate>
<dc:creator>triaslama</dc:creator>
<guid>http://triaslama.es.wordpress.com/2008/03/05/javascript-and-css-animations-the-difference-of-element-positioning/</guid>
<description><![CDATA[Element positioning defines how an element will be positioned in the document. We adjust the element]]></description>
<content:encoded><![CDATA[<p>Element positioning defines how an element will be positioned in the document. We adjust the element positioning through Cascading Style Sheets (CSS) property named<b> position. </b>In the following example  we set div element's position to its absolute location (external CSS):<br />
<code><br />
div<br />
{<br />
<b>position:absolute;</b><br />
top:0px;<br />
left:100px;<br />
}</code></p>
<p>Position property can hold static, relative, absolute, or fixed value. Below simple explanation and example of each positioning:</p>
<p><b>1. Static positioning:</b><br />
Static positioning is the default positioning of an element, it just flow one after another like what is appear in HTML source. Top and left properties doesn't affect the document appearance. Consider the following HTML code (positions.htm):</p>
<p><i>&#60;html&#62;<br />
&#60;head&#62;<br />
&#60;title&#62;Element Positioning&#60;/title&#62;<br />
&#60;link rel="stylesheet" type="text/css" href="positions.css"   /&#62;<br />
&#60;script lang="javascript" type="text/javascript" &#62;<br />
&#60;/script&#62;<br />
&#60;/head&#62;<br />
&#60;body&#62;<br />
&#60;div id="firstDiv"&#62;<br />
Bunda pernah berkata kurang lebih... (I cut some contents here).<br />
&#60;/div&#62;<br />
&#60;div id="secondDiv"&#62;<br />
Setelah ayahku meninggal maka ibuku harus menjadi ‘Single Parent’ bagiku...<br />
&#60;/div&#62;<br />
&#60;div id="thirdDiv"&#62;<br />
Pada saat aku sudah bekerja di Jakarta...<br />
&#60;/div&#62;<br />
&#60;div id="fourthDiv"&#62;<br />
Bunda sering berpesan agar aku tidak membedakan perlakuan...<br />
&#60;/div&#62;<br />
&#60;/body&#62;<br />
&#60;/html&#62;</i></p>
<p>Positions.htm refers to a CSS file named positions.css, here the external CSS file:<br />
<code><br />
div<br />
{<br />
font-family:verdana;<br />
font-size:12pt;<br />
border:2px solid goldenrod;<br />
background-color:lavender;<br />
position:static;<br />
width:450px;<br />
}</code></p>
<p>The couple of code will give the following result:</p>
<p><a href="http://triaslama.wordpress.com/files/2008/03/positions1_all.jpg" title="positions1_all.jpg"><img src="http://triaslama.wordpress.com/files/2008/03/positions1_all.jpg" alt="positions1_all.jpg" /></a><br />
<i>With static positioning the document just flow as what is appear in HTML code.</i></p>
<p><b>2. Relative Positioning</b><br />
Relative positioning behaves much like static positioning, but top and left properties affect the document appearance. The position for this positioning relative to its preceding element.<br />
Add the following to our CSS file:<br />
<code><br />
div.specialized<br />
{<br />
position:relative;<br />
top:-40px;<br />
left:-35px;<br />
}</code></p>
<p>After that add a class attribute to the 'secondDiv' div element:</p>
<p>&#60;div id="secondDiv" class="specialized"&#62;</p>
<p>Refresh our page now you will see a page that look like this:</p>
<p><a href="http://triaslama.wordpress.com/files/2008/03/positions1_relative.jpg" title="positions1_relative.jpg"><img src="http://triaslama.wordpress.com/files/2008/03/positions1_relative.jpg" alt="positions1_relative.jpg" /></a><br />
<i>Relative positioning, the element position relative to its preceding element.</i></p>
<p><b>3. Absolute Positioning</b><br />
If an element's positioning specified to absolute that element will be pulled out from document flow and precisely placed in the specific position relative to its current parent element that has non static position. If no such exist the element will be placed in specified position toward entire document.<br />
Lets change the CSS file into the following:</p>
<p><code><br />
div.specialized<br />
{<br />
position:absolute;<br />
top:0px;<br />
left:0px;<br />
}</code></p>
<p>Then we should get the following result:</p>
<p><a href="http://triaslama.wordpress.com/files/2008/03/positions1_absolute.jpg" title="Absolute Positioning"><img src="http://triaslama.wordpress.com/files/2008/03/positions1_absolute.jpg" alt="Absolute Positioning" /></a><br />
<i>Absolute positioning, the element placed absolute to its entire document, if there is exist an element than it will overlap.</i></p>
<p><b>4. Fixed Positioning</b><br />
Fixed positioning places an element relative to browser window (viewport), so if we scroll the browser element with fixed positioning will remain in such position.<br />
Change our CSS file into the following:<br />
<code><br />
div.specialized<br />
{<br />
position:fixed;<br />
top:0px;<br />
left:250px;<br />
}</code></p>
<p>Refresh our page and try to scroll down the window, and the 'secondDiv' element will remain<br />
in the top of viewport!</p>
<p><a href="http://triaslama.wordpress.com/files/2008/03/positions1_fixed.jpg" title="Fixed Positioning"><img src="http://triaslama.wordpress.com/files/2008/03/positions1_fixed.jpg" alt="Fixed Positioning" /></a><br />
<i>Fixed positioning. Even though we scroll down / up the window, an element with fixed position will remain in its position toward viewport.</i></p>
<p>Note: I try fixed positioning in Internet Explorer (IE) 6 and it doesn't work<br />
well. We need IE7 or higher to make it work!</p>
<p>Element positioning can make sense in some situations! I hope this useful &#38; thanks.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Javascript and CSS Animations: A Brief Introduction]]></title>
<link>http://triaslama.wordpress.com/?p=55</link>
<pubDate>Tue, 04 Mar 2008 21:45:52 +0000</pubDate>
<dc:creator>triaslama</dc:creator>
<guid>http://triaslama.es.wordpress.com/2008/03/04/javascript-and-css-animations-a-brief-introduction/</guid>
<description><![CDATA[Animations in Javascript and CSS can be accomplished using style attribute. The most frequently used]]></description>
<content:encoded><![CDATA[<p>Animations in Javascript and CSS can be accomplished using style attribute. The most frequently used property of style attribute to create animations / special effects are position, visibility/display, size, filter/opacity.</p>
<p>The position property figuring how an element placed in the window / browser. Visibility and display determine is an element visible or not. Size determine the size of an element. Opacity / filter determine if an element will be transparent or opaque.<br />
Dynamic effects / animations can be achieved by manipulating that properties rightly. For example if we want placed an element overlap with another we can accomplish this task with position property. Want to make an element blur if an event happens? Opacity/filter will come to help us do this.</p>
<p>In the next post I will try giving a simple example on how to make animation using Javascript and CSS. But please notice that my next posts only gives simple examples, and aimed only to give some insights on how to make animations and special effects using Javascript and CSS. See you...</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[HTML &amp; CSS]]></title>
<link>http://fungusmungus07.wordpress.com/2007/11/23/html-css/</link>
<pubDate>Sat, 24 Nov 2007 04:38:24 +0000</pubDate>
<dc:creator>fungusmungus07</dc:creator>
<guid>http://fungusmungus07.es.wordpress.com/2007/11/23/html-css/</guid>
<description><![CDATA[My expirience with HTML and CSS was very minimal before taking this course. I have worked with basic]]></description>
<content:encoded><![CDATA[<p>My expirience with HTML and CSS was very minimal before taking this course. I have worked with basic HTML, but not CSS. I must say this is what I have bee waiting for, to actually get some time with CSS. I found W3 Schools site very useful and has very good useful information. I played around with a lot of the tutorials to see how CSS really works. I found that CSS is not something that is very overwhelming, but does require sometime to learn the concept and rules of it. Once I can mange to learn the symbols and spacing rules, I think I can get a good feel for it. I found that it is a great tool for web designers. It saves a great amount of time when editing pages. I'm looking forward to exploring CSS more and more as time progresses in IMD. Don't get me wrong, I have learned a lot of useful information and useful tools when it comes to our articles that we have to write about on our daily blogs. This class has helped me be more resourceful when looking for answers. Never did I know the tools I have learned in IMD before taking the course.</p>
<p> Marco</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Putting AdSense into Your Blogger Header ]]></title>
<link>http://businesswithoutstress.wordpress.com/2007/11/16/putting-adsense-into-your-blogger-header/</link>
<pubDate>Fri, 16 Nov 2007 20:33:08 +0000</pubDate>
<dc:creator>author</dc:creator>
<guid>http://businesswithoutstress.es.wordpress.com/2007/11/16/putting-adsense-into-your-blogger-header/</guid>
<description><![CDATA[Have you ever thought how great and clickable it would be to put your AdSense blocks into your heade]]></description>
<content:encoded><![CDATA[<p>Have you ever thought how great and clickable it would be to put your AdSense blocks into your header in your blog on blogger? not near it, not on the top of it or right next to it but in it! To cut the long story about its efficiency and design qualities I will start the code performance!</p>
<p>Go to edit HTML and I hope you all know where it is and how to find it)))  ok Find this part of code in your HTML:</p>
<p><span class="fullpost"><span style="color:#3366ff;">&#60;div id='header-wrapper'&#62;<br />
&#60;b:section class='header' id='header' maxwidgets='2' preferred='yes' showaddelement='yes'&#62;</span></span><!--more--></p>
<p>Found it? now change lines in this code the way I've written in my example, other words, change maxwidgets for 2 and allow  showaddelement and so on...</p>
<p>Check template--&#62; Page elements and you should be able to see one page element in your header, if you have done everything correct. I'm  sure  you have!! My congratulations! Now you can easily insert there your <span class="fullpost">HTML/JavaSript  code that you have received from <a href="https://www.google.com/adsense/" target="_blank">AdSense</a> or just use Adsense widget in your blogger widgets menu, in two words now you are the king of AdSense on your Blogger</span></p>
<p><a href="http://www.an-vizit.com/">real estate in Crimea</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Creating a Menubar Right Under Your Header in Blogger]]></title>
<link>http://businesswithoutstress.wordpress.com/2007/11/08/creating-a-menubar-right-under-your-header-in-blogger/</link>
<pubDate>Thu, 08 Nov 2007 18:39:13 +0000</pubDate>
<dc:creator>author</dc:creator>
<guid>http://businesswithoutstress.es.wordpress.com/2007/11/08/creating-a-menubar-right-under-your-header-in-blogger/</guid>
<description><![CDATA[It will take you a few minutes to create your own Menubar in your Blogger.
I haven&#8217;t fount suc]]></description>
<content:encoded><![CDATA[<p>It will take you a few minutes to create your own <span style="color:#3366ff;">Menubar</span> in your Blogger.<br />
I haven't fount such page element that is to add a menubar to your blogger. So, believe, if you do exactly in that particular way that is written below, you will get a nice menubar right under your Header and further replace it wherever you want it to be. I've found Menubar more useful and efficient than labels or any other page element in blogger for these purposes to classify your content.<br />
Let the show begin!</p>
<p>As usual, before doing something, save your template.<br />
Then, <span style="color:#3366ff;">Template--&#62;Edit HTML</span> and search in your code for lines that I’ve given in red color...<br />
<span class="fullpost"><br />
<span style="color:#ff0000;">&#60;div id=\'header-wrapper\'&#62;</span><br />
<span style="color:#33ff33;">&#60;b:section class=\'menubar\' id=\'menubar\' maxwidgets=\'1\' showaddelement=\'yes\'&#62;<br />
&#60;b:widget id=\'LinkList2\' locked=\'true\' title=\'Menubar\' type=\'LinkList\'/&#62;<br />
&#60;/b:section&#62;</span><!--more--><br />
<span style="color:#ff0000;">&#60;b:section class=\'header\' id=\'header\' maxwidgets=\'1\' showaddelement=\'no\'&#62;<br />
&#60;b:widget id=\'Header1\' locked=\'false\' title=\'Beautiful Beta (Header)\' type=\'Header\'/&#62;<br />
&#60;/b:section&#62;<br />
&#60;/div&#62;</span></span></p>
<p>And paste between them the code that I’ve given in green. Then in CSS part, only there, in two words, find that part in your code where you have many lines starting with # and paste there as one part following code:</p>
<p><span style="color:#00ff00;"><br />
<span style="color:#00ff00;"> #menubar h2 {display:none;}</span></span></p>
<p><span style="color:#00ff00;">#menubar ul {<br />
list-style: none;<br />
}<br />
#menubar li {<br />
float: left;<br />
}</span></p>
<p><span style="color:#00ff00;">#menubar a:link, #menubar a:visited, #menubar a:hover {<br />
padding: 5px;<br />
display: block;<br />
color: $headerTextColor;<br />
}</span></p>
<p><span style="color:#00ff00;">#menubar a:hover {<br />
background-color: $headerCornersColor;<br />
}</span><br />
Ok, we will have no title in our Menubar but who needs title for Menubar? Besides, you will be able to set a title for you Menubar in “<span style="color:#3366ff;">Page Elements</span>”</p>
<p>In some templates they don’t want to save it and give you such error:<br />
<span style="color:#0f0000;"> "<span style="color:#ff6600;">Invalid variable declaration in page skin: Variable is used but not defined. Input: headerTextColor</span>"</span></p>
<p>If you received such an error, then just paste the following code right after “Variable definitions” in your template:<br />
<span style="color:#00ff00;"><br />
&#60;Variable name=\"headerCornersColor\" description=\"Menu background color\"<br />
type=\"color\" default=\"#fff\" value=\"#e6e6e6\"&#62;<br />
&#60;Variable name=\"headerTextColor\" description=\"Menu text color\"<br />
type=\"color\" default=\"#c60\" value=\"#5588aa\"&#62;<br />
</span></p>
<p>Now save it. No errors?  That’s good.<br />
All color options and setting will be available in “<span style="color:#3366ff;">Fonts and Colors</span>”</p>
<p>Have a nice Menubar :)</p>
<p><a href="http://www.an-vizit.com/">site for travellers</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Post Summary. Implementing "Read more..." to Your Posts on Blogger.]]></title>
<link>http://businesswithoutstress.wordpress.com/2007/11/08/post-summary-implementing-read-more-to-your-posts-on-blogger/</link>
<pubDate>Thu, 08 Nov 2007 18:38:03 +0000</pubDate>
<dc:creator>author</dc:creator>
<guid>http://businesswithoutstress.es.wordpress.com/2007/11/08/post-summary-implementing-read-more-to-your-posts-on-blogger/</guid>
<description><![CDATA[Implementing “Read more button” to your posts is a good method to show on your main page only th]]></description>
<content:encoded><![CDATA[<p>Implementing “Read more button” to your posts is a good method to show on your main page only the beginning of your post in order to make your readers interested. Also, it gives the opportunity to put on your main page a great number of posts without making it incredibly long and difficult to load. This will help you to put only first paragraph or as much as you wish. In blogger I haven’t found tag “more”, which I usually use in such cases, but who cares? I’ve found another way, in the end you will get the phrase “Read more” but you can easily change it to whatever you wish. Let’s get started! To have it properly do exactly what I’ll tell you and before it save your current template! As always <span style="color:#3366ff;">Template--&#62;Edit HTML</span> and search for tag <span style="color:#00ff00;">&#60;/head&#62;</span> and put this code directly before it:<!--more--></p>
<p><strong><span style="color:#00ff00;"><br />
&#60;style&#62;<br />
&#60;b:if cond=\'data:blog.pageType == \"item\"\'&#62;<br />
span.fullpost {display:inline;}<br />
&#60;b:else/&#62;<br />
span.fullpost {display:none;}<br />
&#60;/b:if&#62;<br />
&#60;/style&#62;<br />
</span></strong><br />
Then...<br />
<span class="fullpost">save the template.<br />
Important! There is such tag <span style="color:#00ff00;">]]&#62;&#60;/b:skin&#62;</span> in your template before tag <span style="color:#00ff00;">&#60;/head&#62;</span> You should paste that the code between them.<br />
In that code we have verified the meaning of “fullpost” that will be shown only on your post page.</span></p>
<p>Links Read More...</p>
<p>The second is step is to add links Read more... after every post (or in the middle or where you want to divide your post on introduction and fullpost parts). In order to do this enter Template--&#62;Edit HTML and tick the square <span style="color:#3366ff;">“Expand Widget Templates”</span> and find in your template such line <span style="color:#00ff00;">&#60;data:post.body/&#62;</span> , I sure you have. Found? Paste this code right after it:</p>
<p><span style="color:#00ff00;">&#60;b:if cond=\'data:blog.pageType != \"item\"\'&#62;<br />
&#60;a expr:href=\'data:post.url\' target=\'_blank\'&#62;Read more...&#60;/a&#62;<br />
&#60;/b:if&#62;</span></p>
<p>Save the template. Now this link will appear only on the main page and will redirect reader to the page with full post text. If everything is ok, then we go to the quality of the link. It’s important for you and readers to see this link, so it should be eye catchy or at lees noticeable. So instead of the last code you can paste this one and “Read more...” will become <big>Read more...</big></p>
<p><span style="color:#00ff00;">&#60;b:if cond=\'data:blog.pageType != \"item\"\'&#62;<br />
&#60;span style=\"font-weight:bold;\"&#62;&#60;span style=\"font-size:120%;\"&#62;&#60;a expr:href=\'data:post.url\' target=\'_blank\'&#62; &#60;big&#62;Read more... &#60;/big&#62;&#60;/a&#62;&#60;/span&#62;&#60;/span&#62;<br />
&#60;/b:if&#62;</span></p>
<p>Save it!</p>
<p>And the last step is to change your post, so to say, actually to divide your post on two parts, one that you want to be shown on the main page and the second one that will be shown only after clicking on the link “Read more...”. Go to <span style="color:#3366ff;">Settings--&#62;Formatting</span> and  paste this code in “<span style="color:#3366ff;">post template</span>”:<br />
<span style="color:#33ff33;">This part will be shown on the main page&#60;span class=\"fullpost\"&#62;And this is the rest of the post&#60;/span&#62;</span></p>
<p>Save the settings. Now, when you will be writing your post just write instead “This part will be shown on the main page” what you want to be shown on the main page, and instead “And this is the rest of the post” the rest of the post that will be shown on the page with the full post after clicking on “Read more”.</p>
<p>This trick has its advantages. Additional links will serve well in indexing the page and the full post is opening in new tab. However, this is all for blogger, wordpress users don't need all thise efforts to do, WordPress has provided them with &#60;!--more--&#62; tag to create full posts and post summaries.</p>
<p><a href="http://www.an-vizit.com/">Thanks for the great weekend</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Каскадные таблицы стилей и (x)HTML: хитрости и тонкости.]]></title>
<link>http://makskomaju.wordpress.com/2007/11/01/css-i-html-khitrosti-i-tonkosti/</link>
<pubDate>Thu, 01 Nov 2007 11:40:41 +0000</pubDate>
<dc:creator>Макс Комаджу</dc:creator>
<guid>http://makskomaju.es.wordpress.com/2007/11/01/css-i-html-khitrosti-i-tonkosti/</guid>
<description><![CDATA[
Многие приведенные здесь ссылки, конечно, большинству]]></description>
<content:encoded><![CDATA[<p><img HEIGHT="50" WIDTH="390" BORDER="1" ALT="HTML&#38;CSS" SRC="http://photofile.ru/photo/komaju/2893004/58184207.jpg" /></p>
<p>Многие приведенные здесь ссылки, конечно, большинству опытных специалистов будут и ни к чему. Однако для начинающих такой обзор будет интересен. Попробую представить наиболее интересные CSS и xHTML трюки, хитрости, а также полезности. Без комментариев. Предполагается, что обзор будет постоянно пополняться интересными материалами, обновляйте закладки.</p>
<p><!--more--></p>
<p><strong>1. Работа со списками.</strong></p>
<p><a TARGET="_blank" HREF="http://www.alistapart.com/articles/horizdropdowns/">Выпадающее меню</a> и русский <a TARGET="_blank" HREF="http://webmascon.com/topics/coding/42a.asp">перевод статьи</a>. Общий<a TARGET="_blank" HREF="http://www.alistapart.com/articles/taminglists/"> обзор работы со списками</a>. Также небезынтересен будет сайт, где приведены примеры самых разных списков – <a TARGET="_blank" HREF="http://css.maxdesign.com.au/listamatic/">и отображение в браузере, и код</a>.</p>
<p><strong>2. Z-index и наглядная работа.</strong></p>
<p>Очень полезный ресурс   - <a TARGET="_blank" HREF="http://tjkdesign.com/articles/z-index/teach_yourself_how_elements_stack.asp">наглядная работа с z-index</a>; можно пошаманить, поискать нужный вариант.</p>
<p><strong>3. Кодировки и иже с ними.</strong></p>
<p>Он-лайн <a TARGET="_blank" HREF="http://rishida.net/scripts/uniview/conversion">конвертация форматов</a>  – насколько это полезно, решать читателю. Есть и перевод символов для использования в CSS.</p>
<p><strong>4. Синтаксис CSS.</strong></p>
<p>Забавная статья – <a TARGET="_blank" HREF="http://www.rikkertkoppes.com/thoughts/css-syntax/">синтаксис CSS в картинках</a>. <a TARGET="_blank" HREF="http://www.smashingmagazine.com/2007/05/10/70-expert-ideas-for-better-css-coding/">70 полезных советов</a> для правильной организации CSS кодинга.</p>
<p><strong>5. Таблицы и CSS.</strong></p>
<p>Не очень подробно, скорее обзорно, но вполне основательно <a TARGET="_blank" HREF="http://veerle.duoh.com/blog/comments/a_css_styled_table_version_2/">о таблицах и CSS</a>.</p>
<p><strong>6. HTML/xHTML/XML/CSS редакторы.</strong></p>
<p><a TARGET="_blank" HREF="http://www.maxdesign.com.au/2007/08/08/25-html-editors/">25+19 редакторов</a>, выбирайте, если еще не определились.</p>
<p><strong>7. Колонки - краеугольный камень CSS верстки</strong> ;)</p>
<p><a TARGET="_blank" HREF="http://www.boxedcss.com/">Примеры</a>, можно посмотреть, можно скачать. <a TARGET="_blank" HREF="http://glish.com/css/9.asp">Еще</a> несколько вариантов. И <a TARGET="_blank" HREF="http://csseasy.com/">еще</a>.</p>
<p><strong>8. Фон и фоновые изображения.</strong></p>
<p>Подробно о <a TARGET="_blank" HREF="http://www.sitepoint.com/blogs/2007/07/05/css-using-percentages-in-background-image/">процентном указании позиции</a> фонового изображения.</p>
<p><strong>9. Тэги (x)HTML.</strong></p>
<p><a TARGET="_blank" HREF="http://meiert.com/en/indices/html-elements/">Таблица различий</a> – какие тэги умерли, какие родились. <a TARGET="_blank" HREF="http://www.sitepoint.com/blogs/2007/04/16/html-the-top-five-forgotten-elements/">Теряющиеся тэги</a> – использование не обязательно, но иногда полезно.</p>
<p><strong>10. Цвета.</strong></p>
<p><a TARGET="_blank" HREF="http://www.colourlovers.com/blog/2007/06/30/ultimate-html-color-hex-code-list/">Несколько табличек</a> с гаммами и описаниями цветов.</p>
<p><strong>11. Формы.</strong></p>
<p><a TARGET="_blank" HREF="http://www.sitepoint.com/article/fancy-form-design-css">Краткий обзор</a> возможностей работы CSS с формами.</p>
<p><em><strong>Следите за обновлениями!</strong> </em></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[IE6 Nasty CSS Freeze]]></title>
<link>http://mattwindsurfs.wordpress.com/2007/10/30/ie6-nasty-css-freeze/</link>
<pubDate>Wed, 31 Oct 2007 04:39:22 +0000</pubDate>
<dc:creator>mattwindsurfs</dc:creator>
<guid>http://mattwindsurfs.es.wordpress.com/2007/10/30/ie6-nasty-css-freeze/</guid>
<description><![CDATA[I was pulling my hair out for most of the day. I had a page that was working fine in Firefox and Saf]]></description>
<content:encoded><![CDATA[<p>I was pulling my hair out for most of the day. I had a page that was working fine in Firefox and Safari, but every time a certain AJAX response came back, IE 6 would hang. It would go to 90% CPU and need to be killed from Task Manager.</p>
<p>I spent hours digging through JavaScript and ERB code, commenting things out, trying to track it down. I got it down to a single table. I commented out various parts of the ERB generating the table for about an hour. The syntax was fine. I was sure the code had no bugs. Getting frustrated I removed almost everything from the table. It was when I removed the style attribute that things finally started working.</p>
<p>Here's the change that got it working in the end:</p>
<p><code><br />
/* padding: 5px 0px 5px 0px; */<br />
padding-left: 5px;<br />
padding-top: 5px;<br />
</code></p>
<p>They do exactly the same thing, but for some reason the first is big trouble. Google points me to other people who have had this problem. From what I can tell, it may be triggered only inside floating div's. I probably had one of those but was ready to call it a day once I found the problem.</p>
<p>If you are experiencing a nasty IE6 freeze then check your CSS for shorthand padding like the above.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Simple Javascript Form Field Validation]]></title>
<link>http://waxjelly.wordpress.com/2007/08/09/simple-javascript-form-field-validation/</link>
<pubDate>Thu, 09 Aug 2007 20:24:20 +0000</pubDate>
<dc:creator>Meshach</dc:creator>
<guid>http://waxjelly.es.wordpress.com/2007/08/09/simple-javascript-form-field-validation/</guid>
<description><![CDATA[This post has been moved.
]]></description>
<content:encoded><![CDATA[<p><a href="http://waxjelly.com/2007/08/09/simple-javascript-form-field-validation/">This post has been moved.</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Simple Javascript Delete Confirmation]]></title>
<link>http://waxjelly.wordpress.com/2007/08/09/simple-javascript-delete-confirmation/</link>
<pubDate>Thu, 09 Aug 2007 02:28:54 +0000</pubDate>
<dc:creator>Meshach</dc:creator>
<guid>http://waxjelly.es.wordpress.com/2007/08/09/simple-javascript-delete-confirmation/</guid>
<description><![CDATA[This post has been moved.
]]></description>
<content:encoded><![CDATA[<p><a href="http://waxjelly.com/2007/08/09/simple-javascript-delete-confirmation/">This post has been moved.</a></p>
]]></content:encoded>
</item>

</channel>
</rss>
