Jump to content
  • 0

Рамка для формы поиска


Mal4ishnik
 Share

Question

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.searchform {
background: #b91715 bottom left no-repeat;
float: right;
padding: 1px;
top: 25px;
right: 0px;
}
.searchform .s {
border: none;
background: #FFF;
color: #666;
font-family: Times New Roman, Georgia, Serif;
padding: 2px;
width: 157px;
}
</style>

</head>

<body>
<form method="get" id="searchform" action="http://localhost/wpress/">
<div class="searchform">
<input type="text" value="Поиск..." name="s" class="s" onfocus="if (this.value == 'Поиск...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Поиск...';}"/>
</div>
</form>

</body>
</html>

Здравствуйте, уважаемые форумчане. Это код для вывода формы поиска. Вокруг формы образуется рамка 1пиксель, но в ИЕ 6-7 верхняя и нижняя границы рамки 2а пикселя. Как это можно исправить?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
Я не могу background: none; поставить у меня тогда вся форма b91715 цвета(красная), а border: 0 не помагает, все равно рамка вверху и внизу в два пикселя, по бокам один пиксель

А почему она у тебя красная?

И вообще давай скрин того, что хочешь получить

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