Toon posts:

Vraagje over css (img align="absmiddle")

Pagina: 1
Acties:

Verwijderd

Topicstarter
ik wil bandbreedte besparen maar css laat het niet toe

wat is mijn probleem

[img]"SOURCE[/img] werkt wel

maar als ik in de style sheet dit zet

img { align:absmiddle } werkt niet waarom niet als ik vertical-align:middle gebruikt dat heeft niet de zelfde effect als align="absmiddle" in de img tag

iemand een oplossing ??

  • dominic
  • Registratie: Juli 2000
  • Laatst online: 15-09 20:25

dominic

will code for food

Je moet de VerticalAlign gebruiken, de volgende waardes zijn hierop van toepassing:
auto Aligns the contents of an object according to the value of the layout-flow attribute.
baseline Default. Aligns the contents of an object supporting VALIGN to the base line.
sub Vertically aligns the text to subscript.
super Vertically aligns the text to superscript.
top Vertically aligns the contents of an object supporting VALIGN to the top of the object.
middle Vertically aligns the contents of an object supporting VALIGN to the middle of the object.
bottom Vertically aligns the contents of an object supporting VALIGN to the bottom of the object.
text-top Vertically aligns the text of an object supporting VALIGN to the top of the object.
text-bottom Vertically aligns the text of an object supporting VALIGN to the bottom of the object.
Toepassing:

HTML { vertical-align : sAlign }
Scripting object.style.verticalAlign [ = sAlign ]

Download my music on SoundCloud