Jump to content
  • 0

вопрос по list-style-type


sh1va
 Share

Question

Вопрос следующий:

мне нужно сделать список где цифры должны быть выделены жирным шрифтом а все остальное обычном

Пример:

1. Бла бла

2. Бла бла

3. Бла бла

Нумерацию я делаю через decimal. т.к. если ставить none то строки будут переноситься под цифру

Пример:

1. Бла бла бла

бла бла бла бла

а нужно что бы было

Пример:

1. бла бла бла

[пробел]бла бла бла

Так вот... как мне сделать нумерацию жирным шрифтом? )

Edited by sh1va
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru">

<head>
<title>An XHTML 1.0 Strict standard template</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />

<style type="text/css">
* {
margin: 0;
padding: 0;
}

html {
font-size: 100.1%;
}

body {
font: 62.5% Arial, Tahoma, Verdana, sans-serif;
}

ol {
margin-left: 25px;
font-size: 1.2em;
}

li {
font-weight: bold;
}

li span {
font-weight: normal;
}
</style>

<script type="text/javascript">

</script>
</head>

<body>

<ol>
<li><span>text</span></li>
<li><span>text</span></li>
<li><span>text</span></li>
<li><span>text</span></li>
</ol>

</body>
</html>

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