Jump to content
  • 0

Неправильное отображение сайта в разных браузерах.


Mihail Dobkin
 Share

Question

Продублирую свою проблему тут. Хочется разобраться.

#main { 

width : 900px;

height : auto;

margin : 0 auto;

padding : 0 0;

}

html, body {

margin : 0;

padding : 0;

}

#header {

width : 900px;

height : 295px;

margin : 0 auto;

padding : 0;

}

#main_content {

width : 900px;

height : 456px;

margin : 0 auto;

padding : 0;

background : url(images/fon.jpg) repeat-y;

}

#red_image {

height : 36px;

margin-left : 0;

margin-bottom : 0;

padding : 0;

}

#head_small {

height : 21px;

margin : 0;

padding : 0;

}

#left_header_image {

margin-top : -4px;

margin-left : 524px;

width : 206px;

height : 11px;

padding : 0;

}

#enter {

width : 84px;

height : 25px;

margin-left : 731px;

margin-top : -334px;

}

#text_header {

width : 759px;

height : 9px;

margin-left : 57px;

margin-top : -1px;

padding : 0;

background : #000000;

}

.text {

text-indent : 20px;

color : #c3c300;

font-family : Tahoma;

font-size : 11px;

margin-left : 30px;

}

.text_1 {

text-indent : 20px;

color : #ffff28;

font-family : Tahoma;

font-size : 11px;

margin-left : 30px;

}

#footer {

margin-top : 20px;

margin-left : 56px;

width : 759px;

height : 60px;

padding : 0;

background : url(images/footer.jpg);

}

.footer_text {

text-indent : 20px;

color : #c3c300;

font-family : Tahoma;

font-size : 11px;

margin-top : -40px;

margin-right : 20px;

text-align : center;

}

#flash_footer {

margin-top : 7px;

margin-left : 20px;

width : 75px;

height : 46px;

padding : 0;

background : url(images/flash.jpg);

}

#fonn1 {

margin-bottom : 0;

margin-left : 0;

width : 57px;

height : 344px;

padding : 0;

}

#fonn2 {

margin-top : -400px;

margin-left : 817px;

width : 83px;

height : 354px;

padding : 0;

}

#button {

position : absolute;

width : 156px;

height : 156px;

left : 866px;

top : 558px;

}

#form {

position : absolute;

width : 208px;

height : 24px;

left : 702px;

top : 316px;

}

index.html

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/css; charset=windows-1251" />
<title>iTillery solutions</title>
<style type="text/css" media="all">@import "style.css";</style>
</head>
<body>
<div id="main">
<div id="header">
<div id="button">

<img border="0" src="images/button.gif" width="156" height="156" alt="" />
</div>
<img src="images/geader.jpg" border="0" align="right" alt="" width="900" height="295" />
</div>

<div id="main_content">
<div id ="head_small">
<img src="images/head_small.jpg" align="left" border="0" alt="" height="21" width="900" />
</div>
<div id="red_image">

<img src="images/red_image.jpg" align="left" border="0" alt="" width="525" height="36" />
</div>
<div id="fonn1">
<img src="images/fonn1.jpg" align="left" border="0" alt="" width="57" height="344" />
</div>
<div id="fonn2">
<img src="images/fonn2.jpg" align="right" border="0" alt="" width="83" height="354" />
</div>
<div id="enter">

<input type="image" src="images/enter.jpg" />
</div>
<div id="left_header_image">
<div id="form"><input type="text" style="font-size:12pt" size="27" /></div>
<img src="images/left_header_image.jpg" align="left" border="0" alt="" width="293" height="11" />
</div>
<div id="text_header">
<img src="images/text_head.jpg" align="left" border="0" alt="" width="759" height="9" />



<p class="text" align="left">
<img src="images/41.jpg" align="left" border="0" alt="" width="347" height="21" />



 iTillery Solutions empowers you with the IT Artillery you need to combat security threats,

mitigate security risks, ensure business continuity, enforce corporate acceptable use polices,

clamp down on non-business related use of resources and address regulatory compliance.

<input type="image" align="right" src="images/read_more.jpg" style="margin-right: 180px" />
</p>
<hr style="margin-left:30px; margin-top:2px; color:#c3c300" size="1px" width="550px" align="left" />



<p class="text_1" align="left">
<img src="images/40.jpg" align="left" border="0" alt="" width="133" height="18" />


 iTillery solutions provides tailored security solutions, designed to meet your intivedual business needs. iTillery Solu-

tions uses only the most innovative and trusted technologies, and provides you with complete end-to-end solutions that
are proven, practical and price competitive.

 iTillery Solutions has partnered with some of the world's most innovative and trusted security vendors, giving you

access to security services across all realms; the desktop, the perimeter and network. iTillery Solutions gives you

access to the same levels of technology and service assurance traditionally only available to the larger enterprise and

government bodies. iTillery Solutions also provides you with comprehensive Servise Level Agreements to give you the
reassurance you need to help you sleep easy.

<input type="image" align="right" src="images/read_more.jpg" style="margin-right: 180px" />

</p>


</div>
<div id="footer">
<div id="flash_footer" align="left">
</div>
<p class = "footer_text" align="right">
Home|About Us| Services| Company|Support|Contacts

Copyright 2007-2008 © iTillery Pty Ltd. All rights reserved| Termas of use| Privacy policy
</p>

</div>

</div>
</div>
</body>
</html>

http://www.progcom.sumy.ua/template/

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Есть два выхода:

1. Использовать таблицы, а дивы только когда совсем прижало

2. Изучать дивы от и до, разбираться методом проб и ошибок с позиционированием и тестировать в разных браузерах во время разработки, а не после...

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