Today I modified my blog's customer style sheet ,changed the layout of web page.
2 hrefs are inside a 'li' tag ,default style just show them in 2 lines,i write this css defines below to make the 2 links display in 1 single line:
#leftmenu li
{...}{
display:list-item;
font-size: 9pt;
margin-bottom: 5px;
}
#leftmenu a
{...}{
padding: 1px;
text-decoration: none;
}
#leftmenu a:active,
#leftmenu a:visited,
#leftmenu a:link,
#leftmenu a:hover
{...}{
display:inline-block;
text-decoration : underline;
color:006699;
}
there are 2 tips: a used 'display : inline-block;' to make the link display just as long as the length of link,and the li tag used "display :list -item",which make the 2 links in the "li" tag to display in 1 line.
that IS the blog article sort and rss link on the left of my blog, YOU SEE!!!


被折叠的 条评论
为什么被折叠?



