Tekst verschillend uitlijnen

Status
Niet open voor verdere reacties.
Probeer deze eens
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Naamloos document</title>
<style type="text/css">
<!--
#datum {
	float: left;
	width: auto;
}
#tekst {
	float: right;
                width: auto;
}
-->
</style>
</head>

<body>
<table width="100%" style="border: 1px solid #0066CC">
<tr>
<td width="100%" height="18" bgcolor="#990000" >
<div id="datum">
<script src="scripts/datum.js">
</script></div>
<div id="tekst">
Korfbalvereniging VVO Hapert / sportpark de Lemelvelden / Burg. van
Woenseldreef / Hapert</div>
</td>
</tr>
</table> 
</body>
</html>

Zo kan het ook, twee cellen gebruiken in de rij een cel horizontaal links uitlijnen en een cel horizontaal rechts uitlijnen
Code:
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #0066CC">
<tr>
<td width="424" height="18" align="left" valign="top" bgcolor="#990000" >

<script src="scripts/datum.js">
</script></td>
<td align="right" valign="top" bgcolor="#990000" ><div align="right">Korfbalvereniging VVO Hapert / sportpark de Lemelvelden / Burg. van
  Woenseldreef / Hapert
  </div>
</div></td>
</tr>
</table>

Mvg
defietser
 
Laatst bewerkt:
Hoi,

Het is gelukt.

Dat van die twee cellen had ik ook bedacht maar ik vind je eerste oplossing eleganter.

Bedankt !!
 
Status
Niet open voor verdere reacties.
Steun Ons

Nieuwste berichten

Terug
Bovenaan Onderaan