Ronaldo
Ronaldo

Reputation: 367

li border doesn't keep around element

I'm trying to build a menu without sucess. I'm trying to set a border to all my li elements, but the border has kept on bottom. How can I turn the border all around my li element?

take a look at my code: http://jsfiddle.net/KByqr/

Upvotes: 1

Views: 117

Answers (2)

RhinoWalrus
RhinoWalrus

Reputation: 3089

Set a border-width. A border-width, border-color, and border-style are necessary. ie: border:1px solid black;

Upvotes: 3

Praveen Kumar Purushothaman
Praveen Kumar Purushothaman

Reputation: 167172

Remove the -bottom from these two lines:

border-bottom-style: solid;
border-bottom-width: medium;

Make them:

border-style: solid;
border-width: medium;

Fiddle: http://jsfiddle.net/KByqr/2/

Upvotes: 1

Related Questions