Aligning text blocks
-
Hello. On my ‘Blog’ page, I’ve used positioning to move the excerpt blog text so it lines up under the centred heading and feature picture, because it looked odd starting to the left. However, this now means tablet and mobile users have to scroll. How can I make it so the ‘invisible box’ the excerpt fills always spans the same width as the featured pictures?
Also, on the Prices page I find the copy looks too wide. Is there any way I can reduce the text area so it’s only 700px wide or so, either left or centre aligned, but so it works on tablet and mobile devices too?
Thanks.
The blog I need help with is: (visible only to logged in users)
-
Since Sketch is a responsive width theme, typically you will use either percentage widths, or max-widths so that the content can flow and change for smaller screens. In your custom CSS, locate
.wf-active .entry-content
and change the “width” to “max-width” and all should be good to go. -
Amazing, thank you. On the Prices page, how can I centre this whole block? Text-align obviously just centres the text…
-
Also, is there a way to make it so this code only applies to the Prices page, and not all the other pages/projects?
-
Hi there, on centering the content on the Prices page only, add the following CSS, which specifically targets that particular page by the unique page body class.
.page-id-590 .entry-content { margin-left: auto; margin-right: auto; } -
-
- The topic ‘Aligning text blocks’ is closed to new replies.