Re: center image
Sascha Welter <[email protected]>
| Newsgroups | gmane.comp.python.zope.coreblog.english |
|---|---|
| Message-ID | <[email protected]> |
(Fri, Mar 11, 2005 at 09:13:13AM +0100) Matthias Teege wrote/schrieb/egrapse:
> I have a simple question. How do I center a image with coreblog and html.
>
> I try <img src="foo.jpg" align="center"> but in the output the text
> flows arround the image. I only need text before and after the image.
> I use Coreblog 1.1, Safari and Firefox.
The alignment and flow of the image is defined in the CSS with something
like:
.entry img {
float: left;
margin: 0 1em 1em 0;
}
Since the CSS overrides the html alignment, your change has no effect.
What you would need is something like:
<img src="foo.jpg" style="float: none; align: center;">
If this is for just one image, otherwise change the CSS ("style_css").
Regards,
Sascha
--
http://betabug.ch/blogs/ch-athens
_______________________________________________
COREblog-en mailing list
COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected]