Jump to content
  • 0

в ie7 вёрстка немного разъехалась


adelante
 Share

Question

Вот так шапка сайта выглядит в файрфоксе и примерно так же в других браузерах:

firefox.png

А вот так в ie7:

ie7.png

Сабмит-кнопка от поиска съехала чёрт знает куда вправо и ниже и два divа как и не было.

Вот код:

<div id="wrapper">

<div id="header_box">

<div id="logo" class="fl"><img src="images/logo.png"></div>

<div id="search" class="fl margintop120">

<form>

<input type="text" name="searchvalue" id="searchbox" value="Поиск Вашего тура" onblur="if (this.value == '') this.value = 'Поиск Вашего тура';" onfocus="if (this.value == 'Поиск Вашего тура') this.value = '';">

<div id="searchsubmitcontainer" class="fr"><input type="submit" id="searchsubmit" name="" value="Найти" /></div></a>

</form>

</div>

<div id="social" class="fl margintop120">

<img src="images/link_skype.gif">

<img src="images/link_facebook.gif">

<img src="images/link_twitter.gif">

</div>

<div id="contacts" class="fl margintop120">

<div id="phone" class="fl"><br />+7 555 555 55 55</div>

<div id="address" class="fl" style="padding-right:0;">Москва, ул. им. В.В.Путина I<br />дом 38/2, стр. 1, офис 126</div>

</div>

</div>

</div>

————CSS————--

#wrapper {

width: 916px;

margin:auto;

}

#header_box {

height: 110px;

margin-bottom: 27px;

}

#header_box div {

}

#logo {

width: 78px;

height: 110px;

margin-right: 25px;

}

.margintop120 {

margin-top: 80px;

}

#searchbox {

width: 330px;

height: 26px;

border: 1px solid #FAA45C;

border-radius: 3px;

line-height: 26px;

background: url('images/search_bg.png') no-repeat 10px 7px;

padding-left: 32px;

}

#searchsubmitcontainer {

width: 1px;

position: relative;

}

#search input {

font: 9pt MyriadPro, sans-serif;

color: #BBBBBB;

}

#searchsubmit {

background: none;

position: relative;

left: -60px;

top: 7px;

border: 0;

cursor:pointer;

}

#social {

margin-left: 10px;

margin-right:10px;

padding-top: 7px;

height: 26px;

}

#social img {

padding: 0 2px;

cursor:pointer;

}

#contacts {

font:10pt MyriadPro, sans-serif;

color: #FAA45C;

}

#contacts div {

height: 30px;

border-left: 1px dotted #BBBBBB;

padding-left: 15px;

padding-right: 15px;

text-align: right;

}

Буду благодарен за помощь в решении бага.

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