0

we have a problem of making the ul-ed blocks of buttons on the top of the page ideal to the center.

here is the link.

nick.georates.net/selectcountry.html

can you give a hint how in the css adjust so that the buttons will be in the middle for any resolution of the page????

thanks beforehand

Kyle
  • 65,599
  • 28
  • 144
  • 152
MR.GEWA
  • 833
  • 1
  • 15
  • 37
  • the ul with the class = "shortcut-buttons-set" inherits a padding-left:40px; try to overwrite that in the "shortcut-buttons-set" class – thedev Nov 19 '10 at 13:08
  • @thedev: This is the right answer, please post it as an answer and I will vote you up. @DR.GEWA: The element from which the padding is inherited is #main-content in style.css line 236. – Bazzz Nov 19 '10 at 15:38
  • @DR GEWA glad to be of assistance... good luck with your project ;) – thedev Nov 19 '10 at 16:47

4 Answers4

2

the ul with the class = "shortcut-buttons-set" inherits a padding-left:40px; try to overwrite that in the "shortcut-buttons-set" class

thedev
  • 2,816
  • 8
  • 34
  • 47
0

As you have five <li> you can set their width as 20%, whith margin:auto links will appear center.

li {
    margin:0;
    padding:0;
    width:20%;
    float:left;
}
a {
    width:103px;
    margin:auto;
}
MatTheCat
  • 18,071
  • 6
  • 54
  • 69