Jump to content
  • 0

Подскажите в чём может быть проблема


mukz
 Share

Question

В режиме совместимости у IE - отступов нет, без совместимости и во всех остальных браузерах появляются одинаковые отступы.

Табличная верстка. В самом верху ячейка с картинками (4 шт), под ней тоже ячейка с картинками (10 шт).

Получается после верхней и нижней ячейки появляются отступы.

Ячейки залил чёрным цветом чтобы было яснее видно где проблема.

Bezimyanni_3087575_3764221.jpg

Не прошу решить проблему, прошу высказать предположения по проблеме. Спасибо!


<tr>
<td bgcolor="#000" height="131" width="990" colspan="2"><img alt="" width="163" height="191" src="/sm_full.aspx?guid=17993" /><img alt="" width="182" height="191" src="/sm_full.aspx?guid=18813" /><a href="http://sch4.minsk.edu.by/"><img border="0" alt="" width="434" height="191" src="/sm_full.aspx?guid=18823" /></a><img alt="" width="211" height="191" src="/sm_full.aspx?guid=18833" /></td>
</tr>
<tr>
<td bgcolor="#000" height="70" width="740"><img alt="" width="79" height="70" src="/sm_full.aspx?guid=18843" /><a href="/main.aspx?guid=1071"><img border="0" alt="" width="84" height="70" src="/sm_full.aspx?guid=18853" /></a><a href="/main.aspx?guid=1041"><img border="0" alt="" width="68" height="70" src="/sm_full.aspx?guid=18863" /></a><a href="/main.aspx?guid=8173"><img border="0" alt="" width="73" height="70" src="/sm_full.aspx?guid=18873" /></a><a href="/main.aspx?guid=1051"><img border="0" alt="" width="110" height="70" src="/sm_full.aspx?guid=18883" /></a><a href="/main.aspx?guid=1321"><img border="0" alt="" width="86" height="70" src="/sm_full.aspx?guid=18893" /></a><a href="/main.aspx?guid=1061"><img border="0" alt="" width="95" height="70" src="/sm_full.aspx?guid=18903" /></a><a href=""><img border="0" alt="" width="118" height="70" src="/sm_full.aspx?guid=18913" /></a><img alt="" width="27" height="70" src="/sm_full.aspx?guid=18923" /></td>
<td height="70" bgcolor="#000" width="250"><img alt="" width="250" height="70" src="/sm_full.aspx?guid=18933" /></td>
</tr>

Edited by mukz
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Доктайп какой?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

да! дело в доктайпе.

можно ли решить проблему не трогая доктайп?

работаюю через кривосозданую CMS. доктайп прописывается автоматически.

Edited by mukz
Link to comment
Share on other sites

  • 0

Код покажите целиком.

Надеюсь на вашу помощь. Иначе плохо совсем дело.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Средняя школа № 4</title>
<style>
body, html {
margin:0px;
padding:0px;
text-align:center;
background-color:#eee;
font-family: "Arial";
font-size: 9pt;
}

img {
border:0px;
}

a {
color: #7e7e7e;
text-decoration: none;

}

a:visited {
text-decoration: none;
color: #7e7e7e;
}

a:hover {
text-decoration: underline;
color: #CC6600;
}

a:active {
text-decoration: none;
color: #7e7e7e;
}


#container_lst{
background-image : url(pics/shadow.jpg);
background-repeat : repeat-y;
margin: 0 auto;
padding: 0px;
width: 1050px;
}

#container{
background-color: #efefef;
margin: 0 auto;
width: 990px;
text-align:left;
}

#search{
text-align:center;
}

#right{
border-top: 1px solid #e5e5e5;
}

#right p {
margin:0px;
padding:5px;
}

#content{
background-color:#fff;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
margin-left: 0px;
border-right: 1px solid #cccccc;
border-bottom: 1px solid #e5e5e5;
border-top: 1px solid #e5e5e5;
}

p {
margin:0px;
padding: 5px;
color:#522D1C;
text-align:left;
}

#content p {
text-align:left;
color: #522D1C;
}

#ft_img{
background-color:#f9f9f9;
width:90px;
float:left;
border-bottom: 1px solid #e5e5e5;
}

#ft_cnt{
background-color:#f9f9f9;
margin-left:0px;
border-right: 1px solid #cccccc;
border-bottom: 1px solid #e5e5e5;
}
#ft_cnt p {
color:#7e7e7e;
text-align:center;
margin:0px;
padding-top: 10px;
font-size: 11px;
}
#ft_cpt{
background-color:#efefef;
width:250px;
height: 90px;
border-bottom: 1px solid #e5e5e5;
}

#ft_cpt p{
color:#515151;
padding-top: 30px;
padding-left: 50px;
font-size:11px;
}
</style>
</head>

<body>
<div id="container_lst">
<div id="container">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="990" height="131" colspan="2"><img src="pics/head_top_01.jpg" width="163" height="191"><img src="pics/head_top_02.jpg" width="182" height="191"><a href="http://sch4.minsk.edu.by/"><img src="pics/head_top_03.jpg" width="434" height="191" border="0"></a><img src="pics/head_top_04.jpg" width="211" height="191"></td>
</tr>
<tr>
<td bgcolor="#F9F9F9" width="740" height="70"><img src="pics/head_bot_01.jpg" width="79" height="70"><a href="/main.aspx?guid=1071"><img src="pics/head_bot_02.jpg" width="84" height="70" border="0"></a><a href="/main.aspx?guid=1041"><img src="pics/head_bot_03.jpg" width="68" height="70" border="0"></a><a href="/main.aspx?guid=8173"><img src="pics/head_bot_04.jpg" width="73" height="70" border="0"></a><a href="/main.aspx?guid=1051"><img src="pics/head_bot_05.jpg" width="110" height="70" border="0"></a><a href="/main.aspx?guid=1321"><img src="pics/head_bot_06.jpg" width="86" height="70" border="0"></a><a href="/main.aspx?guid=1061"><img src="pics/head_bot_07.jpg" width="95" height="70" border="0"></a><a href=""><img src="pics/head_bot_08.jpg" width="118" height="70" border="0"></a><img src="pics/head_bot_09.jpg" width="27" height="70"></td>
<td><img width="250" height="70" src="pics/head_bot_10.jpg" width="95" height="70" border="0"></td>
</tr>
<tr>
<td id="content" width="740">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</td>
<td width="250" align="left" valign="top" id="right"><p align="left">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p></td>
</tr>
<tr>
<td id="ft_cnt" width="740"><p>
<A href="main.aspx?guid=1071">Одно окно</A> |
<A href="main.aspx?guid=1041">О школе</A> |
<A href="main.aspx?guid=8173">Новости </A>|
<A href="main.aspx?guid=1051">Учительская </A>|
<A href="main.aspx?guid=1321">Ученикам </A>|
<A href="main.aspx?guid=1061">Родителям </A>|
<A href="">Фотогалерея </A>|
<A href="">Карта сайта</A></p></td>
<td id="ft_cpt" width="250">
<p><a href="">© ГУО "Средняя Школа №4"</a><br>
<a href="http://adm.edu.by/">© CMS "Web.Perspective 5.18"</a></p></td>
</tr>
</table>
</div>
</div>
</body>
</html>

Edited by mukz
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