Jump to content
  • 0

Заполнение пустого места точками.


renton
 Share

Question

Привет друзья.

Пытаюсь сделать такой список:

test test ................ 10

test ...................... 10

lalala test lsls ........ 10

Методом проб и ошибок получилось так:

.dot {
border-bottom-width: 1px;
border-bottom-style: dotted;
border-bottom-color: #999999;
border-right-width: 2px;
border-right-style: solid;
border-right-color: #FFFFFF;
border-left-width: 2px;
border-left-style: solid;
border-left-color: #FFFFFF;
padding-bottom: 0px;

}
.nodot {
border-bottom-width: 2px;
border-bottom-color: #FFFFFF;
border-bottom-style: solid;
padding-bottom: 0px;
}
<tr><td class="dot"><span class="nodot">test</span></td><td class="nodot2">10</td></tr>

В Opera'е и Firefox'е прекрасно получилось.

А в IE под текстом все равно точки (точки это условно конечно, просто IE их так рисует), может быть есть другие способы, или этот можно усовершествовать?

Спасибо.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Ну вот можно как то так:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>

<style type="text/css">
.goods { border-bottom: 1px dotted #000; text-align: right; }
.name, .price { background-color: #fff; position:relative; top: 5px; }
.name { float: left; }
</style>

</head>

<body>

<div class="goods"><span class="name">test</span><span class="price">10</span></div>
<div class="goods"><span class="name">test</span><span class="price">10</span></div>
<div class="goods"><span class="name">test</span><span class="price">10</span></div>

</body>
</html>

Проверено в IE 6, Opera 8.54 и FF 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