cellspacing für eine Zeile?

Status
Nicht offen für weitere Antworten.

Pencil

Gesperrt
hy, ich würde gern meine letzte Spalte ganz rechts haben(meine erste soll ganz links bleiben:

hier ist mein quelltext..:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<table border="1" cellspacing="10" >
<tr>
<td>Return to Castle Wolfenstein
</td>
<td>News
</td>
<td>Medal of Honour: Allied Assault
</td>
</tr>
<tr>
<td>News
</td>
</tr>
<tr>
<td>Allgemeines
</td>
</tr>
<tr>
<td>Story
</td>
</tr>
<tr>
<td>Singleplayer
</td>
</tr>
<tr>
<td>SP-Cheats
</td>
</tr>
</tr>
<tr>
<td>Eastereggs
</td>
</tr>
</table>
</body>
</html>

Wie mache ich das richtig?

Medal of Honour soll ganz rechts stehen

hope you help

:(
 
Ich versteh das Problem nicht ganz! Die Spalten sind doch immer ganz links bzw. ganz rechts!?!?:(
Wenn du den Text rechts bzw. links ausrichten willst geht das doch ganz einfach mit

Code:
<td align="right">BLABLA</td>

Ich weiß aber echt nicht, ob das das ist was du meinst.
Wenn nicht musst du das nochmal genauer erklären. :)
 
ich meine das soll alles über die ganze fläche verteilt sein...:(

die ganze tabelle...

und dazu soll die mittlere spalte die größte sein..

hope you help

:-(
 
na dann musst du doch einfach eine gewisse breite für die Spalten festlegen.Entweder prozentual oder absolut.
Also:

Code:
<table width="100%">
        <tr>
          <td width="10%" align="left">Bla</td>
          <td  width="80%">Mitte</td>
          <td width="10%" align="right">Bla</td>
        </tr>
      </table>

meintest du das so??
 
ich brauche nochmal hilfe

also die eine Zeile in der 2. spalte soll jetzt die ganze 2. Spalte ausfüllen




das eine News soll praktisch unter RTCW und das andere unter MOHAA und wie gesagt das News in der Mitte soll die ganze Spalte bis nach unten hin "besetzen"

hier mein Quellcode:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<table border="1" width="100%">
<tr>
<td width="10%">Return to Castle Wolfenstein</td>
<td width="80%"> News </td>
<td width="10%">Medal of Honour: Allied Assault </td>
</tr>
<tr>
<td>News</td>
<td>News</td>
</tr>
<tr>
<td>Allgemeines
</td>
</tr>
<tr>
<td>Story
</td>
</tr>
<tr>
<td>Singleplayer
</td>
</tr>
<tr>
<td>SP-Cheats
</td>
</tr>
</tr>
<tr>
<td>Eastereggs
</td>
</tr>
</table>
</body>
</html>


wie geht das:(

hope you help

:rolleyes:
 
Also zuerst, wenn du bei der Tabellenbreite 100% angibst, sollte bei den Zellen bei der Breite auch 100% rauskommen. Fehldarstellungen sind sonst nämlich vorprogrammiert.

Wenn du zwei Spalten hast, aber nur eine davon über die Breite geht, so solltest du beide Spalten verbinden.
Möglich ist das mit "rowspan".
Beispiel:
<td rowspan="2">Diese zwei Zeilen wurden miteinander verbunden</td>
 
100% breite.. steht doch da 10,80,10(das ist glaub ich 100, soweit mich meine mathe künste nicht täuschen;) )

also rospawn funzt net.. ich habe den quelltext jetzt so:


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" text="#FFFFFF">
<br>
<table border="0" width="100%">
<tr>
<td width="10%">Return to Castle Wolfenstein</td>
<td width="80%" >Counter </td>
<td width="10%">Medal of Honour: Allied Assault </td>
</tr>
<tr>
<td bgcolor="#034003">News</td>
<td rospawn="7">News</td>
<td bgcolor="#034003">News</td>
</tr>
<tr>
<td bgcolor="#034003">Allgemeines
</td>
<td>
</td>
<td bgcolor="#034003">Allgemeines
</td>
</tr>
<tr>
<td bgcolor="#034003">Story
</td>
<td></td>
<td bgcolor="#034003">Story
</td>
</tr>
<tr>
<td bgcolor="#034003">Singleplayer
</td>
<td></td>
<td bgcolor="#003333">1. Level
</td>
</tr>
<tr>
<td bgcolor="#003333">SP-Cheats
</td>
<td></td>
<td bgcolor="#003333">2. Level
</td>
</tr>
</tr>
<tr>
<td bgcolor="#003333">Eastereggs
</td>
<td></td>
<td bgcolor="#034003">Singleplayer
</td>
</tr>
<tr>
<td bgcolor="#034003">Multiplayer
</td>
<td></td>
<td bgcolor="#003333">Eastereggs
</td>
</tr>
<tr>
<td bgcolor="#003333">(In-)Gamebrowser
</td>
<td></td>
<td bgcolor="#003333">Egoshooter Neuerungen
</td>
</tr>
<tr>
<td bgcolor="#003333">Das HUD
</td>
<td></td>
<td bgcolor="#003333">Cheats
</td>
</tr>
<tr>
<td bgcolor="#003333">Activity Icons</td>
<td></td>
<td bgcolor="#034003">Multiplayer
</td>
</tr>
<tr>
<td bgcolor="#003333">Das Limbomenü
</td>
<td></td>
<td bgcolor="#034003">Waffen
</td>
</tr>
<tr>
<td bgcolor="#003333">Das Punktesystem
</td>
<td></td>
<td bgcolor="#034003">Konsole
</td>
</tr>
<tr>
<td bgcolor="#003333">Tipps
</td>
<td></td>
<td bgcolor="#034003">Mapbeschreibung
</td>
</tr>
<tr>
<td bgcolor="#034003">Waffen
</td>
<td></td>
<td bgcolor="#034003">Shots
</td>
</tr>
<tr>
<td bgcolor="#034003">Konsole
</td>
<td></td>
<td bgcolor="#034003">Die Presse
</td>
</tr>
<tr>
<td bgcolor="#003333">Info
</td>
<td></td>
<td bgcolor="#034003">Downloads
</td>
</tr>
<tr>
<td bgcolor="#003333">Performance
</td>
<td></td>
<td bgcolor="#034003">Foren
</td>
</tr>
<tr>
<td bgcolor="#003333">Demos
</td>
<td></td>
<td bgcolor="#003333">Öffentlich
</td>
</tr>
<tr>
<td bgcolor="#003333">Internetspiel
</td>
<td></td>
<td bgcolor="#003333">Intern
</td>
</tr>
<tr>
<td bgcolor="#034003">Mapbeschreibung
</td>
<td></td>
<td bgcolor="#034003">Links
</td>
</tr>
<tr>
<td bgcolor="#003333">Assault/Beach
</td>
<td></td>
<td bgcolor="#034003">Umfragen
</td>
</tr>
<tr>
<td bgcolor="#003333">Castle/Communique
</td>
<td></td>
<td bgcolor="#034003">Staff
</td>
</tr>
<tr>
<td bgcolor="#003333">Depot/Destruction
</td>
</tr>
<tr>
<td bgcolor="#003333">Sub/Village
</td>
</tr>
<tr>
<td bgcolor="#003333">DBS/Carnage Canyon
</td>
</tr>
<tr>
<td bgcolor="#003333">Flooded Town/Bridge
</td>
</tr>
<tr>
<td bgcolor="#034003">Mods
</td>
</tr>
<tr>
<td bgcolor="#003333">Journey into the Dark
</td>
</tr>
<tr>
<td bgcolor="#003333">Resident Evil
</td>
</tr>
<tr>
<td bgcolor="#003333">Special Forces
</td>
</tr>
<tr>
<td bgcolor="#003333">Wolftactics
</td>
</tr>
<tr>
<td bgcolor="#003333">No Man's land
</td>
</tr>
<tr>
<td bgcolor="#003333">Lost in Time
</td>
</tr>
<tr>
<td bgcolor="#034003">Die Presse
</td>
</tr>
<tr>
<td bgcolor="#034003">Downloads
</td>
</tr>
<tr>
<td bgcolor="#034003">Foren
</td>
</tr>
<tr>
<td bgcolor="#003333">Öffentlich
</td>
</tr>
<tr>
<td bgcolor="#003333">Intern
</td>
</tr>
<tr>
<td bgcolor="#034003">Links
</td>
</tr>
<tr>
<td bgcolor="#034003">Umfragen
</td>
</tr>
<tr>
<td bgcolor="#034003">Staff
</td>
</tr>
</table>
</body>
</html>


hope you help



;-)
 
Noch weitere Fragen

1. Wie heisst nochmal der Befehl für den Kopf einer Tabelle(bitte sagt mal.. mir ist er entfallen)
2. Wie mache ich es das ein Link nicht unterstrichen ist
3. Wie mache ich ein Onmouseover bei Hintergrundfarben in einer Tabelle? hat jemand nen beispiel?

hope you help

;-)
 
zu 1:
Code:
<th> ... </th> <!-- table head -->


zu 2:
Code:
<style type="text/css">
<!--
    a:link  // das gleiche mit a:active, a:hover und a:visited
    {
        text-decoration: none;
    }
-->
</style>


zu 3:
Code:
<table onMouseOver="this.bgColor='123456';" onMouseOut="this.bgColor='';"> ... </table>

regrets,
wicked
 
Status
Nicht offen für weitere Antworten.
Zurück