Jump to content
  • 0

Проблема с флоат


ar130405
 Share

Question

Здраствуйте всем.

Проблема такова.

я хочу чтобы менюшка располагалась прям под шапкой

проблема в том что менюшка в ИЕ6 прыгает вниз шапки и не растягивается по процентам прописаным

елсли делать всё это дело с овер флоу то шапка становится на место только пол рисунка обрезается и низ рисунка тоже подрезается.

подскожите пожалуйста что я делаю не так .

как прописать чтобы всё встала на свои места?!

заранее благодарен.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onLoad="MM_preloadImages('img/images/images/logo&menu21_08.jpg','img/images/images/logo&menu21_04.jpg','img/images/images/logo&menu21_05.jpg','img/images/images/logo&menu21_06.jpg','img/images/images/logo&menu21_07.jpg')">

<div id="logo_menu">

<div id="logo_zvetok"><img class="logo_menu_imgrule"src="img/images/logo&menu1.jpg"></div>
<div id="logo_main"><img class="logo_menu_imgrule" src="img/images/logo&menu2.jpg"></div>


<div id="menu">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr >
<td id="menu_krasota"><img class="logo_menu_imgrule" src="img/images/images/logo&menu21_01.jpg"></td>
<td> </td>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr >
<td id="menu_zveti"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('zveti','','img/images/images/logo&menu21_08.jpg',1)"><img class="logo_menu_imgrule" src="img/images/images/logo&menu2_08.jpg" name="zveti" width="82" height="60" border="0"></a></td>
<td id="menu_otkritki"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('orkritki','','img/images/images/logo&menu21_04.jpg',1)"><img class="logo_menu_imgrule" src="img/images/images/logo&menu2_04.jpg" name="orkritki" width="103" height="60" border="0"></a></td>
<td id="menu_upakovki"> <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('upakovki','','img/images/images/logo&menu21_05.jpg',1)"><img class="logo_menu_imgrule" src="img/images/images/logo&menu2_05.jpg" name="upakovki" width="207" height="60" border="0"></a></td>
<td id="menu_muzika"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('muzika','','img/images/images/logo&menu21_06.jpg',1)"><img class="logo_menu_imgrule" src="img/images/images/logo&menu2_06.jpg" name="muzika" width="245" height="60" border="0"></a></td>
<td id="menu_miagkie"> <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('miagkie','','img/images/images/logo&menu21_07.jpg',1)"><img class="logo_menu_imgrule" src="img/images/images/logo&menu2_07.jpg" name="miagkie" width="174" height="60" border="0"></a></td>
</tr>
</table>



</div>



</div>

</body>
</html>

body {
background-color: #000000;
}
#logo_menu {
position: absolute;
width: 98%;
top: 0px;
height: 250px;
text-align: center;
left: 1%;
}
#menu_zveti {
float: left;
height: 60px;
width: 10%;
position: relative;
}

#menu {
height: 80px;
width: 65%;
margin-top: 10px;
margin-left: 0px;
position: relative;
float: right;
}
#menu_krasota {
position: relative;
height: 27px;
width: 60%;
left: 0px;
}



#logo_zvetok {
float: left;
width: 35%;
margin-top: 10px;
margin-left: 0px;
position: relative;
height: 350px;
}
#logo_main {
float: left;
width: 65%;
margin-top: 10px;
margin-left: 0px;
position: relative;
height: 252px;
}
.logo_menu_imgrule {
width: 100%;
height: 100%;
position: relative;
float: left;
}
.menu_header {
float: left;
height: 60px;
width: 20%;
margin-top: 0px;
position: relative;
z-index: 100;
}
#menu_otkritki {
float: left;
height: 60px;
width: 13%;
position: relative;
}
#menu_upakovki {
float: left;
height: 60px;
width: 25%;
position: relative;
}
#menu_muzika {
float: left;
height: 60px;
width: 30%;
position: relative;
}
#menu_miagkie {
float: left;
height: 60px;
width: 22%;
position: relative;
}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

А можно ссылку на рабочую страничку чтобы со всеми картинками и можно было в Firebug'е верстку погонять? Тогда можно было бы страшный image replacement от DreamWeaver убрать и на CSS покрасивше сделать.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy