I’m currently working on a website for a client, and now I’m making an plan section with different versions of the product. The problem is that I don’t know how to place all the buttons 40px below the column with the biggest text in a responsive way (without position:absolute, with hidden lines of text or with margins with line-heights etc.).
Here an image from Photoshop (how I want it to be)
And an image of how it actually is in my code (the problem)
I hope you guys understand what I’m trying to say and that you can help me! I think it’s in this case not necessary to add my code, but if I’m wrong please tell me 😉 I’m very curious how you guys fix this!
Frederick
3
Answers
You are facing this problem as the height automatically adjust itself.
To solve this problem put each content inside div tag and then adjust individual margin-bottom.
I use Zurb Foundation “Equalizer” for this sometimes, but there is another way to do it as shown below.
HTML
Wrap the “features” text in a div container and the “ecommerce” elements in another div container.
CSS
Then add a media query for larger screens (in this case, medium screens and up) with a fixed height for the “features” div container. This will allow the buttons to line up on large screens, and basic stacked blocks on small screens (responsive part):
Here’s my CodePen example
You need to declare a min-height in css around the top links.
See this link:
http://codepen.io/artchibald/pen/yJkYLW