Foros del Web » Creando para Internet » CSS »

donde le estoy diciendo aqui que este centrado ???

Estas en el tema de donde le estoy diciendo aqui que este centrado ??? en el foro de CSS en Foros del Web. Estoy mirando un ejemplo para unas tablas creadas con css pero no consigo averiguar donde dice la ubicacion de las "tablas" , son 3 columnas ...
  #1 (permalink)  
Antiguo 03/02/2005, 12:09
 
Fecha de Ingreso: julio-2004
Mensajes: 37
Antigüedad: 19 años, 9 meses
Puntos: 0
donde le estoy diciendo aqui que este centrado ???

Estoy mirando un ejemplo para unas tablas creadas con css pero no consigo averiguar donde dice la ubicacion de las "tablas" , son 3 columnas una central y dos mas pequeñas en los laterales, pero no consigo ver donde dice donde tienen que estar, no se si me explico ....

Os pongo aqui en css :

Cita:
body {
color:#000;
background-color:white;
margin:20px;
padding:0px;
font:11px verdana, arial, helvetica, sans-serif;
}
h1 {
margin:0px 0px 15px 0px;
padding:0px;
font-size:28px;
font-weight:900;
color:#ccc;
}
h2 {
font:bold 12px/14px verdana, arial, helvetica, sans-serif;
margin:0px 0px 5px 0px;
padding:0px;
}
p {
font:11px/20px verdana, arial, helvetica, sans-serif;
margin:0px 0px 16px 0px;
padding:0px;
}
.Content>p {margin:0px;}
.Content>p+p {text-indent:30px;}

a {
color:#09c;
font-size:11px;
font-family:verdana, arial, helvetica, sans-serif;
font-weight:600;
text-decoration:none;
}
a:link {color:#09c;}
a:visited {color:#07a;}
a:hover {background-color:#eee;}


/* All the content boxes belong to the content class. */
.content {
position:relative; /* Position is declared "relative" to gain control of stacking order (z-index). */
width:auto;
min-width:120px;
margin:0px 210px 20px 170px;
border:1px solid black;
background-color:white;
padding:10px;
z-index:3; /* This allows the content to overlap the right menu in narrow windows in good browsers. */
}

#navAlpha {
position:absolute;
width:150px;
top:20px;
left:20px;
border:1px dashed black;
background-color:#eee;
padding:10px;
z-index:2;

/* Here is the ugly brilliant hack that protects IE5/Win from its own stupidity.
Thanks to Tantek Celik for the hack and to Eric Costello for publicizing it.
IE5/Win incorrectly parses the "\"}"" value, prematurely closing the style
declaration. The incorrect IE5/Win value is above, while the correct value is
below. See http://glish.com/css/hacks.asp for details. */
voice-family: "\"}\"";
voice-family:inherit;
width:128px;
}
/* I've heard this called the "be nice to Opera 5" rule. Basically, it feeds correct
length values to user agents that exhibit the parsing error exploited above yet get
the CSS box model right and understand the CSS2 parent-child selector. ALWAYS include
a "be nice to Opera 5" rule every time you use the Tantek Celik hack (above). */
body>#navAlpha {width:128px;}

#navBeta {
position:absolute;
width:190px;
top:20px;
right:20px;
border:1px groove black;
background-color:#eee;
padding:10px;
z-index:1;
/* Again, the ugly brilliant hack. */
voice-family: "\"}\"";
voice-family:inherit;
width:168px;
}
/* Again, "be nice to Opera 5". */
body>#navBeta {width:168px;}

El xhtml es :

Cita:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>INTRANET</title>
<link href="master.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body>

<div class="content">
<h1>Plantilla.</h1>

<p>&nbsp;</p>
<p>Este seria el inicial , aqui empezaria todo.</p>
<p>&nbsp;</p>
<p>Pongamos varias cosas tontas para probar, uno mas dos mas tres es igual a algo mucho mas peque&ntilde;o y demas, vale parece que funciona esto. </p>
</div>
<div id="navBeta">
<h2>Titulo</h2>
<p>Aqui se podria poner cosas como ... el iniciar seccion por ejemplo. </p>
</div>
<div class="content">
<h2>Titulo</h2>
<p>&nbsp;</p>
<p>Este seria el inicial , aqui empezaria todo.</p>
<p>&nbsp;</p>
<p>Pongamos varias cosas tontas para probar, uno mas dos mas tres es igual a algo mucho mas peque&ntilde;o y demas, vale parece que funciona esto. </p>
</div>

<div class="content">
<a href="default.asp" title="Layouts to make your own...">prueba</a></div>

<div id="navAlpha">
<h2>Enlaces.</h2>

<p>
<a href="asdf">Enlace 1</a><br />
Enlace 2<br />
<a href="asdf">Enlace 3</a><br />
Enlace 4<br />
Enlace 5<br />
Enlace 6 <br>
</p>
</div>

<div id="navBeta">
<h2>Titulo</h2>
<p>Aqui se podria poner cosas como ... el iniciar seccion por ejemplo. </p>
</div>

</body>
</html>


  #2 (permalink)  
Antiguo 03/02/2005, 12:38
Avatar de Durgeoble  
Fecha de Ingreso: marzo-2003
Mensajes: 462
Antigüedad: 21 años, 1 mes
Puntos: 2
Mensaje Ahi lo tienes

/* All the content boxes belong to the content class. */
.content {
position:relative; /* Position is declared "relative" to gain control of stacking order (z-index). */
width:auto;
min-width:120px;
margin:0px 210px 20px 170px;
border:1px solid black;
background-color:white;
padding:10px;
z-index:3; /* This allows the content to overlap the right menu in narrow windows in good browsers. */
}
#navAlpha {
position:absolute;
width:150px;
top:20px;
left:20px;

border:1px dashed black;
background-color:#eee;
padding:10px;
z-index:2;

/* Here is the ugly brilliant hack that protects IE5/Win from its own stupidity.
Thanks to Tantek Celik for the hack and to Eric Costello for publicizing it.
IE5/Win incorrectly parses the "\"}"" value, prematurely closing the style
declaration. The incorrect IE5/Win value is above, while the correct value is
below. See http://glish.com/css/hacks.asp for details. */

voice-family: "\"}\"";
voice-family:inherit;
width:128px;
}
/* I've heard this called the "be nice to Opera 5" rule. Basically, it feeds correct
length values to user agents that exhibit the parsing error exploited above yet get
the CSS box model right and understand the CSS2 parent-child selector. ALWAYS include
a "be nice to Opera 5" rule every time you use the Tantek Celik hack (above). */

