user3432257
user3432257

Reputation: 415

css border is not show although I make it

This is my html code

<div id="vertical-chart-total-calls-statuses" class="chart-holder" style="border:10px #000">
                        <canvas class="overlay" width="478" height="265"></canvas>
                    </div>

I draw the canvas using a library.

My problem is that the div vertical-chart-total-calls-statuses doesn't have a border. why please?

thanks

Upvotes: 0

Views: 54

Answers (3)

Pooja Shah
Pooja Shah

Reputation: 485

You have not specified the border-style.

You can use any of the style and it will appear.

Eg :

  border: 10px #000 solid;
  border: 10px #000 dashed;
  border: 10px #000 groove;
  border: 10px #000 inset;
  border: 10px #000 outset;

Etc....

Click here for more details.

Upvotes: 4

Ryan Plant
Ryan Plant

Reputation: 1047

You need to specify a type for the border, eg solid, dotted, dashed.

Change your style attribute to border:10px solid #000; and it will work.

Upvotes: 2

JunM
JunM

Reputation: 7150

Try to add solid

border:10px solid #000

Border-style reference here

Upvotes: 4

Related Questions