Hallo Besucher!
Du bist neu im Forum? Dann registriere dich hier, um Diskussionen beizutreten oder eigene Themen zu erstellen. Für die Registrierung ist es erforderlich, dass du einen Spielaccount bei Die Stämme hast.
Andernfalls kannst du dich hier direkt einloggen.
Falls du dein Passwort vergessen hast, kannst du hier ein neues Passwort anfordern.
<style type="text/css">
/* Float:left */
img.floating {
float:left;
}
</style>
the_content();
<div class="wp-caption alignright" style="width: 209px;"><a href="http://mactreffmuenchen.files.wordpress.com/2009/01/google.jpg"><img title="#" src="#" alt="Hallo" height="300" width="199"></a><p class="wp-caption-text">Hallo</p></div>
div.wp-caption {
background-color: #4F667F;
text-align: center;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
float:left;
margin: 5px 5px 5px 5px;
}
<div id="content">
<?php the_content(); ?></div>
<div id="content">
<div class="wp-caption alignright" style="width: 209px;">
<a href="http://mactreffmuenchen.files.wordpress.com/2009/01/google.jpg">
<img title="#" src="#" alt="Hallo" height="300" width="199">
</a>
<p class="wp-caption-text">Hallo</p>
</div>
<?php the_content(); ?>
</div>
<img title="#" src="#" alt="Hallo" height="300" width="199">
<img title="#" src="#" alt="Hallo" style="height:300px; width:199px;">
Also wenn ich das nun richtig verstanden hab, sieht das bei dir zur Zeit in etwa so aus:
PHP:<div id="content"> [S] <div class="wp-caption alignright" style="width: 209px;"> <a href="http://mactreffmuenchen.files.wordpress.com/2009/01/google.jpg"> <img title="#" src="#" alt="Hallo" height="300" width="199"> </a> <p class="wp-caption-text">Hallo</p>[/S] </div> <?php the_content(); ?> </div>
Stimmt das so?
Nein, das the_content; gibt unter anderem das aus:PHP:<div class="wp-caption alignright" style="width: 209px;"> <a href="http://mactreffmuenchen.files.wordpress.com/2009/01/google.jpg"> <img title="#" src="#" alt="Hallo" height="300" width="199"> </a> <p class="wp-caption-text">Hallo</p>
Und der CSS-Teil kann ja nicht alles sein...
In dem Code sind ist ja .wp-caption alignright und .wp-caption-text drin, aber nicht .wp-caption
.wp-caption = .wpcaption alignright / left / usw., oder? Ich kann ja in CSS nicht schreibenCode:.wpcaption alignright {}[/CODE, oder?[/COLOR] Außerdem erlaub ich mir gleich mal, dich daraufhinzuweisen, dass man [html]<img title="#" src="#" alt="Hallo" height="300" width="199">[/html] besser als [html]<img title="#" src="#" alt="Hallo" style="height:300px; width:199px;">[/html] schreibt ;) Vor allem die Einheit (px, oder was auch immer...) nicht vergessen ;D[/QUOTE] Der CSS-Teil, der das betrifft, um was es geht ist das: [CODE]p.wp-caption-text { text-align: center; } div.wp-caption { background-color: #4F667F; text-align: center; -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; float:left; margin: 5px 5px 5px 5px; }
Wenn du die gesamte CSS sehen willst: http://muddle.eknoes.de/blog/wp-content/themes/Schwarz-zu-Blau/style.css
Nein, das the_content; gibt unter anderem das aus:
PHP:<div class="wp-caption alignright" style="width: 209px;"> <a href="http://mactreffmuenchen.files.wordpress.com/2009/01/google.jpg"> <img title="#" src="#" alt="Hallo" height="300" width="199"> </a> <p class="wp-caption-text">Hallo</p>
.wp-caption = .wpcaption alignright / left / usw., oder? Ich kann ja in CSS nicht schreiben, oder?Code:.wpcaption alignright {}
Und: Also legt er dann .wp-caption und .alignright sozusagen zusammen, und nimmt das als Style, was da zusammen rauskommt?
Ok, dann hab ich euch, oder ihr mich vllt. falsch verstanden: Das kann ich ändern Aber was könnte ich denn darin ändern, das es was bingt? :mrgreen:
div.post {
float: left;
}
p.wp-caption-text {
text-align: center;
}
div.wp-caption {
background-color: #4F667F;
text-align: center;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
float:left;
}
div.alignright {
float: right;
}
div.alignleft {
float: left;
}
div.alignnone {
float: none;
}
<div class="post"<?php the_content(); ?></div>
<div class="post">