开发者

How to fix the size of a tag "li"?

开发者 https://www.devze.com 2023-03-11 08:20 出处:网络
I\'m trying to create a menu like this or this. But I am trying all ways to fix the size of the tag \"read\" but I can not.

I'm trying to create a menu like this or this.

But I am trying all ways to fix the size of the tag "read" but I can not. I'm in the beginning, to see where I am. Not开发者_Python百科ice that when the user hovers the tag "a" changes the background color.

Please, if you can change the code and show me how.

Thanks.


Use display:inline-block; instead of inline.


Your problem is that you've specified display:inline; and styled it from that point, you'll have to remove that, or change to inline-block like they said, and re-style your menu.


You cant declare width for an inline li , use

display:inline-block;
0

精彩评论

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