Foros del Web » Creando para Internet » CSS »

Símbolos dentro de content

Estas en el tema de Símbolos dentro de content en el foro de CSS en Foros del Web. Haciendo un pie de página me ha surgido un problema. Si quiero poner un "punto a media altura" (codigo ascii "07") y tengo que terminar ...
  #1 (permalink)  
Antiguo 21/08/2010, 15:24
 
Fecha de Ingreso: agosto-2007
Mensajes: 17
Antigüedad: 16 años, 8 meses
Puntos: 1
Símbolos dentro de content

Haciendo un pie de página me ha surgido un problema.

Si quiero poner un "punto a media altura" (codigo ascii "07") y tengo que terminar dicho código con ";" lo interpreta como el final del content.

El mismo ejemplo sería para una palabra acentuada.

Gracias.
  #2 (permalink)  
Antiguo 21/08/2010, 16:00
 
Fecha de Ingreso: agosto-2007
Mensajes: 17
Antigüedad: 16 años, 8 meses
Puntos: 1
Respuesta: Símbolos dentro de content

Solucionado:

Cita:
How do I represent extended characters in CSS?

A CSS file can be in any encoding, so most of the time, specifying the right encoding will allow you to use any extended character directly in the CSS code. However, at time you may not be able to represent a given character in its raw form, you can then use the hexadecimal notation \HHH where HHH is the Unicode value of a given character.

To avoid confusion with the hexadecimal value and the following text (i.e. Is R\26D R+\26+D or R+\26D?) you may want to use a trailing space after the value. Any first space after the hexadecimal notation is ignored, therefore would "R\26 D" display correctly "R&D".

Example of CSS code with extended character in hexadecimal notation:

@import "main.css"
/* Translatable data */
arguments:before {
content: "Param\E8tres\0A:\0A";
font-weight: bold
}
Ejemplo, para el punto: 2022 en Unicode.

Content: 'Bla bla bla \2022 bla bla bla';

Etiquetas: content
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:43.