Frage zu Redaxo-Stylesheet

Wie verwendet man Templates oder erstellt Navigationen und passt diese an.

Frage zu Redaxo-Stylesheet

Beitragvon yogi » 6. Jan 2006, 09:03

Hallo,

wo kann ich in der main.css den Abstand zwischen
<H1> und den Content-Bereich einstellen?

Währe für Hilfe dankbar ! Vielen Dank

Hier meine main.css

Code: Alles auswählen
/*******************************************************************************

   Project      :   Redaxo Demo

   Copyright   :   blumbeet - web.studio
               www.blumbeet.com

*******************************************************************************/




/*   undo
*******************************************************************************/

:link,:visited { text-decoration:none; }
ul,ol { list-style:none }
h1,h2,h3,h4,h5,h6,pre,code { font-size:1em; font-weight:normal; }
ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input, dl, dt, dd { margin:0; padding:0 }
img, a img,:link img,:visited img, fieldset { border:none }
img { margin:0; padding:0; vertical-align:bottom; }
address { font-style:normal }

table {   border:none; padding:0px; margin:0px; border-spacing:0px; font-size:1em;}
tr { border:none; padding:0px; margin:0px; }
td { border:none; padding:0px; margin:0px; vertical-align:top; border-spacing:0px; }


legend { display:none; }

body, div,p,li { background-repeat:no-repeat; }

/*   reset some basic style
*******************************************************************************/
dl         {margin: 0 0 0 0;}
dl dt      {margin: 0 0 0 0;}
dl dd+dt   {margin-top: 0;}
dl dd      {margin: 0 0 0 0;}

ol         {list-style: none;}
ol li      {margin: 0 0 0 0;}
ol li ol   {margin: 0 0 0 0;}
ol li ul   {margin: 0 0 0 0;}

p         {margin-bottom: 0em;}

ul         {list-style: none;}
ul li      {margin: 0 0 0 0;}
ul li ul   {margin: 0 0 0 0; list-style: none;}
ul li ol   {margin: 0 0 0 0;}

pre         {font-size:1.2em; }

a:hover { text-decoration:none; }

/*   body
*******************************************************************************/
body {
   background-image:url();
   font-family:verdana, arial, helvetica, sans-serif;
   font-size: xx-small;
   voice-family: "\"}\"";
   voice-family: inherit;
   font-size: x-small;
}

.clearer {
   display:block;
   clear:both;
   line-height:1;
   height:1px;
   font-size:1;
   visibility:hidden;
}

.clear {
   clear:both;
}

.flLeft { float:left; }
.flRight { float:right; }

.warning { color:#f00; }

/*   html
*******************************************************************************/
html {
   min-height: 100%;
   margin-bottom: 1px;
}

/*   website
*******************************************************************************/
#website {
   position:relative;
   display:block;
   margin:0;
   padding:0;
   height:100%;
   width:790px;
   color:#000;
   text-align:left;
}


/*   logo / breadcrumb
*******************************************************************************/
#logo {
   position:absolute;
   top:0px;
   left:0px;
}

#logo a {
   display:block;
   height:100px;
   width:170px;
   text-indent:-700em;
}


#breadcrumb {
   position:absolute;
   bottom:9px;
   left:200px;
}

#breadcrumb a,
#breadcrumb a:link {
   color:#000;
}

#breadcrumb a:hover {
   text-decoration:underline;
}
/*   content
*******************************************************************************/


#content, #content2 {
   display:block;
   clear:both;
   position:relative;
   padding:0 0 0 0;
}


/* hide from IE/MAC \*/
* html #content, * html #content2 {
   height:1px;
}
/* end hide */


#content {}

}

#main {
   float:left;
   width:560px;
}

#main-block {}

#main-block2 {
   padding:14px;
}


/*   Navigation vertical -
   Wenn die Navigation mit der ID 3 verwendet wird, kann alles bis
   zum nächsten Kommentar gelöscht werden
------------------------------------------------------------------------------*/
#navigation {
   float:left;
   width:200px;
   padding:14px 0;
}

