Buttons zentrieren funktioniert nicht

  • CSS

    Buttons zentrieren funktioniert nicht

    Hallo liebe Gemeinde,

    ich bin am verzweifel und habe schon überall "text-align: center;" ausprobiert, wo es nur geht, aber nichts geschafft.
    Wer kann mir helfen, ich schaffe es nicht, dass die Buttons insg. in der Mitte angezeigt werden.

    PS: Ich habe noch den Stylesheet von der Thickbox drin und die jQuery.js + Thickbox.js drin.

    CSS-Code

    Quellcode

    1. <style type="text/css">
    2. body {
    3. background: url(../img/background.jpg) fixed no-repeat;
    4. background-position: center;
    5. background-size: 100% 100%;
    6. margin:0px;
    7. background-color: green;
    8. color: #fb9940;
    9. font-family: Verdana, Sans-Serif;
    10. }
    11. .header {
    12. float: none;
    13. display: block;
    14. text-align: center;
    15. margin-top: -150px;
    16. margin-bottom: 50px;
    17. }
    18. .logo {
    19. float: right;
    20. display: block;
    21. text-align: center;
    22. margin-top: -150px;
    23. margin-bottom: 50px;
    24. margin-right: -170px;
    25. }
    26. .center {
    27. float: none;
    28. width: 800px;
    29. margin-left: auto;
    30. margin-right: auto;
    31. margin-top: 200px;
    32. }
    33. .nav a {
    34. display: inline-block;
    35. width: 100px;
    36. background: #fb9940;
    37. padding: 5px 5px 5px 5px;
    38. border: 1px solid #ba6410;
    39. color: #fff;
    40. text-decoration: none;
    41. text-align: center;
    42. margin: 0px 10px;
    43. font-size: 14px;
    44. font-weight: bold;
    45. text-align: center;
    46. }
    47. .navigation, .footer {
    48. text-align: center;
    49. font-size:14px;
    50. display:block;
    51. position:absolute;
    52. }
    53. .navigation ul, .footer ul {
    54. list-style-type:none;
    55. list-style-image:none;
    56. text-align: center;
    57. }
    58. .navigation li.topmenu, .footer li.topmenu {
    59. float:left;
    60. padding: 0px 0px;
    61. text-align: center;
    62. }
    63. .topmenu ul{
    64. display:none;
    65. }
    66. .topmenu a {
    67. display: inline-block;
    68. width: 120px;
    69. background: #fb9940;
    70. padding: 5px;
    71. border: 1px solid #ba6410;
    72. color: #fff;
    73. text-decoration: none;
    74. text-align: center;
    75. margin: 0px 10px;
    76. font-size: 14px;
    77. font-weight: bold;
    78. }
    79. .submenu a {
    80. border-top: 0px;
    81. position:relative;
    82. clear:both; /* special IE6 */
    83. }
    84. .navigation a:hover, .topmenu.on a, .footer a:hover {
    85. background-color:#ffaf67 !important;
    86. }
    87. .topmenu:hover ul {
    88. display:block;
    89. }
    90. .article {
    91. margin-top: 120px;
    92. }
    93. .footer {
    94. margin-top: 25px;
    95. }
    96. </style>


    HTML-Code

    HTML-Quellcode

    1. <div class="center">
    2. <div class="header"><img src="../img/header.png" alt="" title="" /></div>
    3. <div class="logo"><img src="../img/logo.png" alt="" title="" /></div>
    4. <div class="navigation">
    5. <ul>$navigation_top</ul>
    6. </div>
    7. <div class="article">
    8. <div class="scroll-pane" style="overflow:auto; width:100%; height:350px; padding:0px; border:0px;">
    9. $content
    10. </div>
    11. </div>
    12. <div class="footer" style="text-align:center;">
    13. <ul style="text-align:center;">$navigation_bottom</ul>
    14. </div>
    15. </div>

    Schaffe es allein, OHNE Hilfe leider nicht mehr...

    EDIT Habe mal den Fehler als Dateianhang hochgeladen.

    Mit freundlichem Gruß,
    abRobert
    Bilder
    • Fehler.png

      973,23 kB, 1.034×582, 70 mal angesehen

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „abRobert“ ()