Jump to content
  • 0

Как выровнять кнопки по центру


alejandro13
 Share

Question

Доброго всем времени суток!

Подскажите, пожалуйста, как в приведенном ниже блоке выровнять кнопки 1,2 и 3 по центру?

 

h_1418333116_8385787_8e5f856cdb.jpeg

 

HTML-код:

 <div class="bottom_nav_wrap"><div class="bottom_nav"><ul><li class="previuos"><a href="#">« Previous</a></li><li class="pages active"><a href="#">1</a></li><li class="pages"><a href="#">2</a></li><li class="pages"><a href="#">3</a></li><li class="next"><a href="#">Next »</a></li></ul></div> </div>
 

 

CSS-код:

.bottom_nav_wrap{padding:10px 0;background: url(../img/content-border.png) top left repeat-x;} .bottom_nav_wrap .bottom_nav{padding:10px;font-size:20px;font-weight:bold;background: rgb(223,237,245);border:1px solid rgb(197,226,243);position:relative;} .bottom_nav ul li {display:inline-block;background:rgb(165,191,207);} .bottom_nav ul li a{text-decoration:none;padding:14px;color:rgb(255,255,255);display:block;} .bottom_nav ul li a:hover{background:rgb(33,140,200);} ul li.pages{background:rgb(33,140,200);} ul li.next{position:absolute;top:10px;right:10px;} .bottom_nav ul li.active{background:rgb(18,92,135); }
Link to comment
Share on other sites

2 answers 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