We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Vertical images - Facebook Go | Forum

Cico
Cico Apr 5 '14
Hi
If I upload Vertical format image to newsfeed,image is to big
I made on css
.ow_newsfeed_item_picture img {
    max-height: 380px;
    width: 100%;
}
On Firefox looks fine but on Chrome not
do you have better solution for that?
Attachments:
  Chrome.png (475.73Kb)
  FF-IE.png (278.52Kb)
Cico
Cico Apr 5 '14
Thanks for quick response

!important is not working
Kяuncн Leader
Kяuncн Dec 6 '14
You don't want to set a max-height. this will have ill desired effect to your width...



.ow_photo_attachment_stage, .ow_photo_attachment_pic.ow_attachment_preload {
background-color: transparent;
background-size: 100% auto;
border: medium none;
max-width: 120px;
width: 100%}

.ow_photo_attachment_pic.loading {
background-size: 16px 16px !important}

Note: set max-width to fit your need, mine per example below is set at 200px,...

.ow_newsfeed_item_picture img {
height: auto;
max-width: 200px !important}

Note: the extra provided .ow_photo_attachment_stage, .ow_photo_attachment_pic.ow_attachment_preload   -AND.ow_photo_attachment_pic.loading I provided have to do with the upload process/Look of the thumbnail, this is NOT needed to solve your issue at hand, I blame this need to provide extra's on a mental condition lol, or just maybe a stickler of sort for details,,, No-matter, Enjoy..
The Forum post is edited by Kяuncн Dec 6 '14
You do not have permission to reply this topic