You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setting the values in the conversion, this already worked but I added the default unit of % when one doesn't exist
setting the img width/height in CSS on the client
for 2, this PR will remove the automatic scaling to 100% of possible width: #140
@iansk I'll leave it up to you to decide whether that's something that applies everywhere, the implication being that the images may not fill the entire width of a section/page, and authors should explicitly define them
iansk
changed the title
[AsciiDoctor conversion] Image scaling
[AsciiDoc conversion] Image scaling
Sep 30, 2023
Setting the
width
andheight
attributes in the AsciiDoctor source has no effect on the size of the image in the HTML output.AsciiDoctor input:
https://github.com/hlxsites/prisma-cloud-docs/blob/7102ef810abaa445ed92c9c36a017701e356f856/docs/en/compute/pcee/admin-guide/welcome/test-asciidoc.adoc?plain=1#L64-L91
Relevant code:
Franklin output:
https://main--prisma-cloud-docs-website--hlxsites.hlx.page/prisma/prisma-cloud/en/compute/pcee/admin-guide/welcome/test-asciidoc?branch=ian/test-asciidoc
Scroll down to the section "Image sizing". Notice that all images are the same size. The second and third images should be scaled down in size.
Reference info:
The text was updated successfully, but these errors were encountered: