Recent Topics

1 Jun 14, 2007 17:16    

My b2evolution Version: 0.9.x

Hello :D

I would like to put an image in a post and have the words appear along side it much like a magazine layout allows words right next to a photo and then moves back over to the margin under the image as it gets past it.

Do you have a code for that possibility that b2evolution blog will take?

You know, I think that's probably the only pet peeve I ever had about b2evolution. The post wording had to be either on top or under but could never be beside the image. I hope from the time I've been away, some genius came up with a way to grant my one wish. I hope, I hope.

Thank you.

kat

2 Jun 14, 2007 17:38

One thing you could do, that sadly is not part of the stock package, is make your image tags call for a class of either leftmargin or rightmargin. Like this:

<img src="whatever" alt="whatever" width="whatever" height="whatever" class="leftmargin" />

Assuming your skin does the includes that are typically part of a skin you will find that text flows around your image - instead of being forced beneath it.

In case your skin does not automagically include the rsc/css/whatever-it-is file, meaning if you do an image that way and it doesn't work, you can add this to your skin's style sheet:

img.leftmargin {
	float:left;
	margin-right:1ex;
	margin-top:.2ex;
	margin-bottom:.2ex;
}

img.rightmargin {
	float:right;
	margin-left:1ex;
	margin-top:.2ex;
	margin-bottom:.2ex;
}

Don't forget to do a hard refresh of the page to force your stylesheet to be pulled anew (instead of using your browser's cache)!

3 Jun 14, 2007 17:55

EdB wrote:

One thing you could do, that sadly is not part of the stock package, is make your image tags call for a class of either leftmargin or rightmargin. Like this:

<img src="whatever" alt="whatever" width="whatever" height="whatever" class="leftmargin" />

THAT'S IT!! You did it!! I can't believe it!! :>>

I've struggled with that for so long. It works for rightmargin as well.

Thank you sooooo much! :D :D

I know, I know...simple minds are easily pleased. :oops: ;)

4 Jun 14, 2007 21:16

Cool! I was thinking of programming something to do the same thing!
Thanks for the info!

5 Jun 15, 2007 00:18

Vicks wrote:

Cool! I was thinking of programming something to do the same thing!
Thanks for the info!

Cool is right. :D It puts the icing on the cake for b2evolution.


Form is loading...