#navigation ul.nav1st {
   width:170px;
}


#navigation ul.nav1st li {
   padding:8px 0 8px 14px;
}

#navigation ul.nav1st li.active {
   background:#f7f7f7;
}

#navigation ul.nav1st li.active a,
#navigation ul.nav1st li.active a:link {
   color:#090;
}

#navigation ul.nav1st a,
#navigation ul.nav1st a:link {
   display:block;
   color:#606060;
   font-size:1.2em;
   font-weight:bold;
}

#navigation ul.nav1st a:hover {
   color:#090;
}


#navigation ul.nav1st li ul.nav2nd li {
   padding:0;
   margin-left:14px;
   list-style-type:square;
}

#navigation ul.nav2nd a,
#navigation ul.nav2nd a:link {
   display:block;
   padding:4px 0 4px 0;
   font-size:1.1em;
   font-weight:normal;
}

#navigation ul.nav2nd a.current,
#navigation ul.nav2nd a.current:link,
#navigation ul.nav2nd a:hover {
   text-decoration:underline;
}


/*   Navigation horizontal and vertical -
   Wenn die Navigation mit der ID 2 verwendet wird, kann alles bis
   zum nächsten Kommentar gelöscht werden
------------------------------------------------------------------------------*/

#header-nav {
   position:absolute;
   bottom:30px;
   left:200px;
   width:560px;
   background:#fff;
}

#header-nav ul.nav1st {
}


#header-nav ul.nav1st li {
   display:block;
   float:left;
   padding:5px 7px 5px 7px;
}

#header-nav ul.nav1st li.active {
   background:#f7f7f7;
}

#header-nav ul.nav1st li.active a,
#header-nav ul.nav1st li.active a:link {
   color:#090;
}

#header-nav ul.nav1st a,
#header-nav ul.nav1st a:link {
   color:#606060;
   font-size:1.0em;
   font-weight:bold;
}

#header-nav ul.nav1st a:hover {
   color:#090;
}


#navigation {
   float:left;
   width:200px;
   padding:14px 0;
}

#navigation ul.nav2nd li {
   padding:0;
   margin-left:14px;
   font-size:1.0em;
   font-weight:normal;
}

#navigation ul.nav2nd a,
#navigation ul.nav2nd a:link {
   display:block;
   padding:4px 0 4px 0;
   color:#606060;
}

#navigation ul.nav2nd a.current,
#navigation ul.nav2nd a.current:link,
#navigation ul.nav2nd a:hover {
   color:#090;
   text-decoration:underline;
}

/*   Headlines
------------------------------------------------------------------------------*/

/* Headline 1 */
#main-block h1 {
   color:#2C85BD;
   font-family:arial, helvetica, verdana, sans-serif;
   font-size:1.2 em;
   font-weight:bold;
   line-height:1.2 em;
}

#main-block .teaser h1 {
   font-size:1.0em;
}

/* Headline 2 */
#main-block h2 {
   color:#000;
   font-family:arial, helvetica, verdana, sans-serif;
   font-size:1.0em;
   font-weight:bold;
   line-height:1.0em;
}


/*   Paragraphs / Lists
------------------------------------------------------------------------------*/
#main-block p,
#main-block ul,
#main-block ol {
   margin-bottom:1.0em;
   font-size:1.0em;
   line-height:1.0em;
}
#main-block ul li ul,
#main-block ul li ol,
#main-block ol li ol,
#main-block ol li ul {
   font-size:1em;
}

#main-block ul {
   margin-left:14px;
   list-style-type:square;
}

#main-block ol {
   list-style-type:decimal-leading-zero;
}


/*   Hyperlinks
------------------------------------------------------------------------------*/
#main-block a, #main-block a:link {
   color:#090;
   text-decoration:underline;
}

#main-block a:hover {
   color:#000;
}



/*   Images
------------------------------------------------------------------------------*/
#main-block div.image {
   margin-bottom:0;
}
#main-block div.image p {
   margin:1.0;
   font-size:0.9em;
}
#main-block div.flLeft {
   margin-right:14px;
}
#main-block div.flRight {
   margin-left:14px;
}


