PDA

View Full Version : resize image in news


nawras
04-20-2010, 01:01 PM
hi

To minimize the Photo in the News

like that

http://img177.imageshack.us/img177/3316/36719193.png

from orginal size

http://img707.imageshack.us/img707/7530/96152938.png

put this css code in style



.news IMG
{
max-width: 25%;
height: expression(this.height > 1024 ? "1024px" : true);
width: expression(this.width > 100 ? "100px" : true);
border-left: 3px double #dadada;
border-top: 3px double #dadada;
border-right: 3px double #dadada;
border-bottom: 3px double #dadada;
}




and Search in adv_portal_newsbits template for $news[message] and replace it with


<div class="news IMG" align="right">$news[message]



done ...

Uber_Tiny
05-14-2010, 06:34 PM
Thank you very much, installed and working great! :)

Our Sponsors
 

chopper9
05-23-2010, 06:03 PM
"put this css code in style"

where is it exactly?

BlackThorn
05-24-2010, 12:42 AM
I when change that max-width: 25%; code replace with max-width: 50%; then it can be very fluid on block.

Our Sponsors
 

nawras
05-28-2010, 10:40 AM
"put this css code in style"

where is it exactly?

hi

http://img265.imageshack.us/img265/9260/75319729.png

I when change that max-width: 25%; code replace with max-width: 50%; then it can be very fluid on block.

This code is not compatible with Firefox

Try this


.news IMG
{
max-width: 80px;
border: 3px double #dadada;
margin-top: 1px;
margin-left: 5px;
float: right;
}


Result


http://img33.imageshack.us/img33/108/35256775.png

nawras
05-28-2010, 10:42 AM
Thank you very much, installed and working great! :)


Superrrr ;)

BlackThorn
05-28-2010, 11:07 AM
hi

http://img265.imageshack.us/img265/9260/75319729.png



This code is not compatible with Firefox

Try this


.news IMG
{
max-width: 80px;
border: 3px double #dadada;
margin-top: 1px;
margin-left: 5px;
float: right;
}


Result


http://img33.imageshack.us/img33/108/35256775.png

Ehhh, Thank you! It's okay now (:

bashsoft
07-12-2010, 07:47 AM
How do I can edit the images resize in vba v4 ?
كيف استطيع تطبيق هذا الشرح على الاصدار الرابع من المجلة

thanks 4 u
ولكم كل الشكر

ar2
07-23-2010, 08:00 AM
EDIT: Is it possible to algin text to top of the img?

5pac
07-26-2010, 04:00 AM
When problems occur, but the maximum is characteristic of the 0 to...

pictures do not appear..

asabet
07-27-2010, 08:45 PM
Thanks for sharing this. I didn't want to minimize, only to limit size to 512px. I used a modified version of what you posted. In case anyone else is looking, here's my version for vB3 and vB4:
* http://www.vbulletin.org/forum/showthread.php?t=247434
* http://www.vbulletin.org/forum/showthread.php?t=247437

arda71
08-07-2010, 10:03 AM
Bir sorunum var inşallah çözüme kavuşacak.
http://www.arsivm.com/hack.php burda gördüğünüz gibi konular düzgün çıkmıyor portalda bir yardımcı olurmusunuz...

nawras
09-12-2010, 11:07 AM
How do I can edit the images resize in vba v4 ?
كيف استطيع تطبيق هذا الشرح على الاصدار الرابع من المجلة

thanks 4 u
ولكم كل الشكر

I have never tested on version 4

لم اجربه على نسخة 4
ارجو المعذرة


EDIT: Is it possible to algin text to top of the img?

I do not think that :)

nawras
09-12-2010, 11:43 AM
Thanks for sharing this. I didn't want to minimize, only to limit size to 512px. I used a modified version of what you posted. In case anyone else is looking, here's my version for vB3 and vB4:
* http://www.vbulletin.org/forum/showthread.php?t=247434
* http://www.vbulletin.org/forum/showthread.php?t=247437


Tanks Asabet very much :)


Bir sorunum var inşallah çözüme kavuşacak.
http://www.arsivm.com/hack.php burda gördüğünüz gibi konular düzgün çıkmıyor portalda bir yardımcı olurmusunuz...


Sorry
I do not understand Turkish,but I understand you have a problem