body>#navAlpha {width:128px;}

#navBeta {
position:absolute;
width:190px;
top:20px;
right:20px;

border:1px groove black;
background-color:#eee;
padding:10px;
z-index:1;
/* Again, the ugly brilliant hack. */
voice-family: "\"}\"";
voice-family:inherit;
width:168px;
}
Te lo he dejado lo mas aseado posible, lo subrayado es lo que buscas
__________________
Todas mis respuestas funcionaran correctamente en aquellos navegadores que respeten los estandares.

Última edición por Durgeoble; 03/02/2005 a las 12:47
  #3 (permalink)  
Antiguo 07/02/2005, 15:08
Avatar de KnowDemon  
Fecha de Ingreso: julio-2004
Ubicación: Ciudad de México
Mensajes: 544
Antigüedad: 19 años, 9 meses
Puntos: 2
¿Por qué necesitas crear "una tabla con CSS"? Los CSS no sustituyen a las tablas, si acaso el uso que se les daba (da).

Si tu información son datos tabulados, usa una tabla...
__________________
Mi pequeño espacio en la web: VisiónE
"El cosmos es todo lo que es, todo lo que fue, y todo lo que será alguna vez."
  #4 (permalink)  
Antiguo 07/02/2005, 15:48
 
Fecha de Ingreso: marzo-2004
Ubicación: Córdoba
Mensajes: 239
Antigüedad: 20 años, 1 mes
Puntos: 0
comienza solo y sera mas facil

lo que veo aqui no usas tablas para maquetar sino una estructura de layout.
El estandar recomienda usar layouts para armar la estructura y tablas para listar datos.
En el post de Durgeoble te explica bien donde estan las propiedades para posicionamiento.
Pero ese condigo quizas te maree mucho asi que intenta comenzar a realizar uno propio desde lo mas basico a mas complejo yaprenderas mejor sobre todo estos nuevas estandares.

Aqui te recomiendo unos sitios que te ayudaran a evacuar dudas:


http://www.richinstyle.com/guides/introduction2.html

http://www.tierradenomadas.com/

este esta genial, te va enseñando el codigo fuente del css como lo ha maquetado:

http://www.positioniseverything.net/...olcomplex.html

creo que con estos andaras bien!! sino pasate nuevamente por aqui, saludos
__________________
Un gran desarrollador de soluciones webs -
-----------------------------
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 22:20.