/* form-module
*******************************************************************************/
#form-module * {
   padding:0px;
   margin:0px;
}

#form-module {
   margin:0px;
   padding:0px;
   width:520px;
   background-color:#ffffff;
   color:#666;
   font-family:verdana, arial, helvetica, sans-serif;
   font-size:1.0em;
}

#form-module fieldset {
   border:0px solid #fff;
}

#form-module legend {
   display:none;
}


#form-module p {
   margin:0;
   padding:5px;
   font-size:1em;
   font-weight:bold;
}

#form-module .element {
   display:block;
   clear:both;
   background-color:#ffffff;
   border-top:2px solid #fff;
}

#form-module label {
   display:block;
   float:left;
   padding:5px;
   width:120px;
   border-right:2px solid #fff;
}

#form-module label.checkbox {
   width:372px;
   border-left:2px solid #fff;
   border-right:none;
}

#form-module input,
#form-module select,
#form-module textarea {
   float:left;
   margin:5px;
   width:295px;
   border:1px solid #333;
}

#form-module input.text {
   height:20px;
}

#form-module input.checkbox {
   width:120px;
   padding:0;
   border:none;
}

#form-module input.submit {
   margin:5px 5px 5px 137px;
   padding:2px 5px;
   border:1px solid #333;
   background-color:#fff;
   color:#666;
   font-family:verdana, arial, helvetica, sans-serif;
   text-align:center;
   cursor:pointer;
}

#form-module input.submit:hover {
   background-color:#ffffff;
   color:#000;
}

#form-module label.textarea,
#form-module textarea.textarea {
   height:96px;
}

#form-module-thanks {
   display:block;
   color:#666;
   font-family:verdana, arial, helvetica, sans-serif;
   font-size:1.2em;
}


/* download
*******************************************************************************/
#main-block .download-hdl p,
#main-block .download-file p,
#main-block .download-desc p {
   margin:0;
}
#main-block .download-hdl p {
   padding:5px 7px;
   background-color:#393;
   font-weight:bold;
   color:#fff;
}

#main-block .download-file {
   padding:1.2em 7px;
   border-left:2px solid #393;
   border-right:2px solid #393;
}

#main-block .download-desc {
   margin-bottom:1.2em;
   padding:1.2em 7px;
   background-color:#e5ffe5;
   border-left:2px solid #393;
   border-right:2px solid #393;
   border-bottom:2px solid #393;
}

#main-block .download-without-desc {
   margin-bottom:1.2em;
   border-top:2px solid #393;
}
yogi
 
Beiträge: 15
Registriert: 30. Dez 2005, 15:21

Beitragvon svenalbert » 6. Jan 2006, 09:23

such mal nach dem hier.
Code: Alles auswählen
/*   Headlines
------------------------------------------------------------------------------*/



da hast du als ersten eintrag das.
Code: Alles auswählen
/* Headline 1 */
#main-block h1 {
   color:#2C85BD;
   font-family:arial, helvetica, verdana, sans-serif;
   font-size:1.2 em;
   font-weight:bold;
   line-height:1.2 em;
}



schreib einfach ein
Code: Alles auswählen
margin: 0 0 20px 0;

dazu. em angaben funktionieren glaube ich auch.

falls du sonst noch einen rand brauchst, die werte beginnen oben und gehen dann im uhrzeigersinn.

also
Code: Alles auswählen
margin: oben rechts unten links;



Sven
Benutzeravatar
svenalbert
 
Beiträge: 1295
Registriert: 24. Nov 2005, 16:21
Wohnort: Clausthal-Zellerfeld / lower saxony

Beitragvon yogi » 6. Jan 2006, 10:25

Vielen Dank für deine Hilfe !

Hat problemlos geklappt :)
yogi
 
Beiträge: 15
Registriert: 30. Dez 2005, 15:21


Zurück zu Templates/Navigationen [R3]

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast

cron