wie bekomme ich die zwei spalten nebeneinander

wie bekomme ich die zwei spalten nebeneinander

Beitragvon mol38 » 07.12.2006, 12:41

hallo leute;
bin neu in css und bastel etwas rum. verstehe nur nicht wie ich die zwei tabellen nebeneinander bekomme . vileicht könnt ihr mir helfen

danke mol
Code: Alles auswählen
<DOCTYPE>
<html>
<head>
<meta>
<title>Unbenanntes Dokument</title>
<link>
<style>
/*
----------Allgemeine Einstellungen----------
*/
*
{
padding:10;
margin:0;
}     
body
{
   font: 14px "Trebuchet MS", verdana, arials, sans-serif;
   color: #000;
   background: #ccc;
   background-color: #6aa7bd;
   
}
p
{
margin: 1em 0;
}
a.anker
{
float: left;
text-decoration: none;
color: #fff;
}
hr
{
background: #aaa; /* Mozilla 1.4 */
color: #aaa; /* IE 6 */
border: #aaa; /* Opera 7.11 */
height: 1px; /* in Opera f&uuml;r die Anzeige n&ouml;tig, in Mozilla f&uuml;r die einheitliche H&ouml;he */
margin: 0 0 30px 0;
}
h2
{
font-size: 40px;
}
/*
----------Header-----------------------------
*/
#header
{
height: 90px;
line-height: 85px;
background: #0099ff;
font-size: 18px;
color: #eaeaea;
padding-left: 45px;
list-style: url(../logo.gif) outside square;
}
#header span
{
font-weight: normal;
color: #000;
}
/*
----------Navigation-------------------------
*/
ul#navigation
{
float: left;
margin: 65px 0 0 30px;
width: 200px;
list-style: none;
border-top: 1px solid #333;
}
ul#navigation li
{
text-align: center;
}
ul#navigation li a
{
display: block;
height: 27px;
width: 200px;
line-height: 27px;
text-decoration: none;
color: #333;
border-bottom: 1px solid #333;
}
ul#navigation li a:hover
{
background: #6aa7bd;
color: #eaeaea;
}
/*
----------Inhalt----------
*/
#content
{
padding: 10px;
margin: 0px 0 0px 200px;
}
#content2
{
padding: 10px;
margin: 0px 0 30px 250px;
}
/*
----------Footer------------
*/
p#footer
{
widht:350;
height: 400px;
line-height: 20px;
background: #ffffff;
text-align: center;
}
#Layer1 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:1;
   left: 414px;
   top: 92px;
}
#Layer2 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:2;
   left: -2px;
   top: -14px;
}
#Layer3 {
   position:left;
   width:200px;
   height:115px;
   z-index:1;
   left: 3px;
   top: 21px;
   visibility: visible;
}
#Layer4 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:1;
}
#Layer5 {
   position:left;
   width:200px;
   height:115px;
   z-index:3;
   left: 696px;
   top: 123px;
}
#Layer6 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:1;
   background-image: url(su.jpg);
}
#Layer7 {
   position:absolute;
   width:197px;
   height:115px;
   z-index:3;
   left: 7px;
   top: 403px;
}
#Layer8 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:1;
   left: 30px;
   top: 153px;
}
#Layer9 {
   position:absolute;
   width:128px;
   height:115px;
   z-index:1;
   left: 755px;
   top: 37px;
}
</style>
<if>
<style>
ul#navigation{
margin-left: 0px;
}
ul#navigation li a
{
margin-left: -20px;
voice-family:"\"}\"";
voice-family:inherit;
margin: 0px;
}
</style>
<endif>
</head>

<body>
<body>
<table>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<div><img></div>
<h1>&nbsp;</h1>
          
<div>
  <ul>
    <li><a>Home</a></li>
    <li><a>PC-Service</a></li>
    <li><a>Datenrettung</a></li>
    <li><a>Webdesign</a></li>
    <li><a>Kontakt</a></li>
    <li><a>Impressum</a></li>
    <li><a>Impressum</a></li>
  </ul>
</div>
<div>
  <div>Willkomen auf unser Internetpr&auml;senz </div>
 
</div>
     <div>
  <div>
    <p>rechts</p>
    <p>&nbsp;</p>
    <p>i</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
  </div>
</div>     
<p>gnfvbgjnghjghjghjghjghjhgjghj
<p>
<p>

