Adjusting width of about page templates #3190
Unanswered
nurfatimaj
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You can use special CSS rules: @media(max-width: 991.98px){
...
} See https://www.w3schools.com/css/css3_mediaqueries.asp and some other online examples/documentation about this. Also, why don't you change the default width CSS attributes for this layout by modifying the page layout (https://quarto.org/docs/output-formats/page-layout.html)? Setting FYI, the default specific SCSS for the template you are interested in is: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I like using the
trestles
template for my about page. However, I find the default width to be too narrow (by the way, I couldn't get broadside template to load the about image 🤷🏽♀️).I was wondering if somebody knows a good way to adjust the width of the template to the desired level in a way that it would also work nicely with different screen sizes?
I managed to get a different width by controlling the
flex-grow
,flex-shrink
andflex-basis
CSS properties of.about-contents
and.about-entity
classes. Here, are the lines from my styles.css fileHowever, these do not work very well with some screen sizes. When it is fairly large, but not full-screen, the text remains too wide and a user needs to scroll the page horizontally. For smaller screen sizes it adapts nicely without a problem.
I'd appreciate any tip!
Beta Was this translation helpful? Give feedback.
All reactions