Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/06/2014, 03:13
quico5
 
Fecha de Ingreso: enero-2008
Mensajes: 580
Antigüedad: 16 años, 3 meses
Puntos: 9
¿Cómo puedo enviar el CSS:WIDTH por medio de un DATA-ROW?

Busco leyendo el número de <div data-row='960px'> establecer el ancho usando css, gracias

Código HTML:
<!DOCTYPE html>
<html lang='es'>
<head>
	<meta charset='UTF-8'>
	<title>Document</title>
	<style>
		[data-row] {display:table; margin:0 auto;}
		[data-row^='960'] {width: 960px;}
		[data-cel] {display:table-cell; vertical-align:top; padding:0 5px;}
	</style>
</head>
<body>
	<div data-row='960px'>
		<div data-cel>
			prueba
		</div>
		<div data-cel>
			prueba
		</div>
	</div>
</body>
</html>