![]() |
[html] bild positionieren
Also ich würde gerne auf der Start seite meiner homepage rechts oder links (das weiß ich noch nicht) ganz unten am ende der seite ein bild haben.
Aber wie kann ich das bild so in den quellcode einfügen, dass es IMMER in der rechten oder linken Ecke der Seite ist. Egal welche Auflösung der Benutzer hat und egal wie groß er sein browserfenster gezogen hat. Ich hab so was schon mal auf ner seite gesehen, daher weiß ich dass es geht, aber nicht wie es geht. Kann mir wer helfen? [edit] Und wie kann ich einen Text bzw. ein bild immer genau in der Mitte der Seite anzeigen lassen? [/edit] |
Re: [html] bild positionieren
XML-Code:
<div width="100%" height="100%">
[img]...[/img] </div> |
Re: [html] bild positionieren
Links:
<div align="left">[img]bild.jpg[/img]</div> Rechts: <div align="right">[img]bild.jpg[/img]</div> Mitte: <div align="center">[img]bild.jpg[/img]</div> |
Re: [html] bild positionieren
Noch besser:
Code:
Ist nicht getestet, sollte lauf SelfHTML aber funktionieren.
<style type="text/css">
body { background-image:url(deine_url); background-repeat:no-repeat; background-position:right bottom; background-attachment:fixed; } Greetz alcaeus |
Re: [html] bild positionieren
Wow. Danke für die schnellen Antworten.
Kann ich die letzte methode auch irgendwie verwenden wenn ich bereits ein anderes hintergrundbild eingestellt habe? |
Re: [html] bild positionieren
Zitat:
|
Re: [html] bild positionieren
Wie wärs damit:
[img]deinbild[/img] wenn dus links haben willst und [img]deinbild[/img] wenn dus rechts haben willst |
Re: [html] bild positionieren
Die letzt genannte methode funktioniert bei mir nicht :-(
edit: Die Seite in die ich das einbauen will sieht wie folgt aus:
Code:
[edit=Admin]Beitrag auf Wunsch des Autors editiert. Mfg, Daniel[/edit]
<?php ?>
<style type="text/css"><!-- body { font-family:Verdana; font-size:10px; background-color:#FFFFFF; background-image:url("usedfiles/background.jpg"); } h1 {font-size:18px;color:#000000;margin-bottom:0px;} h2 {font-size:14px;color:#000000;} h3 {font-size:14px;color:#000000;} td {font-size:10px;} p {margin-top:0px;} input {font-family:Verdana;font-size:10px;border:1px solid gray;padding:1;margin-top:1; margin-bottom:1} textarea {font-family:Verdana;font-size:10px;border:1px solid gray;padding:1;margin-top:1; margin-bottom:1} select {font-family:Verdana;font-size:10px;border:1px solid gray;padding:1;margin-top:1; margin-bottom:1} a:link, a:visited, a:active, a:hover { text-decoration:none; font-weight:bold; color:#634142; font-size:10px; } a:active, a:hover { text-decoration:underline; } #title { height:34px; padding:5px; border-bottom:1px solid #000000; margin-bottom:20px; } #left, #right { width:14%; line-height:18px; } #left { float:left; } #right { float:right; } .menutitle { font-weight:bold; border-top:1px dashed #000000; margin-top:15px; } #content { float:left; width:66%; margin-left:3%; } #Fusszeile { clear: both; font-size: 0.9em; margin: 0; padding: 0.1em; text-align: center; border: 1px solid silver; } //--></style> <title>Page V2.0 - Endlich auch InternetExplorer fähig</title> </head> <body> <div id="title"> [img]usedfiles/urllogo_v3.gif[/img] <h1>Die erste Version der Page V2.0</h1></div> <div id="left" style="clear:right;"> <?php include ("links.htm")?> </p> </p> </div> <div id="right"> <?php include("rechts.htm"); ?> </p> </p> </div> <div id="content"> <?php if (isset($show) == false) $show = 'news.php'; include ($show); ?> </p> </p> </div> <div id="fusszeile"> (c) 2006 <?php include ("maincounter.php");?> </div> </body> </html> [edit=Admin] Mfg, Daniel[/edit] |
Re: [html] bild positionieren
Zitat:
|
Re: [html] bild positionieren
nope, meflin.
er verschiebt bottom und right an den rand des bildschirms, nicht left und top. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:28 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz