Práctica 7

Tutorial CSS3

Columnas Múltiples:
CSS3 nos permite con facilidad manejar texto dividiendolo en columnas. Debemos tener especial cuidado en la compatibilidad de los navegadores por lo que a la hora de aplicar el estilo indicaremos para qué navegador vamos a trabajar o mejor aún aplicaremos el estilo para cada uno de ellos.
  • Chrome/Safari/Opera: -webkit-column-propiedad
  • Mozilla Firefox: -moz-column-propiedad
  • Resto navegadores: -webkit-column-propiedad

column-count

Esta propiedad especifica el número de columnas en la cual estará dividido el texto.

En el siguiente ejemplo dividimos el texto en 3 columnas:

  • -webkit-column-count: 3; /* Chrome, Safari, Opera */
  • -moz-column-count: 3; /* Firefox */
  • column-count: 3

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.Normally, both your asses would be dead as fucking fried chicken, but you happen to pull this shit while I'm in a transitional period so I don't wanna kill you, I wanna help you. But I can't give you this case, it don't belong to me. Besides, I've already been through too much shit this morning over this case to hand it over to your dumb ass.


column-gap

Esta propiedad especifica la anchura del espacio entre columnas.

Valores de la propiedad: column-gap: length|normal|initial|inherit

En el siguiente ejemplo aplicamos una anchura del espacio entre columnas de 70px al anterior ejemplo.

  • -webkit-column-gap: 70px; /* Chrome, Safari, Opera */
  • -moz-column-gap: 70px; /* Firefox */
  • column-gap: 70px

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.Normally, both your asses would be dead as fucking fried chicken, but you happen to pull this shit while I'm in a transitional period so I don't wanna kill you, I wanna help you. But I can't give you this case, it don't belong to me. Besides, I've already been through too much shit this morning over this case to hand it over to your dumb ass.


column-rule

Con esta propiedad aplicaremos estilos a la línea de separación de las columnas

Valores de la propiedad: column-rule:

Podemos aplicar el estilo por separado o en una misma línea.
En el siguiente ejemplo aplicamos en una misma línea una anchura de la línea separadora de 5px de ancho. estilo de línea sólida y de color azul.

  • -webkit-column-rule: 5px solid blue;/* Chrome, Safari, Opera */
  • -moz-column-rule: 5px solid blue; /* Firefox */
  • column-rule: 5px solid blue;

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.Normally, both your asses would be dead as fucking fried chicken, but you happen to pull this shit while I'm in a transitional period so I don't wanna kill you, I wanna help you. But I can't give you this case, it don't belong to me. Besides, I've already been through too much shit this morning over this case to hand it over to your dumb ass.


column-rule-width

Especifica el ancho de la línea entre columnas

Valores de la propiedad: column-rule-width:

  • thin: Anchura fina.
  • thick: Anchura gruesa.
  • length: Nosotros definimos el tamaño.

En el siguiente ejemplo aplicamos un ancho de valor thin.

  • -webkit-column-rule-width: thin;/* Chrome, Safari, Opera */
  • -moz-column-rule-width: thin; /* Firefox */
  • column-rule-width: thin;

Now that we know who you are, I know who I am. I'm not a mistake! It all makes sense! In a comic, you know how you can tell who the arch-villain's going to be? He's the exact opposite of the hero. And most times they're friends, like you and me! I should've known way back when... You know why, David? Because of the kids. They called me Mr Glass. My money's in that office, right? If she start giving me some bullshit about it ain't there, and we got to go someplace else and get it, I'm gonna shoot you in the head then and there. Then I'm gonna shoot that bitch in the kneecaps, find out where my goddamn money is. She gonna tell me too. Hey, look at me when I'm talking to you, motherfucker. You listen: we go in there, and that nigga Winston or anybody else is in there, you the first motherfucker to get shot. You understand?

En el siguiente ejemplo aplicamos un ancho de valor thick.

  • -webkit-column-rule-width: thick;/* Chrome, Safari, Opera */
  • -moz-column-rule-width: thick; /* Firefox */
  • column-rule-width: thick;

Now that we know who you are, I know who I am. I'm not a mistake! It all makes sense! In a comic, you know how you can tell who the arch-villain's going to be? He's the exact opposite of the hero. And most times they're friends, like you and me! I should've known way back when... You know why, David? Because of the kids. They called me Mr Glass. My money's in that office, right? If she start giving me some bullshit about it ain't there, and we got to go someplace else and get it, I'm gonna shoot you in the head then and there. Then I'm gonna shoot that bitch in the kneecaps, find out where my goddamn money is. She gonna tell me too. Hey, look at me when I'm talking to you, motherfucker. You listen: we go in there, and that nigga Winston or anybody else is in there, you the first motherfucker to get shot. You understand?

En el siguiente ejemplo aplicamos un ancho de valor length, es decir nosotros indicamos el tamaño del ancho de la línea de separación de 8px.

Los valores pueden ser dados en "pixeles" o "em", aunque se recomienda usar pixeles como medida.

  • -webkit-column-rule-width: 8px;/* Chrome, Safari, Opera */
  • -moz-column-rule-width: 8px; /* Firefox */
  • column-rule-width: 8px;

Now that we know who you are, I know who I am. I'm not a mistake! It all makes sense! In a comic, you know how you can tell who the arch-villain's going to be? He's the exact opposite of the hero. And most times they're friends, like you and me! I should've known way back when... You know why, David? Because of the kids. They called me Mr Glass. My money's in that office, right? If she start giving me some bullshit about it ain't there, and we got to go someplace else and get it, I'm gonna shoot you in the head then and there. Then I'm gonna shoot that bitch in the kneecaps, find out where my goddamn money is. She gonna tell me too. Hey, look at me when I'm talking to you, motherfucker. You listen: we go in there, and that nigga Winston or anybody else is in there, you the first motherfucker to get shot. You understand?


