1 (edited by Ledo 2008-05-06 18:38)

Topic: Image tag align-center

Is there any simple way to align pictures that we hotlink with img tag in the center of the post window?

I would like the center alingement as defolt.

And question b. Is there a way to size down pictures (attached with img tag) so that they would fit in a window of defolt size.

I dont want to give user any upload priveleges. But it would be nice if moderator could upload image to the server if he wants.

Where do i begin. And what is possible and what not. Im not a coder but i will try if i can do it myself.

Security is no1. If its not secure then i dont want the option and is better not to have it.

I searched the forum and found i think 3 gallery typs for punbb. One i think is obsolete. Can anybody advice me wich one does not affect database (so no post would be lost if something happens with gallery or if i use punbb with the same database backup on another server).

I use latest PunBB 1.3 and will stay 1.3 user beacose of UTF8 support. Is any script like that made as an extension and not as an mod for 1.3 allready? I didn't find any.

2 (edited by orlandu63 2008-05-06 23:32)

Re: Image tag align-center

add this to your CSS file:

.entry-content img {
max-width: 100%
}

.entry-content a img {
margin: 0 auto
}

that should work for questions 1 and 2.

3 (edited by Ledo 2008-05-07 10:35)

Re: Image tag align-center

orlandu63 wrote:

add this to your CSS file:

.entry-content img {
max-width: 100%
}

.entry-content a img {
margin: 0 auto
}

that should work for questions 1 and 2.

Did that but nothing happened. I put the lines in all .css files.