DIV-Width

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Sheldon schrieb:

    Gute Frage, darf ich den gesamten CSS Code sehen?
    Aber natürlich. ;)

    Hier erstmal ein Link , wo du es dir "live" angucken kannst.

    Quellcode

    1. /*
    2. - Layout
    3. - Body
    4. - Navigation
    5. - Schrift
    6. - Fett gedruckt
    7. - Wichtige Daten
    8. */
    9. /* =========================================================
    10. * Layout *
    11. ========================================================= */
    12. /* ====================
    13. Body
    14. ==================== */
    15. body {
    16. background: #0066CC; /* Alternativ für IE */
    17. background: -webkit-gradient(linear, 0 0, 0 25%, from(#3399CC), to(#0066CC));
    18. background: -moz-linear-gradient(top, #3399CC, #0066CC 25%);
    19. background-attachment: fixed;
    20. font-family: 'Droid Sans'; /* By Google Web Fonts */
    21. font-size: 100%;
    22. }
    23. #header {
    24. width: 1000px;
    25. margin-left: auto;
    26. margin-right: auto;
    27. }
    28. #content {
    29. position: relative;
    30. top: 27px;
    31. width: 1000px;
    32. margin-left: auto;
    33. margin-right: auto;
    34. background: #FFF;
    35. }
    36. #inner {
    37. width: 950px;
    38. }
    39. /* ====================
    40. Navigation
    41. ==================== */
    42. #navi_frame {
    43. width: 100%;
    44. height: 50px;
    45. background-color: #99FF33;
    46. }
    47. #navi_wrapper {
    48. width: 1000px;
    49. margin-left: auto;
    50. margin-right: auto;
    51. }
    52. #navi_bar {
    53. left: 550px;
    54. width: 450px;
    55. top: 5px;
    56. position: relative;
    57. }
    58. #navi_bar li {
    59. display: inline;
    60. list-style-type: none;
    61. }
    62. /* === Navi-Button === */
    63. a.nav_ref {
    64. background: transparent url("images/navigation/navbutton_right_blu.png") no-repeat scroll top right;
    65. color: #FFF;
    66. display: block;
    67. font-family: Verdana, Arial, Helvetica, sans-serif;
    68. font-weight: bold;
    69. font-size: 0.8em;
    70. text-shadow: 1px 1px 1px #000;
    71. float: left;
    72. height: 39px; /* Hoehe der verwendeten Grafik (Des angezeigten Teils)*/
    73. margin-right: 6px;
    74. padding-right: 18px;
    75. text-decoration: none;
    76. }
    77. a.nav_ref .span_link {
    78. background: transparent url("images/navigation/navbutton_left_blu.png") no-repeat;
    79. display: block;
    80. line-height: 29px;
    81. padding: 5px 0 5px 18px;
    82. }
    83. a.nav_ref:hover {
    84. background-position: bottom right;
    85. color: #FFF;
    86. outline: none; /* Punktierten Umriss im Firefox verhindern */
    87. }
    88. a.nav_ref:hover .span_link {
    89. background-position: bottom left;
    90. padding: 6px 0 4px 18px; /* Verschiebt Text um 1px nach unten */
    91. }
    92. /* Navi-Button Aktiv (=ac)*/
    93. a.nav_ref_ac {
    94. background: transparent url("images/navigation/navbutton_right_ora.png") no-repeat scroll top right;
    95. color: #FFF;
    96. font-family: Verdana, Arial, Helvetica, sans-serif;
    97. font-weight: bold;
    98. font-size: 0.8em;
    99. text-shadow: 1px 1px 1px #000;
    100. display: block;
    101. float: left;
    102. height: 39px; /* Hoehe der verwendeten Grafik (Des angezeigten Teils)*/
    103. margin-right: 6px;
    104. padding-right: 18px;
    105. text-decoration: none;
    106. }
    107. a.nav_ref_ac .span_link_ac {
    108. background: transparent url("images/navigation/navbutton_left_ora.png") no-repeat;
    109. display: block;
    110. line-height: 29px;
    111. padding: 5px 0 5px 18px;
    112. }
    113. a.nav_ref_ac:hover {
    114. background-position: bottom right;
    115. color: #FFF;
    116. outline: none; /* Punktierten Umriss im Firefox verhindern */
    117. }
    118. a.nav_ref_ac:hover .span_link_ac {
    119. background-position: bottom left;
    120. padding: 6px 0 4px 18px; /* Verschiebt Text um 1px nach unten */
    121. }
    122. /* ====================
    123. Schrift
    124. ==================== */
    125. /* Fett gedruckt */
    126. #bold {
    127. font-weight: bold;
    128. font-size: 100%;
    129. }
    130. /* Wichtige Daten (Rot) */
    131. #imp_r {
    132. color: red;
    133. font-weight: bold;
    134. font-size: 100%;
    135. }
    136. /* Wichtigen Daten (Grün) */
    137. #imp_g {
    138. color: green;
    139. font-weight: bold;
    140. font-size: 100%;
    141. }
    142. /* Wichtigen Daten (Gelb) */
    143. #imp_y {
    144. color: yellow;
    145. font-weight: bold;
    146. font-size: 100%;
    147. }
    Alles anzeigen


    Ganz schön lang, für den Anfang. ;)
  • Ist die Navigation im Content eingefügt?
    Aufgrund des fehlendes Html Codes kann ich das nicht so ganz beurteilen,aber wenn ja,
    dann könnte es aufgrund der angegeben Content-Breite sein.

    Mit freundlichen Grüßen

    Sheldon


    #edit : :D blöd kann ja quelltext doch anschauen ^^


    Setzt mal bitte Body auf 100 % Breite!

    Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Sheldon ()

  • Kev95 schrieb:

    Sheldon schrieb:

    Setzt mal bitte Body auf 100 % Breite!
    Jetzt hab ich nen Scrollbalken, aber der Abstand rechts ist weg.

    #Edit: Ich spiel mal mit den Paddings/Margins ein bisschen vielleicht komm ich auf die Lösung.

    #Edit2: Habs gefunden! Body-Breite auf 100% und Margin-left auf 0px.


    Gut, dann kann ich beruhigt schlafen gehen.

    Mit freundlichen Grüßen

    Robin Code