How do I edit the size of my comic pages? URGENT

Can't find the answer to your question in the Knowledge Base? Post it here and we'll answer it as quickly as possible.

Moderator: Help Desk Team

Forum rules
About
This board is designated for Smack Jeeves related support. If you have a question about using the site or the forums, you've come to the right place.

Before Posting
Please browse/search the Knowledge Base & FAQs Forum for the answer to your problem before posting. It contains an extremely helpful, organized list of common help topics.

Got a Bug?
Post it in Bugs & Glitches, not here.

Rules

    1) Use descriptive titles for your threads. Example: "How do I upload comics?" Do not use vague titles like, "question," "HELP! ANYBODY??"

    2) Describe your problem in detail. Explain exactly what is wrong. Post images, screen shots, links, code snippets - whatever is relevant. The better the information you provide, the better the solution you will receive.

    3) One question per thread. Do not post multiple questions in one thread; that way, we can resolve questions individually. Make a new thread for each question you have, unless your questions are closely related.

    4) Be polite. The more polite you are, the more people will want to help you. Be patient, and we will help you find the solution to your problem.

If your question has been resolved, please say so. A thank you would also be nice. If your question has NOT been answered, say so in the original topic. If your topic has been moved to resolved, you may then AND ONLY THEN post a new topic regarding the same issue.

How do I edit the size of my comic pages? URGENT

Postby Hero of Grimland » January 5th, 2019, 6:35 pm

So I am doing managing the HTML for my comic: "Porcelain: Mist and Light"
I came across the template for {Comic_Page.WIDTH} and {comic_Page.HEIGHT}
However, what do I have to do to modify them? Where do I have to write the width and height that I want?
User avatar
Hero of Grimland
 
Posts: 5
Joined: September 18th, 2017, 10:25 pm

Re: How do I edit the size of my comic pages? URGENT

Postby eishiya » January 5th, 2019, 6:57 pm

{comic_Page.WIDTH} and {comic_Page.HEIGHT} are read-only values that just output your image's size, so you can ignore them.

Ideally, you should make sure your comic page is sized correctly before you upload it, so that the page is only as large as it needs to be and doesn't waste your readers' bandwidth. However, if you want to have a responsive layout or want to support retina displays, then you'll probably want to downscale your image using CSS instead of uploading a small image. The exact way to do so varies depending on your template, but for most templates, this CSS should work:
Code: Select all
#comic_image {
max-width: 800px;
height: auto;
}

(If you want to scale by height instead, then you'd want max-height: whatever and width: auto instead. The "auto" sizing just makes sure the page keeps its aspect ratio and doesn't get squished. Using max-width or max-height instead of width and height makes sure that smaller pages aren't scaled up, which usually doesn't look good.)

As with all CSS overrides, this code goes in the <style> element in your Overall Layout. If you don't already have one, you can create one in the head, e.g. right before the </head> end-tag.
Image
User avatar
eishiya
 
Posts: 9685
Joined: December 5th, 2009, 11:17 am

Re: How do I edit the size of my comic pages? URGENT

Postby Hero of Grimland » January 5th, 2019, 7:49 pm

Thank you!
User avatar
Hero of Grimland
 
Posts: 5
Joined: September 18th, 2017, 10:25 pm


Return to New Questions

Who is online

Users browsing this forum: No registered users and 1 guest