1
calvinhobbes
how to make content flow around images in news?

..Err how to make content flow around images or google adsense code in news articles ?

do i have to use the other editors fck / koivi etc? ..i am just using the simple ones rite now..and i cant do it

2
JMorris
Re: how to make content flow around images in news?
  • 2006/11/19 14:53

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


There are two ways you can do this. You can either use and inline style [hard way], or you can define a class in your stylesheet [easy way].

Inline style
<div style="float:right;margin:2px;">div>


Class defined in style.css
.gads {float:right;margin:2px;}


HTML in news template
<div class="gads">div>


HTH.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
WarDick
Re: how to make content flow around images in news?
  • 2006/11/19 15:06

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


I use the vspace and hspace attributes of the image tag along with align left or right. You can do this with most of the wysiwyg editors. This is easier if you are not comfortable with CSS.
Urging XOOPS to be the Best It Can Be.
Richard......

4
calvinhobbes
Re: how to make content flow around images in news?

..Thanks guys :) works great

5
Peekay
Re: how to make content flow around images in news?
  • 2006/11/27 16:22

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


If you don't want news authors to use HTML - but you do want them to use the image manager - you can set up a class in style.css that pads text away from images whether they are left or right aligned.

.itemText img padding0 15px 10px 15px }
A thread is for life. Not just for Christmas.

Login

Who's Online

359 user(s) are online (292 user(s) are browsing Support Forums)


Members: 0


Guests: 359


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits