materializer icon indicating copy to clipboard operation
materializer copied to clipboard

card width going too wide

Open cckid opened this issue 9 years ago • 3 comments

I am having an issue where I have an image card that is going too wide. The image is just 160px wide but the card goes the whole width of the post div. I tried a width attribute but that didn't work. Any ideas?

cckid avatar Dec 01 '15 03:12 cckid

Hey @cckid, thanks for the report.

I can't think of anything off the top of my head, but let me look into it. It's gotta be some sizing with the image itself. Would you mind just sending over the basic short-code you're using so I can investigate?

CodyReichert avatar Dec 01 '15 17:12 CodyReichert

Hi Cody, Thanks for the quick reply! The shortcode was just copied and adjusted, it's as such: [card_img img="http://ecx.images-amazon.com/images/I/517aTTC-7pL.SL160.jpg "] Aeropress Coffee and Espresso Maker, the perfect coffee gift. $29.99 [link text="blue" to=" http://www.amazon.com/Aeropress-Coffee-and-Espresso-Maker/dp/tech-data/B0047BIWSK%3FSubscriptionId%3DAKIAJGR3KLZ7N6GENDFQ%26tag%3Dgiftideas0a1-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB0047BIWSK"]Buy on Amazon[/link] [/card_img]

Thanks for the plugin, it's great!

On Tue, Dec 1, 2015 at 12:31 PM, Cody Reichert [email protected] wrote:

Hey @cckid https://github.com/cckid, thanks for the report.

I can't think of anything off the top of my head, but let me look into it. It's gotta be some sizing with the image itself. Would you mind just sending over the basic short-code you're using so I can investigate?

— Reply to this email directly or view it on GitHub https://github.com/CodyReichert/materializer/issues/4#issuecomment-161041067 .

cckid avatar Dec 01 '15 18:12 cckid

Same issue. I see some CSS: card.small card.medium card.large but don't see where it gets ref

bubbleboy22 avatar Dec 07 '16 17:12 bubbleboy22