Jump to content
  • 0

Непонятные отступы в explorer


Rootical
 Share

Question

			 <div id="counters">

<div id="counter1">
<!-- catalog.tut.by code begin -->
<a href="http://catalog.tut.by/">
<img src="http://catalog.tut.by/images/catalog-tut5.gif" border=0 width=88 height=31 alt="Каталог TUT.BY"></a>
<!-- catalog.tut.by code end -->
</div>
<div id="counter2">
<!-- Akavita counter code --><a target=_top
href="http://www.akavita.by/">
<script language=javascript><!--
d=document;w=window;n=navigator;d.cookie="cc=1";
r=''+escape(d.referrer);js=10;c=(d.cookie)?1:0;j=0;
x=Math.random();u=''+escape(w.location.href);lt=0;
h=history.length;t=new Date;f=(self!=top)?1:0;cd=0;
tz=t.getTimezoneOffset();cpu=n.cpuClass;ww=wh=ss=0;
//--></script><script language="javascript1.1"><!--
js=11;j=(n.javaEnabled()?1:0);
//--></script><script language="javascript1.2"><!--
js=12;lt=1;s=screen;ss=s.width;
cd=(s.colorDepth?s.colorDepth:s.pixelDepth);
//--></script><script language="javascript1.3"><!--
js=13;wh=w.innerHeight;ww=w.innerWidth;
wh=(wh?wh:d.documentElement.offsetHeight);
ww=(ww?ww:d.documentElement.offsetWidth);
//--></script><script language=javascript><!--
q='lik?id=28912&d='+u+'&r='+r+'&h='+h+'&f='+f;
q+='&c='+c+'&tz='+tz+'&cpu='+cpu+'&js='+js+'&wh='+wh;
q+='&ww='+ww+'&ss='+ss+'&cd='+cd+'&j='+j+'&x='+x;
d.write('<img src="http://adlik.akavita.com/bin/'+
q+'" alt="Akavita: каталог, рейтинг, счетчик для сайтов Беларуси" '+
'border=0 width=88 height=31>');
if(lt){d.write('<'+'!-- ');}//--></script><noscript>
<img src="http://adlik.akavita.com/bin/lik?id=28912"
border=0 height=31 width=88 alt="Akavita: каталог, рейтинг, счетчик для сайтов Беларуси">
</noscript><script language="JavaScript"><!--
if(lt){d.write('--'+'>');}//--></script></a>
<!-- Akavita counter code -->
</div>
<div id="counter3">
<a href="http://belarys.info/"><img src="http://belarys.info/im/button1.gif" border=0 width=88 height=31 alt="Каталог белорусских сайтов"></a>
</div>
</div>


Стили

div#counters {position: absolute; top: 320px; left: 67; width: 88px; height: 93; border: 2px solid #fe9e5e; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;}
div#counter1 {float: left; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; border: 0;}
div#counter2 {float: left; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; border: 0;}
div#counter3 {float: both; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; border: 0;}

Уже понадобавлял лишнего, не помогает. Подскажите, пожалуйста, решения проблемы. Премного благодарен!

Edited by Rootical
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

* {margin:0; padding:0;}
body, html {width:100%; height:100%;}

Нет, не в этом дело, вот так не будет отступов:

<div id="counters">
<div id="counter1">
<a href="http://catalog.tut.by/">
<img src="http://catalog.tut.by/images/catalog-tut5.gif" border=0 width=88 height=31 alt="Каталог TUT.BY"></a></div><div id="counter2"><a target=_top
href="http://www.akavita.by/"><script language=javascript><!--
d=document;w=window;n=navigator;d.cookie="cc=1";
r=''+escape(d.referrer);js=10;c=(d.cookie)?1:0;j=0;
x=Math.random();u=''+escape(w.location.href);lt=0;
h=history.length;t=new Date;f=(self!=top)?1:0;cd=0;
tz=t.getTimezoneOffset();cpu=n.cpuClass;ww=wh=ss=0;
//--></script><script language="javascript1.1"><!--
js=11;j=(n.javaEnabled()?1:0);
//--></script><script language="javascript1.2"><!--
js=12;lt=1;s=screen;ss=s.width;
cd=(s.colorDepth?s.colorDepth:s.pixelDepth);
//--></script><script language="javascript1.3"><!--
js=13;wh=w.innerHeight;ww=w.innerWidth;
wh=(wh?wh:d.documentElement.offsetHeight);
ww=(ww?ww:d.documentElement.offsetWidth);
//--></script><script language=javascript><!--
q='lik?id=28912&d='+u+'&r='+r+'&h='+h+'&f='+f;
q+='&c='+c+'&tz='+tz+'&cpu='+cpu+'&js='+js+'&wh='+wh;
q+='&ww='+ww+'&ss='+ss+'&cd='+cd+'&j='+j+'&x='+x;
d.write('<img src="http://adlik.akavita.com/bin/'+
q+'" alt="Akavita: каталог, рейтинг, счетчик для сайтов Беларуси" '+
'border=0 width=88 height=31>');
if(lt){d.write('<'+'!-- ');}//--></script><noscript><img src="http://adlik.akavita.com/bin/lik?id=28912"
border=0 height=31 width=88 alt="Akavita: каталог, рейтинг, счетчик для сайтов Беларуси"></noscript><script language="JavaScript"><!--
if(lt){d.write('--'+'>');}//--></script></a></div><div id="counter3"><a href="http://belarys.info/"><img src="http://belarys.info/im/button1.gif" border=0 width=88 height=31 alt="Каталог белорусских сайтов"></a></div>
</div>

IE переносы строк хреново рендерит, поэтому еще вариант такой:

div#counters {font-size:1px; position: absolute; top: 320px; left: 67; width: 88px; height: 93; border: 2px solid #fe9e5e; margin: 0; padding: 0;}

А остальные counter1, counter2, counter3 можно вообще убрать

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