Jump to content
  • 0

Не могу понять, откуда берется отступ?


d0ublezer0
 Share

Question

То ли я не выспался, то ли что..

не могу понять, откуда берется прореха между пунктами меню:

2c415dd366f6.png

Вот код:

<html>
<head>
<style type="text/css">
<!--
* {
margin:0;
padding:0;
}
ul, li {
list-style:none;
}
ul.mainmenu, ul.mainmenu li {
display:inline;
}
ul.mainmenu li.active a, ul.mainmenu a:hover {
background:#353535;
color:#fff;
}
ul.mainmenu a {
display:inline-block;
padding:10px 15px;
text-decoration:none;
color:#353535;
font-size:1.75em;
}
-->
</style>
</head>
<body>
<ul class="mainmenu">
<li class="active"><a href="#">menu</a></li>
<li><a href="#">menu</a></li>
<li><a href="#">menu</a></li>
<li><a href="#">menu</a></li>
</ul>
</body>
</html>

UPD:

Блин, вот сам дурак....

надо было сделать <A> block и float:left

Извините :lol:

Действительно с просонья не заметил..

P.S. Как тему удалить?

Edited by d0ublezer0
Link to comment
Share on other sites

1 answer 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