Jump to content
  • 0

Меню на картинке


Ritter
 Share

Question

Делаю меню на картинке, получается вот что:

D9BHDoCrV6.jpg

Но как только, я хочу поправить чтобы было по центру, получается:

rii79y8PQH.jpg

Ссылки накладываются друг на друга, когда ставишь именно ровно по центру, т.е. если чуть выше или ниже, то все норм. Поправляю margin-ом.

Посоветуйте, как сделать норм?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 #navbar {
margin:0 auto;
padding:36px 10px 0px 10px;
margin-left: -85px;
text-transform:uppercase;
background:#ffd700 url('../img/navbar.gif');
width:743px;
margin-top:45px;
border-left:5px solid #fff;
border-right:5px solid #fff;
}
#page-bar {
padding:0px;
}

#page-bar ul {
list-style: none;
}

#page-bar li {
float: left;
list-style:none;
cursor: pointer;
display:block;
border-right:1px solid #303030;
margin-top: -31px;
}

#page-bar li:hover {
background: #5b5b5b;
}

#page-bar a, #page-bar a:visited {
margin: 0px;
padding:11px 14px;
font-weight:bold;
color:#eeeeee;
display:block;
}

#page-bar a:hover {
text-decoration:none;
display:block;
}

#page-bar p {
margin:0;
padding:0;
}

В странице так:

<div id="navbar" class="clearfloat">
<ul id="page-bar" class="left clearfloat">

<li><a href="/">Главная</a></li>

</ul> </div>

Edited by Ritter
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