Highlighted

Pageitemposter style?

Participant ,
Nov 13, 2017

Copy link to clipboard

Copied

Can you add css to the pageitemposter ?

So rather than

<div><img  src="imageurl" style="height=#; width:#;"></div>

Can it be something like scale to fit?

<div id="imgposter"></div>

<style>

#imgposter {

background-image: url("imageurl");

background-size: cover;

height: #;

}

</style>

I'm basically trying to do the whole "scale to fit" in a preview image. So that way it can generate within the full preview box regardless if the builtin height or width

TOPICS
Mucow development

Views

380

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Pageitemposter style?

Participant ,
Nov 13, 2017

Copy link to clipboard

Copied

Can you add css to the pageitemposter ?

So rather than

<div><img  src="imageurl" style="height=#; width:#;"></div>

Can it be something like scale to fit?

<div id="imgposter"></div>

<style>

#imgposter {

background-image: url("imageurl");

background-size: cover;

height: #;

}

</style>

I'm basically trying to do the whole "scale to fit" in a preview image. So that way it can generate within the full preview box regardless if the builtin height or width

TOPICS
Mucow development

Views

381

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 13, 2017 0
Guide ,
Dec 04, 2017

Copy link to clipboard

Copied

The image poster is basically the widget container. You can reference it in CSS using #{param_itemUID} after using the <builtin name='itemUID' /> tag.

David

Creative Muse

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 04, 2017 0