<li> Viereck in der td weiter nach links...

Status
Nicht offen für weitere Antworten.

Vaio82

Erfahrenes Mitglied
Hallo,

für alle Moderatoren: "Suche ergab keine Treffer"

ich habe eine Auflistung: (wird per include navi_rechts.. aufgerufen)

PHP:
<ul type="square">
<li style="color : #ff9900"><div style="color : black">Wie finden <br> (<a href="/home/umfrage.php?section=|00055">teilnehmen<a>)</div></li>
</ul>

und will das Viereck (<li>) weiter nach Links haben ca. 2-5px vom linken Rand weg.

meine Tabelle sieht so aus:

PHP:
<table border="0" cellspacing="0" cellpadding="0" width="206">
<tr>....
<td>....</td>
</tr>
<tr>
<td width="98" height="215" valign="top"><?php include $navigation_rechts ?></td>

Bisher habe ich es so versucht:

PHP:
<td width="98" height="215" valign="top" style="margin-left: 5.2in;"><?php include $navigation_rechts ?></td>

und so:

PHP:
<td width="98" height="215" valign="top" style="margin-left: 2px;"><?php include $navigation_rechts ?></td>

ebenfalls so:

PHP:
<P STYLE=margin-left: 5.2in>
<ul type="square">
<li style="color : #ff9900"><div style="color : black">Wie finden <br> (<a href="/home/umfrage.php?section=|00055">teilnehmen<a>)</div></li>
</ul>
</P>

und später noch mal per css:

PHP:
.lala        {margin-left: 5px; }




jedoch ohne Erfolg. Würde mich freuen, wenn mir da jemand helfen könnte :)

Gruß Claus

Nachtrag:

PHP:
<td width="98" height="215" valign="top" style="padding-left:3px;"><?php include $navigation_rechts ?></td>

geht auch nicht...
 
Zuletzt bearbeitet:
Hallo,

wie wäre es damit.

Code:
<ul type="square">

<li style="color : #ff9900; margin-left: 5px;"><div style="color : black">Wie finden <br> (<a href="/home/umfrage.php?section=|00055">teilnehmen<a> )</div></li>

</ul>


Mfg,
Alexander
 
Leider keine Chance :(

Wenn ich das im CSS unter "ul, li" definiere, klappt es, aber ich habe ja viele Listen auf der Seite und nur 5 Stück sollen weiter nach links!

Somit habe ich erneut eine id im CSS definiert, jedoch klappt das einfach nicht.

Hat noch jemand eine Idee?

Schönen Gruß
Claus
 
Arbeite mit einer eigenen Klasse:

Code:
.ul_left
{
	margin-left : 8px;
}

Und die Klasse weist Du dem <ul> Tag zu:

Code:
<ul type=square class=ul_left>
<li>Blablub
<li>Dumdidum
</ul>
 
Status
Nicht offen für weitere Antworten.
Zurück