Foros del Web » Creando para Internet » CSS »

Compatibilidad IE6 - IE7

Estas en el tema de Compatibilidad IE6 - IE7 en el foro de CSS en Foros del Web. Hola amigos del foro estoy diseñando una pagina con CSS he logrado que se vea bien para IE7 y firefox todo bien hasta ahi, pero ...
  #1 (permalink)  
Antiguo 31/08/2008, 23:04
 
Fecha de Ingreso: octubre-2003
Ubicación: La Paz - Bolivia
Mensajes: 116
Antigüedad: 14 años, 2 meses
Puntos: 1
Compatibilidad IE6 - IE7

Hola amigos del foro estoy diseñando una pagina con CSS he logrado que se vea bien para IE7 y firefox todo bien hasta ahi, pero el diseño se distorciona en IE6 nose como puedo compatibilizar el CSS en IE6 o alguna manera de solucionarlo les dejo la imagen distorcionada en IE6,



y como se ve en IE7

http://www.ecosoft-bo.com/senape

el codigo CSS es el siguiente

Cita:

body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
background-image:url(../../images/background.jpg);
background-repeat:repeat-x;
font-size:11px;
}
img.valign {
vertical-align: middle;
}
#container {
width: 780px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
text-align: left; /* this overrides the text-align: center on the body element. */
background-image:url(../../images/content_background.jpg);
background-repeat:repeat-y;
}
#header {
background: #DDDDDD;
/*padding: 0 10px 0 10px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
background-image:url(../../images/header.jpg);
height:150px;
}
#header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
#sidebar1 {
float: left; /* since this element is floated, a width must be given */
width: 150px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
padding: 10px 0px 0px 10px; /* padding keeps the content of the div away from the edges */
}
#sidebar2 {
float: right; /* since this element is floated, a width must be given */
width: 175px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
padding: 10px 5px 0px 0px; /* padding keeps the content of the div away from the edges */
}
#mainContent {
margin: 0px 190px 0px 160px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */
padding: 10px 0px 0px 0px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
/*border:#000000 solid 1px;*/
}
#footer {
padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background-image:url(../../images/footer.jpg);
height:100px;
}
#footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 10px 0 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
color:#ffffff;
text-align:center;
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
/*Begin Menu BAR*/
#menu_bar{
height:40px;
padding-left:5px;
background-image:url(../../images/menu_background.jpg);
}
#menu_bar ul{
margin : 0 0 0 0px;
padding: 0 0 0 0px;
list-style: none;
}
#menu_bar li{
background-image:url(../../images/btn_home.jpg);
background-repeat:no-repeat;
}
#menu_bar li:hover{
background-image:url(../../images/btn_home_up.jpg);
background-repeat:no-repeat;
}
#menu_bar a{
color: #536a89;
text-decoration: none;
}
#menu_bar a:hover{
color: #000000;
text-decoration: underline
}
/*End Menu BAR*/
/*Begin box_left*/
#box_left{}
/*End box_left*/
/*Begin image rollover*/
.fadeimagediv{ /*IE method of centering a relative div*/
text-align:right;
float:right;
}
.fadeimage>div{ /*Proper way to center a relative div*/
margin: 0px auto;
}
/*end image rollover*/
/*begin box_left*/
#box_left{
width:175px;
}
#box_left .title{
background-image:url(../../images/box_title.jpg);
padding-left:10px;
/*padding-top:5px;*/
height:27px;
color:#000000;
font-size:12px;
font-weight:bold;
}
#box_left .body{
background-image:url(../../images/box_body.jpg);
background-repeat:repeat-y;
padding: 10px 10px 5px 10px;
}
#box_left .footer{
background-image:url(../../images/box_foot.jpg);
height:5px;
}
#box_left ul{
margin : 0 0 0 0px;
padding: 0 0 0 0px;
list-style: none;
}
#box_left li{
/* padding-left:30px;*/
padding-top:5px;
/* background-image:url(../../images/boton.jpg);
background-repeat:no-repeat;
height:19px*/
}
#box_left li:hover{
/* background-image:url(../../images/boton_hover.jpg);
background-repeat:no-repeat;*/
}
#box_left a{
color: #000000;
text-decoration: none;
}
#box_left a:hover{
color: #000000;
text-decoration: underline
}
/*end box left*/
/* begin box time*/
#time{
text-align:right;
padding: 2px 20px 2px 2px;
vertical-align:middle;
}
/* end box time */
/* begin box main */
#box_main{
width:430px;
padding:0px 0px 0px 0px;
}
#box_main .title{
font-weight:bold;
font-size:12px;
padding:0px;
margin-bottom:5px;
}
#box_main .bi{
width:205px;
padding:0px;
margin-right:10px;
margin-bottom:5px;
float:left;
}
/* end box main */
de antemani muchas gracias
__________________
"El viento puede soplar fuerte, pero la montaña no lo reverencia"

Última edición por Gusys; 31/08/2008 a las 23:06 Razón: ortografia
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 00:17.