1
Peekay
Add padding to images from image manager?
  • 2005/6/21 13:31

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


In advance of me trying it, does anyone know if it would be feasible to hack the image manager to add some inline CSS to automatically pad left and right aligned images added to the DHTML editor?

I know I can add some CSS to style.css to pad the image tag equally in the article body, but then images are pushed in too far from the left or right edges.

2
phppp
Re: Add padding to images from image manager?
  • 2005/6/21 13:38

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


It has been implemented in XOOPS 2.2 CVS

3
Peekay
Re: Add padding to images from image manager?
  • 2005/6/21 13:54

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Thx phppp, that's good to know. Do you think I would be able to hack the 2.0.10 imagemanager in the meantime with any success?

IMHO, with some nice CSS, the DHTML editor is fine for creating news and articles and it's cross browser and cross platform. Now if someone could just develop a version that inserts smilies at the cursor position and lets you highlight text and make it bold...

4
DonXoop
Re: Add padding to images from image manager?

I have the habit of adding white space to the image itself. That solves the problem for me until there is a system/css preference for this.

For the other problem it helps to learn a few of the common codes and just type them directly instead of using the editor buttons. Also much faster than grabbing the mouse all the time.

5
Peekay
Re: Add padding to images from image manager?
  • 2005/6/21 16:20

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


If you're happy with the same padding settings for every image (right, centre or left aligned) just add some CSS to style.css, e.g.

.itemText img {
padding2px 15px 10px 15px;
}

Login

Who's Online

441 user(s) are online (327 user(s) are browsing Support Forums)


Members: 0


Guests: 441


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