<p>
<p>&nbsp;</p>
</body>
</html>

css
*
{
padding: 0;
margin: 0;
}

body
{
font: 14px "Trebuchet MS", verdana, arials, sans-serif;
color:#000;
background: #ccc;
}

h2
{
font-size: 10px;
}

h3
{
font-size: 18px;
}

p
{
margin: 1em 0;
}
#header
{
height:0px;
width:958;
background: #0099ff;
font-size: 18px;
line-height: 85px;
color: #0099ff;
padding-left: 45px;list-style: url(images/logo.gif) outside square;

}
ul#navigation
{
float: left;
margin:0px 0 0 0px;
width: 200px;
list-style: none;
border-top: 1px solid #333;
border-bottom:1px solid #6aa7bd;
}

ul#navigation li
{
text-align: center;
}

ul#navigation li a
{
display: inline;
height: 27px;
width: 200px;
line-height: 27px;
text-decoration: none;
color: #333;
border-bottom: 1px solid #333;
}

ul#navigation li a:hover
{
background: #bbb;
color: #eaeaea;
}
#content
{
padding: 0px;
margin: 50px 0 30px 250px;
}
#content2
{
float:right;
padding: 0px;
margin: 0px 0 0px 0px;
width:100px;
height:50px;
}

p#footer
{
height: 0px;
line-height: 1px;
background: #0066ff;
text-align: center;
}
mol38
neu hier
 
Beiträge: 10
Registriert: 07.12.2006, 12:34

Beitragvon Laus » 07.12.2006, 14:47

Hallo
verstehe nur nicht wie ich die zwei tabellen nebeneinander bekomme

Welche 2 Tabellen, ich sehe nur eine?

Gruß Xaver
Lachen ist kein schlechter Anfang und bei weitem das beste Ende.
(Oscar Wilde)
Benutzeravatar
Laus
Moderator
 
Beiträge: 1229
Registriert: 25.02.2006, 00:30
Wohnort: Furth im Wald

Beitragvon mol38 » 08.12.2006, 11:47

hallo xaver, erstmal danke für deine antwort.
ich meinte zwei container neben einander , hatte mich falsch aus gedrückt sorry.
wollte links menue mitte text und rechts nen container für login únd text
hoffe nun habe ich mich richtig ausgedrückt.

gruß mol
Code: Alles auswählen
<DOCTYPE>
<html>
<head>
<meta>
<title>Unbenanntes Dokument</title>
<link>
<style>
/*
----------Allgemeine Einstellungen----------
*/
*
{
padding:10;
margin:0;
}     
body
{
   font: 14px "Trebuchet MS", verdana, arials, sans-serif;
   color: #000;
   background: #ccc;
   background-color: #6aa7bd;
   
      
}
p
{
margin: 1em 0;
}
a.anker
{
float: left;
text-decoration: none;
color: #fff;
}
hr
{
background: #aaa; /* Mozilla 1.4 */
color: #aaa; /* IE 6 */
border: #aaa; /* Opera 7.11 */
height: 1px; /* in Opera f&uuml;r die Anzeige n&ouml;tig, in Mozilla f&uuml;r die einheitliche H&ouml;he */
margin: 0 0 30px 0;
}
h2
{
font-size: 40px;
}
/*
----------Header-----------------------------
*/
#header
{
height: 138px;
line-height: 85px;
background: #0099ff;
font-size: 18px;
color: #eaeaea;
padding-left: 45px;
list-style: url(../logo.gif) outside square;
background-image:url(logo.png)}
#header span
{
font-weight: normal;
color: #000;
}
/*
----------Navigation-------------------------
*/
ul#navigation
{
float: left;
margin: 65px 0 0 30px;
width: 200px;
list-style: none;
border-top: 1px solid #333;
border-i
}
ul#navigation li
{
text-align: center;
}
ul#navigation li a
{
display: block;
height: 27px;
width: 200px;
line-height: 27px;
text-decoration: none;
color: #333;
border-bottom: 1px solid #333;
}
ul#navigation li a:hover
{
background: #5296b4;
color: #eaeaea;

}
ul#navigation li a:active
{
background: #5296b4;
color: #eaeaea;
}
/*
----------Inhalt----------
*/
#content
{
padding: 10px;
margin: 0px 0 0px 200px;
}
#content2
{
float:right;
padding: 10px;
margin: 0px 0 30px 250px;
}
/*
----------Footer------------
*/
p#footer
{
widht:350;
height: 400px;
line-height: 20px;
background: #ffffff;
text-align: center;
}
#Layer1 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:1;
   left: 414px;
   top: 92px;
}
#Layer2 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:2;
   left: -2px;
   top: 80px;
}
#Layer3 {
   position:left;
   width:200px;
   height:115px;
   z-index:1;
   left: 3px;
   top: 21px;
   visibility: visible;
}
#Layer4 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:1;
}
#Layer5 {
   position:left;
   width:200px;
   height:115px;
   z-index:3;
   left: 696px;
   top: 123px;
}
#Layer6 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:1;
   background-image: url(su.jpg);
}
#Layer7 {
   position:absolute;
   width:197px;
   height:115px;
   z-index:3;
   left: 7px;
   top: 403px;
}
#Layer8 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:1;
   left: 30px;
   top: 153px;
}
#Layer9 {
   position:absolute;
   width:128px;
   height:115px;
   z-index:1;
   left: 755px;
   top: 37px;
}
#Layer10 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:3;
   left: 771px;
   top: 48px;
}
#Layer11 {
   position:absolute;
   width:200px;
   height:115px;
   z-index:1;
   left: 605px;
   top: 147px;
}
.Stil1 {color: #000066}
</style>
<if>
<style>
ul#navigation{
margin-left: 0px;
}
ul#navigation li a
{
margin-left: -20px;
voice-family:"\"}\"";
voice-family:inherit;
margin: 0px;
}
</style>
<endif>
</head>

<body>
<body>
<h1>&nbsp;</h1>
          
<div>
  <ul>
    <li><a>Home</a></li>
    <li><a>hallo</a></li>
    <li><a>hallo1</a></li>
    <li><a>hallo2</a></li>
   <li><a>hallo3</a></li>
    <li><a>hallo4</a></li>
    <li><a>hallo5</a></li>
    <li><a>hallo6</a></li>
  </ul>
</div>
<div>
  <div>Willkomen auf unser Internetpr&auml;senz </div>
 
</div>
     <div>
  <div>
    <p>rechts</p>
    <p>&nbsp;</p>
    <p>i</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
  </div>
</div>     
    <p>
   
    <p>
<p>

<p>
<p>&nbsp;</p>
</body>
</html>


und der css

*
{
padding: 0;
margin: 0;
}

body
{
font: 14px "Trebuchet MS", verdana, arials, sans-serif;
color:#000;
background: #ccc;
}

H1,H2,H3 {
color : #000;
font: 1.2em "Arial","Verdana",sans-serif;
}

H2 {
font-size : 1.1em;
}

H3 {
font-size : 1.0em;
}


p
{
margin: 1em 0;
}
#header
{
height:0px;
width:958;
background: #0099ff;
font-size: 18px;
line-height: 85px;
color: #0099ff;
padding-left: 45px;list-style: url(images/logo.png) outside square;

}
ul#navigation
{
float: left;
margin:0px 0 0 0px;
width: 150px;
list-style: none;
border-top: 1px solid #333;
border-bottom:1px solid #6aa7bd;
}

ul#navigation li
{
text-align: center;
}

ul#navigation li a
{
display: inline;
height: 27px;
width: 150px;
line-height: 27px;
text-decoration: none;
color: #333;
border-bottom: 1px solid #333;
}

ul#navigation li a:hover
{
background: #bbb;
color: #6aa7bd;
}
#content
{
padding: 0px;
margin: 50px 0 30px 500px;
}
#container1{
background:#ffffff;
}


p#footer
{
height: 0px;
line-height: 1px;
background: #ffffff;
text-align: center;
}
mol38
neu hier
 
Beiträge: 10
Registriert: 07.12.2006, 12:34

Beitragvon shitzo » 13.06.2007, 00:41

gibt es die Seite irgendwo auf nem Server? Etwas schwer durchzublicken, da die vergebenen ID`s hier nicht angezeigt werden.
Benutzeravatar
shitzo
Gelegenheitsleser
 
Beiträge: 19
Registriert: 19.05.2007, 20:56
Wohnort: Stade


Moderatoren: Laus, Moderatoren

Ähnliche Beiträge zu "wie bekomme ich die zwei spalten nebeneinander"

Zurück zu: Fragen zur Homepage

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast

cron