Mein Stylesheet

Mein Stylesheet

Beitragvon Vigi » 28.07.2007, 00:37

Hallo zusammen!

Ich bräuchte wenn möglich mal Hilfe. Ich möchte nämlich neben den "Hauptblock" meiner Homepage noch einen kleineren setzen (ähnlich wie hier: http://www.komodomedia.com). Nur weis ich nicht, wie ich das machen muss, dass ich das so hinkrieg. Wäre nett, wenn mir jemand helfen könnte...
Hier mal das CSS-Script:
Code: Alles auswählen
/* Elements */

body {
   background: #4C4C4C;
   margin-top: 50px;
   text-align: justify;
   color: #4C4C4C;
   font: 11px Tahoma, Arial, Helvetica, sans-serif;
}

h2, h3 {
   margin-top: 0px;
   color: #383838;
}

h2 {
   font-size: 16px;
}

h3 {
   margin: 0;
   font-size: 14px;
}

h4, h5, h6 {
}

p, ol, ul, dl, blockquote {
   margin-top: 0;

}

a {
   color: #2B2B2B;
}

a:hover {
   text-decoration: none;
}

/* Header */

#header {
   width: 600px;
   height: 27px;
   margin: 0 auto;
   background: url(images/img1.gif);
}

#header h1 {
   float: left;
   margin: 0;
   padding: 50px 0 0 20px;
   font-size: 32px;
   line-height: 0px;
}

#header h2 {
   float: right;
   margin: 0;
   padding: 45px 20px 0 0;
   font-size: 14px;
}

#header a {
   text-decoration: none;
   color: #000000;
}

.img1 {
   float: left;
   margin: 3px 15px 0px 0px;
}

/* Menu */

#menu {
   width: 580px;
   height: 30px;
   margin: 0 auto;
   padding: 0 10px;
   background: url(images/img3.gif);
}

#menu ul {
   width: 58ßpx;
   height: 30px;
   margin: 0;
   padding: 0;
   background: #333333;
   list-style: none;
}

#menu li {
   display: inline;
}

#menu a {
   display: block;
   float: left;
   padding: 10px 12px 5px 12px;
   border-left: 1px solid #666666;
   text-transform: uppercase;
   text-decoration: none;
   text-align: center;
   font-size: 12px;
   font-weight: bold;
   color: #FFFFFF;
}

#menu a:hover {
   background: #CCCCCC;
   color: #000000;
}

#menu .first a {
   border: none;
}

/* Content */

#content {
   width: 580px;
   margin: 0 auto;
   padding: 10px 10px 0 10px;
   background: url(images/img3.gif);
}

#colTwo {
   float: right;
   width: 160px;
   padding: 0 15px 0 0;
}

#colOne {
   float: left;
   width: 299px;
   padding: 0 0 0 15px;
}

/* Footer */

#footer {
   width: 600px;
   height: 30px;
   margin: 0 auto;
   padding: 30px 0 0 0;
   background: url(images/img4.gif) no-repeat;
}

#footer p {
   margin: 0px;
   text-align: center;
   color: #2B2B2B;
}

Und das ungefähre Layout: http://www.cursed-ninja.de.vu
Vigi
neu hier
 
Beiträge: 1
Registriert: 28.07.2007, 00:24

Beitragvon UCas » 09.08.2007, 00:45

so mach ich das immer

zuerst mach ich nen container:

Code: Alles auswählen
#container
{
width: 100%;
margin: 0px;
padding: 0px;
float: left;
background-image: url(pic/back.jpg);
}


dann den body teil

Code: Alles auswählen
#main
{
padding: 0px;
float: right;
width: 580;
margin: 0px;
text-align: left;
}


und dann einen für die navi

Code: Alles auswählen
#navi
{
float: left;
width: 220px;
margin: 0px;
padding: 0px;
}


theoretisch kannst du nun beliebig viele teile machen,
die du dann im quell innerhalb von "div navi" hast,...


gruß, UCas
UCas
neu hier
 
Beiträge: 2
Registriert: 06.08.2007, 01:09
Wohnort: Dudweiler


Moderatoren: Laus, Moderatoren

Ähnliche Beiträge zu "Mein Stylesheet"

Zurück zu: Fragen zur Homepage

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste

cron