I just wanna center a div!
I just wanna center a div!
Out of context: Reply #17
- Started
- Last post
- 39 Responses
- ETM0
CSS..call your id whatever you want, I used 'logoGrid':
#logoGrid { color: #000; }
#logoGrid ul {margin: 0; padding: 0;}
#CorpMembers ul li {
background: (insert you bg image)
list-style: none;
height: 120px;
width: 210px;
float: left;
line-height: 105px; << As mentioned above this should be tweaked and is likely not going to be exactly 120px.
vertical-align: middle;
}#logoGrid img {
border-style: none;
margin: auto;
}- ^ETM
- I likely made some errors doing that on my iPhone...but idea is there.ETM
- F*ck me... replace that errant CorpMembers ID with the logoGrid one.ETM
- thanks, will try thatProjectile