The styling is different in local development versus published to Github Pages. #6059
-
DescriptionHere is my Blog's repository. This is my local development view with As you can see the blog listings are centered on the page. Below is a picture of my email newsletter form in local development. It has a gray button and it is centered. Below is the view when you go to my blog hosted on Github Pages with the same QMD and CSS files. It is off center to the left. Below is the picture of my email newsletter form it is off center to the left and the button is white and off in alignment with the text box. I am not sure what is going on here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
You could try inspecting the elements in the developer tools of your browser, specifically to look at the list of computed styles. |
Beta Was this translation helpful? Give feedback.
I think that the issue is that the 'grid' isn't a per page option - there is a shared grid for the entire website. When it is placed on a page like this and served with the preview server, the local, individual page render will override the grid and appear fine in the preview (it's basically 'last page wins'). When rendered or deployed, however, it will use a shared grid definition provided by the site (from the
website
key).If you have other pages that use the grid layout (and so don't want to set the sizes globally to 0px), you can use article layout to position the listing across the columns, like: