verhoej Posted June 12, 2012 Share Posted June 12, 2012 (edited) Hi, I have this piece of code for lining up vertically the socila media icons in a left column block. <center><a href="http://pinterest.com/byxanthe/" target="_blank"><img src="/winkel/modules/wcontent1/imgs/pinterest.png" alt="Pinterest"/></a></center> <center><a href="http://www.linkedin.com/pub/byxanthe-sieraden/4b/335/a15/" target="_blank"> <img src="/winkel/modules/wcontent1/imgs/linkedin.png" alt="LinkedIn"/></a><center> <center><a href="http://www.facebook.com/pages/ByXanthe/173409289432313/" target="_blank"> <img src="/winkel/modules/wcontent1/imgs/fb_1.png" alt="Facebook"/></a></center> <center><a href="http://twitter.com/#!/Byxanthe/" target="_blank"> <img src="/winkel/modules/wcontent1/imgs/twitter_1.png" alt="Twitter"/></a></center> Now i want to line them up horizontal....but cant get it to work. any help appreciated Edited June 12, 2012 by verhoej (see edit history) Link to comment Share on other sites More sharing options...
cocothecat Posted June 12, 2012 Share Posted June 12, 2012 (edited) It can be neater than this but try: <ul id="social"> <li><a href="http://pinterest.com/byxanthe/" target="_blank"><img src="/winkel/modules/wcontent1/imgs/pinterest.png" alt="Pinterest"/></a></li> <li><a href="http://www.linkedin.com/pub/byxanthe-sieraden/4b/335/a15/" target="_blank"> <img src="/winkel/modules/wcontent1/imgs/linkedin.png" alt="LinkedIn"/></a></li> <li><a href="http://www.facebook.com/pages/ByXanthe/173409289432313/" target="_blank"> <img src="/winkel/modules/wcontent1/imgs/fb_1.png" alt="Facebook"/></a></li> <li><a href="http://twitter.com/#!/Byxanthe/" target="_blank"> <img src="/winkel/modules/wcontent1/imgs/twitter_1.png" alt="Twitter"/></a></li> </ul> CSS #social li { display: inline; list-style-type: none; padding-right: 20px; } Obviously changing the right padding will alter the spcaing if one gets pushed onto the next line try to change the spcaing to 10px or less Edited June 12, 2012 by cocothecat (see edit history) Link to comment Share on other sites More sharing options...
verhoej Posted June 12, 2012 Author Share Posted June 12, 2012 thanks very much...it works Link to comment Share on other sites More sharing options...
cocothecat Posted June 12, 2012 Share Posted June 12, 2012 No problem glad I could help Link to comment Share on other sites More sharing options...
farnamjam Posted April 13, 2014 Share Posted April 13, 2014 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now