Jump to content
  • 0

Центрирования content


Rootical
 Share

Question

Вот такой код. Фаяфокс и Опера в порядке, ИЕ не центрирует маргин: авто. Речь идет о "после" шестой версии)

Центрировал, все было в порядке. Начал править что-то совсем другое... и все. В чем может быть проблема? Спасибо!

html, body {margin: 0; padding:0;}
body {font-family: Arial, Sans-serif; font-size: 10pt; background-color: #e5f0f6;}

#container {margin: 0 auto; width: 900px; background: white;}

p {margin: 3px 0px 4px 0px;}
h2{font-size: 13pt; margin: 3px 5px 4px 5px;}
h3{font-size: 11pt; margin: 3px 5px 4px 5px;}
a:link {color: #1450aa; text-decoration: underline;}
a:visited {color: #525f66; text-decoration: none;}
a:hover {color: #525f66; text-decoration: none;}
a:active {color: #1450aa; text-decoration: underline;}

#header {padding: 100px 10px 10px 10px; height: 40px; background: url("images/logo.jpg") no-repeat;}
#header h1 {font-size: 18pt; margin: 0px;}
#header h2 {font-size: 10pt; margin: 0px;}

#wrapper {float: left; width: 100%;background: white;}
*html #wrapper {overflow: hidden;}

#content {margin-right: 400px; padding-left: 10px;background: white; }
#content p {line-height: 1.4em;}

#sidebar-1 h3{margin: 10px 0px 5px 10px;}

#sidebar-2 h3{margin: 10px 0px 5px 10px;}



#navigation {border-bottom: 14px solid #839ae1; background: #d0d9f4 url("images/shadow.gif") repeat-y right;}
#navigation {float: left; width: 200px; margin-left: -380px;}
*html #navigation {overflow: hidden;}

#extra {border-bottom: 14px solid #839ae1; background: #d0d9f4;}
#extra a {font-size: 12pt;}
#extra {float: left; width: 180px; margin-left: -180px;}
*html #extra {overflow: hidden;}

#footer {background: #d0d9f4; color: #00000; font-weight: bold;}
#image {clear: left; width: 900px; height: 30px; background: url("images/bottom-line.gif") no-repeat;}
#footer {clear: both; width: 100%; height: 25px; background: url("images/footer.gif") no-repeat;}

#footer p {margin: 0; padding: 5px 10px; text-align: center;}

#searchform {margin: 5px; }
#s {font-size: 8pt; width: 110px;}
#searchsubmit {font-size: 8pt;}
#comment {width: 500px;}

div.textwidget {border:1px solid #ccc; padding:5px}


div.maintop {}
div.maintop h1 {font-size: 12pt; margin-bottom: 5px;}
div.maintop p {font-size: 9pt;}

div.maincontent {}

div.mainbottom {margin-bottom: 20px;}
div.mainbottom p.comment {text-align: right; font-size: 9pt;}

ul.is_link {margin: 0px 0px 10px 25px; padding: 0px; font-size: 10pt;}
ul.is_link ul {margin: 0px 0px 0px 25px; padding: 0px;}

h2.box {font-size: 12pt; margin: 10px 0px 5px 10px;}

div.ads { height: 300px; margin: 5px; border: red solid 1px; background: #FFFFF; text-align: center;}
div.counters {margin: 5px;}




h1.cat {font-size: 12pt; margin-bottom: 5px;}
p.cat {font-size: 9pt; font-style: italic;}
ul.cat {list-style-type: circle;}

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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