Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="StyleSheet" href="style.css" type=text/css> <title>index</title> <meta name="author" content="Distriker" > <meta name="generator" content="screem 0.16.1" > <meta name="description" content="" > <meta name="keywords" content="" > <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" > <meta http-equiv="Content-Script-Type" content="text/javascript" > <meta http-equiv="Content-Style-Type" content="text/css" > </head> <body> <div id="contenido"> <div id="cabecera"> <h1>Bienvenido a Betaconsolas.com</h1> <h2>:D:D:D</h2> </div> <div id="sidebar-izquierda"> <h3>Sección</h3> <p>Bla bla ...</p> </div> <div id="centro"> <h3>Vacio</h3> <p>Vacio</p> <p>dsd</p> <p>dsa</p> <p>asas</p> </div> <div id="sidebar-derecha"> <h3>Seccion 2</h3> <p>Bla bla ....</p> </div> <div id="footer"> Pie - Datos aquí </div> </div> </body> </html>
Código css:
Ver original
body { text-align: center ; background-color: #C9D0E9; } #cabecera { background-color: #00C40D ; } #contenido { width: 800px ; margin-left: 300px ; margin-right: 300px ; background-color: #E2F0DC ; } #sidebar-izquierda { width: 110px ; float: left ; padding: 25px ; background-color: #FFF200; } #sidebar-derecha { width: 110px ; float: right ; padding: 25px ; background-color: #FFF200; } #centro { width: 450px ; background-color: #5100FF ; float: left ; text-align: center; margin-left: 15px ; margin-right: 15px ; margin-bottom: 15px } #footer { background-color : #FF0004; border-left-color : #090909; border-left-width : 5px; clear : both; font-style : italic; text-align : center; } /* ================================================================ This copyright notice must be untouched at all times. The original version of this stylesheet and the associated (x)html is available at [url]http://www.cssmenus.co.uk[/url] Copyright (c) 2009 Stu Nicholls. All rights reserved. This stylesheet and the associated (x)html may be modified in any way to fit your requirements. =================================================================== */ /* style the outer div to give it width */ #dropline {padding:0; list-style:none ; text-align:center; margin:0 auto; font-size:12px; font-family:arial, sans-serif; height:41px; width:1000px; position:absolute; left:0; top:139px;} #dropline div {padding:0; margin:0 auto; list-style:none; position:absolute; left:-9999px; width:1000px; text-align:center; background:url(trans.gif);} #dropline table {border-collapse:collapse; font-size:1em; float:left; margin:0px;} #dropline ul li {display:inline; margin:0; text-align:left;} #dropline ul li a {display:inline-block; height:30px; line-height:30px; margin:0; padding:0px; background:transparent; font-weight:bold; font-size:11px;} #dropline li {display:inline; margin:0 -2px; text-align:left;} #dropline li a {display:inline-block; height:36px; margin:5px 0 0 0;padding:0px 0 0; line-height:30px; text-decoration:none; color:#000;} #dropline li a.sub {background:url(button-arrow.gif) right top;} html>/**/body #dropline li {display:inline-block; padding:0;} * html #dropline li a {margin-bottom:-4px; margin-right:0px;} #dropline li a b {display:block; height:36px; float:left; padding:0 0 0 25px; cursor:pointer;} #dropline li a:hover {background-position:right bottom; color:#fff;} #dropline li a:hover b {background-position:left bottom;} #dropline li:hover > a {background-position:right bottom; color:#fff;} #dropline li:hover > a b {background-position:left bottom;} #dropline :hover div {left:0; top:41px;} #dropline :hover ul li a:hover {text-decoration:underline; color:#800;}
¿Qué le pasa? No entiendo el problema. aunque cambie de Div, siempre está ahí, en la misma posición incorrecta :.
Miren una imagen:
El menú es lo que pone DropLine, DropDown, Flyout y todo eso de ahí, es decir, lo de negro.
Espero que me puedan ayudar.
Saludos