For positioning 6 different elements on a webpage, I've experimented with various methods:
I initially tried stacking two unordered lists vertically but faced issues with scaling when stretching the page. Another attempt was using a table, but I struggled to center all elements within their respective tds.
Here's the CSS for my unordered lists:
.button ul {
height: auto;
list-style: none;
}
.button li {
display: inline-block;
list-style: none;
margin: 0 18% 0 0;
padding: 0;
vertical-align: top;
}
which is enclosed within:
.newfooterright {
float: left;
width: 33.333333%;
top: 0%;
left: 0%;
height: 250px;
padding: 0 0 0 0;
margin: 0;
font-family: RobotoLight;
text-decoration: none;
text-transform: none;
font-size: 1.5em;
text-align: center;
color: #ffffff;
vertical-align: middle;
}
Refer to this jsFiddle for the implementation: jsFiddle for unordered list
It seems an unordered list might be suitable... but aligning all elements in the center of each li poses a challenge. The bottom elements appear stuck in the bottom right corner of li. Since these are Google+, Twitter, and Facebook widgets, this may affect their position.
In essence, the elements should:
- Adjust spacing based on window width (considering padding-right or margin-right)
- Maintain alignment between top and bottom elements as they scale
- Positioned as depicted in the image!
If you have any suggestions for cleaner positioning, please share!
Many thanks!