martes, 24 de enero de 2012

DIA 5: HOJAS DE ESTILO EN CASCADA (CSS)

Muy importantes para mejorar la presentacion de un sitio web.

Algunos problemas que presenta HTML al dar formato a las paginas:
To summarize, formatting with HTML suffers from the following problems:
➤➤ Its feature set severely limits the formatting possibilities that your pages require.
➤➤ Data and presentation are mixed within the same file.
➤➤ HTML doesn’t allow you to easily switch formatting at runtime in the browser.
➤➤ The required formatting tags and attributes make your pages larger and thus slower to load
and display.

Float y Clear.

Float

El estilo "float" sirve para alinear un elemento, haciendo que el texto de alrededor del mismo se agrupe entorno a dicho elemento. Sus posibles valores son "left" (para alinear el elemento a la izquierda) y "right" (para alinearlo a la derecha).Un elemento con “float” debe tener definida su anchura. De no ser así, no será tratado como tal y el estilo no se aplicará.

Clear
El estilo "clear" se utiliza conjuntamente con float. Utilizamos este estilo cuándo queremos que elementos que tienen cerca un elemento flotante (mediante "float") dejen de alinearse junto a él.

Sus posibles valores son left (el elemento no permite flotantes a su izquierda ), right (el elemento no permite flotantes a su derecha ) o both (el elemento no permite flotantes a ningún lado).

Aplicando CSS primera vista del portal web al 24 de Enero. (Notese que tanto a la parte del contenido como a el Sidebar se le aplico el estilo float : left)


Go, go!!!

No hay comentarios:

Publicar un comentario