DIV-Width
-
-
Gute Frage, darf ich den gesamten CSS Code sehen?
Mit freundlichen Grüßen
Sheldon -
Sheldon schrieb:
Gute Frage, darf ich den gesamten CSS Code sehen?
Hier erstmal ein Link , wo du es dir "live" angucken kannst.
Quellcode
- /*
- - Layout
- - Body
- - Navigation
- - Schrift
- - Fett gedruckt
- - Wichtige Daten
- */
- /* =========================================================
- * Layout *
- ========================================================= */
- /* ====================
- Body
- ==================== */
- body {
- background: #0066CC; /* Alternativ für IE */
- background: -webkit-gradient(linear, 0 0, 0 25%, from(#3399CC), to(#0066CC));
- background: -moz-linear-gradient(top, #3399CC, #0066CC 25%);
- background-attachment: fixed;
- font-family: 'Droid Sans'; /* By Google Web Fonts */
- font-size: 100%;
- }
- #header {
- width: 1000px;
- margin-left: auto;
- margin-right: auto;
- }
- #content {
- position: relative;
- top: 27px;
- width: 1000px;
- margin-left: auto;
- margin-right: auto;
- background: #FFF;
- }
- #inner {
- width: 950px;
- }
- /* ====================
- Navigation
- ==================== */
- #navi_frame {
- width: 100%;
- height: 50px;
- background-color: #99FF33;
- }
- #navi_wrapper {
- width: 1000px;
- margin-left: auto;
- margin-right: auto;
- }
- #navi_bar {
- left: 550px;
- width: 450px;
- top: 5px;
- position: relative;
- }
- #navi_bar li {
- display: inline;
- list-style-type: none;
- }
- /* === Navi-Button === */
- a.nav_ref {
- background: transparent url("images/navigation/navbutton_right_blu.png") no-repeat scroll top right;
- color: #FFF;
- display: block;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-weight: bold;
- font-size: 0.8em;
- text-shadow: 1px 1px 1px #000;
- float: left;
- height: 39px; /* Hoehe der verwendeten Grafik (Des angezeigten Teils)*/
- margin-right: 6px;
- padding-right: 18px;
- text-decoration: none;
- }
- a.nav_ref .span_link {
- background: transparent url("images/navigation/navbutton_left_blu.png") no-repeat;
- display: block;
- line-height: 29px;
- padding: 5px 0 5px 18px;
- }
- a.nav_ref:hover {
- background-position: bottom right;
- color: #FFF;
- outline: none; /* Punktierten Umriss im Firefox verhindern */
- }
- a.nav_ref:hover .span_link {
- background-position: bottom left;
- padding: 6px 0 4px 18px; /* Verschiebt Text um 1px nach unten */
- }
- /* Navi-Button Aktiv (=ac)*/
- a.nav_ref_ac {
- background: transparent url("images/navigation/navbutton_right_ora.png") no-repeat scroll top right;
- color: #FFF;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-weight: bold;
- font-size: 0.8em;
- text-shadow: 1px 1px 1px #000;
- display: block;
- float: left;
- height: 39px; /* Hoehe der verwendeten Grafik (Des angezeigten Teils)*/
- margin-right: 6px;
- padding-right: 18px;
- text-decoration: none;
- }
- a.nav_ref_ac .span_link_ac {
- background: transparent url("images/navigation/navbutton_left_ora.png") no-repeat;
- display: block;
- line-height: 29px;
- padding: 5px 0 5px 18px;
- }
- a.nav_ref_ac:hover {
- background-position: bottom right;
- color: #FFF;
- outline: none; /* Punktierten Umriss im Firefox verhindern */
- }
- a.nav_ref_ac:hover .span_link_ac {
- background-position: bottom left;
- padding: 6px 0 4px 18px; /* Verschiebt Text um 1px nach unten */
- }
- /* ====================
- Schrift
- ==================== */
- /* Fett gedruckt */
- #bold {
- font-weight: bold;
- font-size: 100%;
- }
- /* Wichtige Daten (Rot) */
- #imp_r {
- color: red;
- font-weight: bold;
- font-size: 100%;
- }
- /* Wichtigen Daten (Grün) */
- #imp_g {
- color: green;
- font-weight: bold;
- font-size: 100%;
- }
- /* Wichtigen Daten (Gelb) */
- #imp_y {
- color: yellow;
- font-weight: bold;
- font-size: 100%;
- }
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 :blöd kann ja quelltext doch anschauen
Setzt mal bitte Body auf 100 % Breite!Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Sheldon ()
-
Sheldon schrieb:
Setzt mal bitte Body auf 100 % Breite!
#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. -
Kev95 schrieb:
Sheldon schrieb:
Setzt mal bitte Body auf 100 % Breite!
#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 -
Sheldon schrieb:
Gut, dann kann ich beruhigt schlafen gehen.
-