Responsive UL lists
I'm a newcomer to web development & design and I'm having a spot of bother with creating a responsive ul list.
The site I'm working uses the 1140 grid and has a ul in the footer. In particular I'm having difficulty centring the ul and getting it to stay centre when the browser is resized and it eventually overlaps the resized div.
An example of the code I have been experimenting with is attached below. Does it just need a few tweaks or are there any better solutions? Any advice is gratefully received!!!
<title>Rugby Player Positions</title>
font-size: 1.5em; /* 25px/16px */
font-size: .75em; /* 12/16 */
margin: 0px auto; /*auto centers the container */
padding: 3.27251308901%; /* 25/1140 */
/*CSS3 multiple columns.*/
/* Get em size for colums: 232/16 */
-moz-column-width: 14.5em; /* Firefox */
-webkit-column-width: 14.5em; /* webkit, Safari, Chrome */
/*remove standard list and bullet formatting from ul*/
/* correct webkit/chrome uneven margin on the first column*/
.columns ul li:first-child
<h1>Rugby Player Positions</h1>
<li>Looose Head Prop</li>
<li>Tight Head Prop</li>
Hm, that example seems to do what you want in Chrome at least. What browser are you testing this in?
It works in Safari and Chrome. As Firefox can be squashed in more than Safari, it gives me the impression that the ul wouldn't look good when viewed on a phone.
Mobile design is a bit more complex than that. By default on an iPhone, for example, if you don't do anything specifically for mobile you will essentially get the desktop view (I tested it, and it appeared very small, with 4 columns). You need things like @media rules to change the display on a mobile device (or at least a smart phone).
Originally Posted by designclash