开发者

how to align buttons in css/html in one line horizontally?

开发者 https://www.devze.com 2023-02-06 05:32 出处:网络
I am having difficulty aligning SNS b开发者_如何学Cuttons using CSS on this page giantmango.com/news.I am using the exact css and html, but I cannot align giantmango.com/news SNS buttons like the gian

I am having difficulty aligning SNS b开发者_如何学Cuttons using CSS on this page giantmango.com/news. I am using the exact css and html, but I cannot align giantmango.com/news SNS buttons like the giantmango.com ones.


If you talk about social netoworks buttons, then you can make the first to be upper adding margin-top: -8px; for #content .mixi in style.css


Try this:

  • Set the width of the UL element to something that would fit all LI elements (e.g. if each of the LI element is 20px wide and there are 5 elements, the UL element should be at least 100px.) You should also consider the padding and margin of each of the UL element and add that to the total width of the UL element.

  • Set the style of the LI element to: li { float: right; }

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号