Astaraiche Posted September 11 Share Posted September 11 Site URL: https://learningenglishwithjames.com/idioms I am using the Archive block list layout grouped by tag to show all my blog posts, but the title links are appearing across 5 columns on the Desktop view. This means that some of the titles display across 2 lines and I only want them to appear on a single line. Is there a way in CSS to prevent the text from wrapping across 2 lines or making each column wider so only say 3 columns appear? I don't want the font size smaller than 14px, and I want the Mobile view to stay as a single column list. The only CSS I'm using at the moment for this section is: /* Archive tag list */ #block-yui_3_17_2_1_1725971050311_6906 .archive-group-name-link {font-size: 14px !important} Link to comment
Solution tuanphan Posted September 13 Solution Share Posted September 13 You can use this to Website Tools > Custom CSS @media screen and (min-width:768px) { #block-yui_3_17_2_1_1725971050311_6906 .archive-group-list { column-count: 3 !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Astaraiche Posted September 19 Author Share Posted September 19 Hi! This worked for the Desktop view but the Mobile view is now showing 2 columns instead of a one column. How do just change the Desktop view? Link to comment
Astaraiche Posted September 19 Author Share Posted September 19 Hi! I reduced the width of the text block in the Mobile view and this has now reduced the number of columns to just one. Link to comment
tuanphan Posted September 20 Share Posted September 20 On 9/19/2024 at 2:53 PM, Astaraiche said: Hi! This worked for the Desktop view but the Mobile view is now showing 2 columns instead of a one column. How do just change the Desktop view? This code target Desktop Only. If it affect desktop + mobile, you can keep the code then let me know, I will check again Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment