Random Espacio en la parte inferior de mi página
- mindfullsilence
- Professor


- Registrado: Ago 04, 2008
- Mensajes: 846
- Status: Offline
Tengo una página con código y todo, pero theres un gran desfase entre el final de mi contenido y el final de la página. Se desplaza hacia abajo mucho. Un lote de la página se haga con divs. Todo el mundo sabe lo que causa esto. He comprobado todos los márgenes y mi whatnot. Si es necesario Malos puesto el código.
Use your words like arrows to shoot toward your goal.
- Anonymous
- Bot


- Registrado: 25 Feb 2008
- Mensajes: ?
- Loc: Ozzuland
- Status: Online
Agosto 23rd, 2008, 12:17 pm
- neksus
- Mastermind


- Registrado: Sep 10, 2004
- Mensajes: 2194
- Loc: Canada
- Status: Offline
- mindfullsilence
- Professor


- Registrado: Ago 04, 2008
- Mensajes: 846
- Status: Offline
html:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 1 September 2005), see http://www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="reset.css" rel="stylesheet" type="text/css" />
<link href="layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jsnavbar.js">
</script>
</head>
<body> <!-- took ou onLoad content so post is smaller -->
<div id="wrap">
<div id="header">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th height="57" scope="col">
<div class="c1"><img src="images/logo.png" alt="" name="Logo" width="334" height="136" id="Logo" /></div></th>
<th scope="col">
<div class="c2"><img src="images/index_02.png" alt="" name="headerright" width="283" height="144" id="headerright" /></div></th>
</tr>
</table>
</div>
<div id="navbarwrap" align="center">
<div id="navbar"></div><!-- firefox/dreamweaver generated navbar deleted so post is smaller -->
</div>
<div id="maincontentheader">
<h1>Voltec Design</h1>
</div>
<div id="maincontenttext"></div>
<div id="minicontentheader1">
<h1>Service</h1>
</div>
<div id="minicontent1"></div>
<div id="minicontentheader2">
<h1>Guarentee</h1>
</div>
<div id="minicontent2"></div>
<div id="minicontentheader3">
<h1>Testimonials</h1>
</div>
<div id="minicontent3"></div>
</div>
</body>
</html>
respuesta rápida pero un poco ya que fija...
Todos minicontent mi "" y "minicontentheader" divs eran relativamente posicionado, cambié a absoluta y se coloca de ellos. Este se deshizo de el espacio extra en la parte inferior pero quería un poco de espacio en la parte inferior, alrededor de 10-20 píxeles, así que todo lo envuelve en una posición absoluta <div id="wrap"> y le dio una altura especificada que fue de 20 píxeles más que el contenido. Im bastante seguro de que los theres una manera más fácil de hacer esto, pero soy un chico de aprendizaje...no puede llamar a mi ingeniosos métodos todavía.
CSS:
Código: [ Select ]
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 1 September 2005), see http://www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="reset.css" rel="stylesheet" type="text/css" />
<link href="layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jsnavbar.js">
</script>
</head>
<body> <!-- took ou onLoad content so post is smaller -->
<div id="wrap">
<div id="header">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th height="57" scope="col">
<div class="c1"><img src="images/logo.png" alt="" name="Logo" width="334" height="136" id="Logo" /></div></th>
<th scope="col">
<div class="c2"><img src="images/index_02.png" alt="" name="headerright" width="283" height="144" id="headerright" /></div></th>
</tr>
</table>
</div>
<div id="navbarwrap" align="center">
<div id="navbar"></div><!-- firefox/dreamweaver generated navbar deleted so post is smaller -->
</div>
<div id="maincontentheader">
<h1>Voltec Design</h1>
</div>
<div id="maincontenttext"></div>
<div id="minicontentheader1">
<h1>Service</h1>
</div>
<div id="minicontent1"></div>
<div id="minicontentheader2">
<h1>Guarentee</h1>
</div>
<div id="minicontent2"></div>
<div id="minicontentheader3">
<h1>Testimonials</h1>
</div>
<div id="minicontent3"></div>
</div>
</body>
</html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta name="generator" content="HTML Tidy for Linux (vers 1 September 2005), see http://www.w3.org" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- <link href="reset.css" rel="stylesheet" type="text/css" />
- <link href="layout.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="jsnavbar.js">
- </script>
- </head>
- <body> <!-- took ou onLoad content so post is smaller -->
- <div id="wrap">
- <div id="header">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <th height="57" scope="col">
- <div class="c1"><img src="images/logo.png" alt="" name="Logo" width="334" height="136" id="Logo" /></div></th>
- <th scope="col">
- <div class="c2"><img src="images/index_02.png" alt="" name="headerright" width="283" height="144" id="headerright" /></div></th>
- </tr>
- </table>
- </div>
- <div id="navbarwrap" align="center">
- <div id="navbar"></div><!-- firefox/dreamweaver generated navbar deleted so post is smaller -->
- </div>
- <div id="maincontentheader">
- <h1>Voltec Design</h1>
- </div>
- <div id="maincontenttext"></div>
- <div id="minicontentheader1">
- <h1>Service</h1>
- </div>
- <div id="minicontent1"></div>
- <div id="minicontentheader2">
- <h1>Guarentee</h1>
- </div>
- <div id="minicontent2"></div>
- <div id="minicontentheader3">
- <h1>Testimonials</h1>
- </div>
- <div id="minicontent3"></div>
- </div>
- </body>
- </html>
respuesta rápida pero un poco ya que fija...
Todos minicontent mi "" y "minicontentheader" divs eran relativamente posicionado, cambié a absoluta y se coloca de ellos. Este se deshizo de el espacio extra en la parte inferior pero quería un poco de espacio en la parte inferior, alrededor de 10-20 píxeles, así que todo lo envuelve en una posición absoluta <div id="wrap"> y le dio una altura especificada que fue de 20 píxeles más que el contenido. Im bastante seguro de que los theres una manera más fácil de hacer esto, pero soy un chico de aprendizaje...no puede llamar a mi ingeniosos métodos todavía.
CSS:
Código: [ Select ]
@charset "utf-8";
/* CSS Document */
body {
background-color: #333333;
background-image: url(images/background.png);
color: #FFFFFF;
}
#header {
position:absolute;
left:0px;
top:0px;
width:100%;
height:136px;
z-index:1;
overflow: visible;
background-image: url(images/headerbg.png);
}
#header th {
width: 100%;
height: 100%;
}
#navbarwrap {
position:absolute;
width:100%;
height:40px;
z-index:3;
left: -2px;
top: 135px;
background-image: url(images/navbarbg.gif);
border-bottom-color: #000000;
border-top-width: medium;
border-bottom-width: medium;
border-top-style: groove;
border-bottom-style: groove;
border-top-color: #000000;
}
#navbar {
width: 544px;
height: 40px;
margin-right: auto;
margin-left: auto;
border-right-color: #CC0000;
border-left-color: #CC0000;
border-left-style: groove;
border-right-style: groove;
border-right-width: medium;
border-left-width: medium;
}
#maincontentheader {
position:relative;
left:8%;
top:200px;
z-index:4;
background-image: url(images/navbarbg.gif);
width: 55%;
height: 40px;
}
#maincontenttext {
position: relative;
left: 8%;
width: 55%;
height: 590px;
background-color: #333333;
top: 200px;
}
#minicontentheader1 {
position: absolute;
width: 20%;
height: 40px;
background-image: url(images/navbarbg.gif);
left: 66%;
top: 200px;
}
#minicontent1 {
position: absolute;
width: 20%;
height: 150px;
left: 66%;
background-color: #333333;
top: 240px;
}
#minicontentheader2 {
position: absolute;
width: 20%;
height: 40px;
background-image: url(images/navbarbg.gif);
left: 66%;
top: 420px;
z-index: 8;
}
#minicontent2 {
position: absolute;
width: 20%;
height: 150px;
left: 66%;
background-color: #333333;
top: 460px;
}
#wrap {
position: relative;
height: 880px;
width: 100%;
}
#minicontentheader3 {
position: absolute;
width: 20%;
height: 40px;
background-image: url(images/navbarbg.gif);
left: 66%;
top: 640px;
z-index: 6;
}
#minicontent3 {
position: absolute;
width: 20%;
height: 150px;
left: 66%;
background-color: #333333;
margin-bottom: 0px;
top: 680px;
}
h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
padding-left: 10px;
padding-top: 10px;
font-variant: small-caps;
color: #FFFFFF;
}
/*<![CDATA[*/
div.c2 {text-align: right}
div.c1 {text-align: left}
/*]]>*/
/* CSS Document */
body {
background-color: #333333;
background-image: url(images/background.png);
color: #FFFFFF;
}
#header {
position:absolute;
left:0px;
top:0px;
width:100%;
height:136px;
z-index:1;
overflow: visible;
background-image: url(images/headerbg.png);
}
#header th {
width: 100%;
height: 100%;
}
#navbarwrap {
position:absolute;
width:100%;
height:40px;
z-index:3;
left: -2px;
top: 135px;
background-image: url(images/navbarbg.gif);
border-bottom-color: #000000;
border-top-width: medium;
border-bottom-width: medium;
border-top-style: groove;
border-bottom-style: groove;
border-top-color: #000000;
}
#navbar {
width: 544px;
height: 40px;
margin-right: auto;
margin-left: auto;
border-right-color: #CC0000;
border-left-color: #CC0000;
border-left-style: groove;
border-right-style: groove;
border-right-width: medium;
border-left-width: medium;
}
#maincontentheader {
position:relative;
left:8%;
top:200px;
z-index:4;
background-image: url(images/navbarbg.gif);
width: 55%;
height: 40px;
}
#maincontenttext {
position: relative;
left: 8%;
width: 55%;
height: 590px;
background-color: #333333;
top: 200px;
}
#minicontentheader1 {
position: absolute;
width: 20%;
height: 40px;
background-image: url(images/navbarbg.gif);
left: 66%;
top: 200px;
}
#minicontent1 {
position: absolute;
width: 20%;
height: 150px;
left: 66%;
background-color: #333333;
top: 240px;
}
#minicontentheader2 {
position: absolute;
width: 20%;
height: 40px;
background-image: url(images/navbarbg.gif);
left: 66%;
top: 420px;
z-index: 8;
}
#minicontent2 {
position: absolute;
width: 20%;
height: 150px;
left: 66%;
background-color: #333333;
top: 460px;
}
#wrap {
position: relative;
height: 880px;
width: 100%;
}
#minicontentheader3 {
position: absolute;
width: 20%;
height: 40px;
background-image: url(images/navbarbg.gif);
left: 66%;
top: 640px;
z-index: 6;
}
#minicontent3 {
position: absolute;
width: 20%;
height: 150px;
left: 66%;
background-color: #333333;
margin-bottom: 0px;
top: 680px;
}
h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
padding-left: 10px;
padding-top: 10px;
font-variant: small-caps;
color: #FFFFFF;
}
/*<![CDATA[*/
div.c2 {text-align: right}
div.c1 {text-align: left}
/*]]>*/
- @charset "utf-8";
- /* CSS Document */
- body {
- background-color: #333333;
- background-image: url(images/background.png);
- color: #FFFFFF;
- }
- #header {
- position:absolute;
- left:0px;
- top:0px;
- width:100%;
- height:136px;
- z-index:1;
- overflow: visible;
- background-image: url(images/headerbg.png);
- }
- #header th {
- width: 100%;
- height: 100%;
- }
- #navbarwrap {
- position:absolute;
- width:100%;
- height:40px;
- z-index:3;
- left: -2px;
- top: 135px;
- background-image: url(images/navbarbg.gif);
- border-bottom-color: #000000;
- border-top-width: medium;
- border-bottom-width: medium;
- border-top-style: groove;
- border-bottom-style: groove;
- border-top-color: #000000;
- }
- #navbar {
- width: 544px;
- height: 40px;
- margin-right: auto;
- margin-left: auto;
- border-right-color: #CC0000;
- border-left-color: #CC0000;
- border-left-style: groove;
- border-right-style: groove;
- border-right-width: medium;
- border-left-width: medium;
- }
- #maincontentheader {
- position:relative;
- left:8%;
- top:200px;
- z-index:4;
- background-image: url(images/navbarbg.gif);
- width: 55%;
- height: 40px;
- }
- #maincontenttext {
- position: relative;
- left: 8%;
- width: 55%;
- height: 590px;
- background-color: #333333;
- top: 200px;
- }
- #minicontentheader1 {
- position: absolute;
- width: 20%;
- height: 40px;
- background-image: url(images/navbarbg.gif);
- left: 66%;
- top: 200px;
- }
- #minicontent1 {
- position: absolute;
- width: 20%;
- height: 150px;
- left: 66%;
- background-color: #333333;
- top: 240px;
- }
- #minicontentheader2 {
- position: absolute;
- width: 20%;
- height: 40px;
- background-image: url(images/navbarbg.gif);
- left: 66%;
- top: 420px;
- z-index: 8;
- }
- #minicontent2 {
- position: absolute;
- width: 20%;
- height: 150px;
- left: 66%;
- background-color: #333333;
- top: 460px;
- }
- #wrap {
- position: relative;
- height: 880px;
- width: 100%;
- }
- #minicontentheader3 {
- position: absolute;
- width: 20%;
- height: 40px;
- background-image: url(images/navbarbg.gif);
- left: 66%;
- top: 640px;
- z-index: 6;
- }
- #minicontent3 {
- position: absolute;
- width: 20%;
- height: 150px;
- left: 66%;
- background-color: #333333;
- margin-bottom: 0px;
- top: 680px;
- }
- h1 {
- font-family: Arial, Helvetica, sans-serif;
- font-size: 20px;
- font-weight: bold;
- padding-left: 10px;
- padding-top: 10px;
- font-variant: small-caps;
- color: #FFFFFF;
- }
- /*<![CDATA[*/
- div.c2 {text-align: right}
- div.c1 {text-align: left}
- /*]]>*/
Use your words like arrows to shoot toward your goal.
Página 1 de 1
Para responder a este tema que necesita para ingresar o registrarse. Es gratis.
Publicar Información
- Total de mensajes en este tema: 3 mensajes
- Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 153 invitados
- No puede abrir nuevos temas en este Foro
- No puede responder a temas en este Foro
- No puede editar sus mensajes en este Foro
- No puede borrar sus mensajes en este Foro
- No puede enviar adjuntos en este Foro
