I am having trouble putting list items inline

I have some list items with anchor tags, that are set to display block with background images and I am trying to set them up to display inline but right now they only stack on each other. The ul is being generated by wordpress. When I inspect the li's they fill the entire parent div, but I'm not sure why. [link][1] to active site password: springy88 CSS .nav-bar li {display: inline; font-size: 2.66em;} .shop a{background-image:url('../images/shopFull.png'); width:209px; height: 74px; display:block; text-indent:-9999px; overflow:hidden;} .shop a:hover { background-position: 0 -30px; } .services a{background-image:url('../images/servicesFull.jpg'); width:209px; height: 74px; display:block; text-indent:-9999px; overflow:hidden;} HTML [1]: http://goodmorningmoon.ca

以上就是I am having trouble putting list items inline的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