Formatting suggestion

Introductions, Rules, Announcements, and Feedback
Post Reply
rsk
Asternaut
Posts: 2
Joined: Fri Apr 02, 2021 2:39 pm

Formatting suggestion

Post by rsk » Fri Apr 02, 2021 2:56 pm

One thing I find difficult about the APOD formatting is the explanation is allowed to use the entire width of the page, which can be hard to read. It should be relatively simple to fix the HTML by changing

Code: Select all

  <p>
    <b>Explanation</b>
      ...
to:

Code: Select all

  <p style="width: 45em; max-width: 100%; margin: auto;">
    <b>Explanation</b>
      ...
I chose that width as it felt like a good trade-off between too long and too short and specified it in em's as that is widely supported by browsers. Another possible change which makes it looks a bit nicer would be to justify the text:

Code: Select all

  <p style="width: 45em; max-width: 100%; margin: auto; text-align: justify;">
    <b>Explanation</b>
    ...

Note: there are other ways to do the styling but given the simplicity of the page, inline styles should be fine.

samuel

rsk
Asternaut
Posts: 2
Joined: Fri Apr 02, 2021 2:39 pm

Re: Formatting suggestion

Post by rsk » Sat Apr 03, 2021 3:48 am

P.S. I'm happy to make any necessary changes if I can be pointed at the code.

User avatar
geckzilla
Ocular Digitator
Posts: 9180
Joined: Wed Sep 12, 2007 12:42 pm
Location: Modesto, CA
Contact:

Re: Formatting suggestion

Post by geckzilla » Thu Apr 22, 2021 8:59 pm

I highly recommend using a browser addon that will let you add your own CSS. It's a bit tricky because there are no classes or IDs defined, but you look like you can figure it out.
Just call me "geck" because "zilla" is like a last name.

HarryLeo
Asternaut
Posts: 6
Joined: Mon Dec 06, 2021 8:49 am

Re: Formatting suggestion

Post by HarryLeo » Mon Dec 06, 2021 8:56 am

its so simple format easy o understand

Post Reply