DeathRobot Posted May 2 Share Posted May 2 I have three pages that show examples of work. At the top of each page, there is either one or two text blocks with text navigation links, below that a spacer block, and below that another text block. On the two pages with one text navigation link, the spacer is larger than on the page with two text navigation links: I am using some CSS code on this page to reduce the height of the spacers, but even without that code the same issue occurs - both spaces are just larger but are still different sizes. When I'm editing the pages, all the similar blocks on each page appear to match in height. It's only once I'm viewing as a webpage that the differences show up. Also, on mobile, the text navigation is being split into two lines: Looking for a way to address these two issues, or learn a better way to create the navigation links. Thanks. https://musicorange.com/commercials https://musicorange.com/corporate-film Link to comment
tuanphan Posted May 3 Share Posted May 3 By default, Text Block has top/bottom padding, here, Commercial page has bottom padding. On Corporate Film Page, the padding disappear There are some solutions to fix this (1) Add padding to Corporate Film Page (2) Remove padding bottom on Commercial Page (3) Use Code Block to create this Navigation, I usually use this, I think it will will be faster more than use Text Block. But It will take some time to code it. You can consider and let me know. I will give you code. 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
DeathRobot Posted May 3 Author Share Posted May 3 Ok, that makes sense. Yes, I'd like to do it the way you think is best (with code). Please send that along. Will that code also help with the two nav links stacking on mobile? Link to comment
Solution DeathRobot Posted May 3 Author Solution Share Posted May 3 (edited) Actually, poking around for info on your idea I was able to fix it with: <div> <span style="float: left;"><a href="https://musicorange.com/commercials">< COMMERCIALS</a></span> <span style="float: right;"><a href="https://musicorange.com/other-work">OTHER WORK ></a></span> <div style="clear:both;"></div> </div> Edited May 3 by DeathRobot tuanphan 1 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