Autor Beitrag
Schüler
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 183



BeitragVerfasst: Do 05.10.06 16:12 
Hi ich habe vor Kurzem mit HTLM angefangen und hätte da mal eine Frage wie ist der Befehl wenn ich die Position eines Bildes verändern möchte.
THX im Voraus Schüler

_________________
Das Leben ist ein Scheiß Spiel aber es hat eine hammer Grafik und grenzt an realismuss.
Waldteufel
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 05.10.06 16:16 
Hi Schüler.

Da gibts mehrere, schau mal unter de.selfhtml.org/css/...n/positionierung.htm, ob da was passendes für dich dabei ist.

Gruß,
Waldteufel

PS: Es heißt übrigens HTML (Hyper Text Markup Language) und nicht HTLM (Hyper Text Larkup Manguage :gruebel:).
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Do 05.10.06 16:22 
Ich geh mal davon aus, dass du HTML (Hypertext Markup Language) meinst.
Das geht mit HTML überhaupt nicht, dazu brauchst du JavaScript.
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
<head>
<script language="JavaScript">
function moveright()
{
window.document.images[x].left=img1.left+1;
}

x durch die Nummer des Bildes in der Seite ersetzen.
Dann durch <a name="bild" mouseover="moveright()"><img...></a>
aufrufen. Der Umweg über das <a>-Element ist nötig, weil <img> AFAIK kein mouseover-Attribut besitzt.
Ich geh mal davon aus, das dieser Code nicht ganz funktionieren wird, weil irgendwo ein kleiner Fehler steckt. Das geht mir mit JavaScript immer so...
Näheres zu HTML und JavaScript unter de.selfhtml.org.

//EDIT: Meinst du jetzt, wie man die Position verändert=das Bild bewegt? Dann stimmt mein Code. Oder meinst du, wie du statt der Standardpositionierung eine eigene angeben kannst? Dann stimmt der Link von Waldteufel.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 05.10.06 16:27 
user profile iconTimosch hat folgendes geschrieben:
Das geht mit HTML überhaupt nicht, dazu brauchst du JavaScript.

Falsch, das geht wunderbar mit HTML, am besten mit HTML und CSS zusammen. SelfHTML ist da der richtige Ansatzpunkt.
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Do 05.10.06 16:28 
Änderst du bitte den Titel, sodass man auch weiß, worum es geht? ;)
Zum Topic: geht das nicht auch mit css (div, li usw) ?

//edit: zu langsam..
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Do 05.10.06 16:45 
user profile iconUGrohne hat folgendes geschrieben:
user profile iconTimosch hat folgendes geschrieben:
Das geht mit HTML überhaupt nicht, dazu brauchst du JavaScript.

Falsch, das geht wunderbar mit HTML, am besten mit HTML und CSS zusammen. SelfHTML ist da der richtige Ansatzpunkt.

Siehe das Fettgedruckte unten in meinem Post. Die Frage ist: Geht es hier um Positionierung (zur Entwurfszeit) oder Positionsveränderu, also Bewegung (runtime)?

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 05.10.06 17:15 
user profile iconTimosch hat folgendes geschrieben:
Siehe das Fettgedruckte unten in meinem Post. Die Frage ist: Geht es hier um Positionierung (zur Entwurfszeit) oder Positionsveränderu, also Bewegung (runtime)?

Als ich Deinen Post gesehen hab, hattest Du ihn noch nicht editiert.
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Do 05.10.06 17:18 
user profile iconUGrohne hat folgendes geschrieben:
user profile iconTimosch hat folgendes geschrieben:
Siehe das Fettgedruckte unten in meinem Post. Die Frage ist: Geht es hier um Positionierung (zur Entwurfszeit) oder Positionsveränderu, also Bewegung (runtime)?

Als ich Deinen Post gesehen hab, hattest Du ihn noch nicht editiert.

Oh, tschuldigung. Tut mir leid.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 05.10.06 18:07 
user profile iconTimosch hat folgendes geschrieben:
Oh, tschuldigung. Tut mir leid.
Mir auch. Aber jetzt zurück zum Thema, falls da noch etwas unklar sein sollte ;)
rizor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 209

WIN XP
Delphi 2005 PE, Visual C++
BeitragVerfasst: Do 05.10.06 18:25 
Du kannst das Bild auch mit left und top verschieben.
Left definiert den Abstand vom Linken Rand zum Bild und top halt von oben.
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 05.10.06 18:40 
user profile iconrizor hat folgendes geschrieben:
Du kannst das Bild auch mit left und top verschieben.
Left definiert den Abstand vom Linken Rand zum Bild und top halt von oben.

Du solltest aber dazusagen, dass das CSS ist und nur innerhalb des style-Attributs geht :
ausblenden Quelltext
1:
<img src="..." style="left:100px;top:100px"/>					

Genauso wie es im Link zu SelfHTML des ersten Posts steht.
alcaeus
half ontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 226



BeitragVerfasst: Fr 06.10.06 00:21 
user profile iconUGrohne hat folgendes geschrieben:
Du solltest aber dazusagen, dass das CSS ist und nur innerhalb des style-Attributs geht

Und dann afair auch nur unter Angabe eines Werts fuer position..also fixed, relative, oder absolute.

Greetz
alcaeus