column-rule-style

Especifica el estilo de la línea entre columnas

Valores de la propiedad: column-rule-style:

  • none: no hay línea separación.
  • hidden: define una línea de separación oculta.
  • dotted: línea de separación de tipo puntos.
  • dashed: línea de separación discontinua.
  • solid: línea de separación continua.
  • double: doble línea.

En el siguiente ejemplo aplicamos un estilo dotted a la línea.

  • -webkit-column-rule-style: dotted ;/* Chrome, Safari, Opera */
  • -moz-column-rule-style: dotted ; /* Firefox */
  • column-rule-style: dotted ;

Look, just because I don't be givin' no man a foot massage don't make it right for Marsellus to throw Antwone into a glass motherfuckin' house, fuckin' up the way the nigger talks. Motherfucker do that shit to me, he better paralyze my ass, 'cause I'll kill the motherfucker, know what I'm sayin'? Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

En el siguiente ejemplo aplicamos un estilo solid a la línea.

  • -webkit-column-rule-style: solid ;/* Chrome, Safari, Opera */
  • -moz-column-rule-style: solid ; /* Firefox */
  • column-rule-style: solid ;

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.Normally, both your asses would be dead as fucking fried chicken, but you happen to pull this shit while I'm in a transitional period so I don't wanna kill you, I wanna help you. But I can't give you this case, it don't belong to me. Besides, I've already been through too much shit this morning over this case to hand it over to your dumb ass. Look, just because I don't be givin' no man a foot massage don't make it right for Marsellus to throw Antwone into a glass motherfuckin' house, fuckin' up the way the nigger talks. Motherfucker do that shit to me, he better paralyze my ass, 'cause I'll kill the motherfucker, know what I'm sayin'? Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

En el siguiente ejemplo aplicamos un estilo dashed a la línea.

  • -webkit-column-rule-style: dashed ;/* Chrome, Safari, Opera */
  • -moz-column-rule-style: dashed ; /* Firefox */
  • column-rule-style: dashed ;

Look, just because I don't be givin' no man a foot massage don't make it right for Marsellus to throw Antwone into a glass motherfuckin' house, fuckin' up the way the nigger talks. Motherfucker do that shit to me, he better paralyze my ass, 'cause I'll kill the motherfucker, know what I'm sayin'? Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

En el siguiente ejemplo aplicamos un estilo double a la línea.

  • -webkit-column-rule-style: double ;/* Chrome, Safari, Opera */
  • -moz-column-rule-style: double ; /* Firefox */
  • column-rule-style: double ;

Look, just because I don't be givin' no man a foot massage don't make it right for Marsellus to throw Antwone into a glass motherfuckin' house, fuckin' up the way the nigger talks. Motherfucker do that shit to me, he better paralyze my ass, 'cause I'll kill the motherfucker, know what I'm sayin'? Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.

En el siguiente ejemplo aplicamos un estilo hidden a la línea.

  • -webkit-column-rule-style: hidden ;/* Chrome, Safari, Opera */
  • -moz-column-rule-style: hidden ; /* Firefox */
  • column-rule-style: hidden ;

Look, just because I don't be givin' no man a foot massage don't make it right for Marsellus to throw Antwone into a glass motherfuckin' house, fuckin' up the way the nigger talks. Motherfucker do that shit to me, he better paralyze my ass, 'cause I'll kill the motherfucker, know what I'm sayin'? Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.


column-rule-color

Especifica el color de la línea entre columnas. El valor por defecto es el color del elemento.

Podemos aplicar el color de distintas maneras:

  • El nombre del color: red, blue, black, etc.
  • Su valor hexadecimal: #000000, #ff9900, etc.
  • Su valor rgb: rgb(255,130,255), rgba(255,130,255,0.5), etc.
  • Valor initial: valor por defecto.

En el siguiente ejemplo aplicamos un color ya definido red a la línea.

  • -webkit-column-rule-color: red; /* Chrome, Safari, Opera */
  • -moz-column-rule-color: red; /* Firefox */
  • column-rule-color: red

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.Normally, both your asses would be dead as fucking fried chicken, but you happen to pull this shit while I'm in a transitional period so I don't wanna kill you, I wanna help you. But I can't give you this case, it don't belong to me. Besides, I've already been through too much shit this morning over this case to hand it over to your dumb ass.

En el siguiente ejemplo aplicamos un color hexadecimal #ff9900 a la línea.

  • -webkit-column-rule-color: #ff9900; /* Chrome, Safari, Opera */
  • -moz-column-rule-color: #ff9900; /* Firefox */
  • column-rule-color: #ff9900

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.Normally, both your asses would be dead as fucking fried chicken, but you happen to pull this shit while I'm in a transitional period so I don't wanna kill you, I wanna help you. But I can't give you this case, it don't belong to me. Besides, I've already been through too much shit this morning over this case to hand it over to your dumb ass.

En el siguiente ejemplo aplicamos un color RGB rgb(120,170,150) a la línea.

  • -webkit-column-rule-color: rgb(120,170,150); /* Chrome, Safari, Opera */
  • -moz-column-rule-color: rgb(120,170,150); /* Firefox */
  • column-rule-color: rgb(120,170,150)

Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.Normally, both your asses would be dead as fucking fried chicken, but you happen to pull this shit while I'm in a transitional period so I don't wanna kill you, I wanna help you. But I can't give you this case, it don't belong to me. Besides, I've already been through too much shit this morning over this case to hand it over to your dumb ass.