0

I want to put a boder colored onto a textbox, but the color i get is too intense and opaque:

I get this border:

enter image description here

I want something like this:

enter image description here

My simple ccs is:

.highlitedborder
{
   border: 2px solid orange;
}

Thank you.

anmarti
  • 5,045
  • 10
  • 55
  • 96

3 Answers3

5
border: 1px solid rgba(255, 0, 0, .5);

The last alpha value (0.5) can be seen as opacity.

By the way, what u see in the image is not border. It is closer to box-shadow (that effect is created by browser in some case)

box-shadow: 0 0 4px orange;
5hahiL
  • 1,056
  • 16
  • 36
  • Even the best developers have a hard time styling for < IE8. My approach is to just get the functionality up and forget the styling. It's user base is small, and majority is with Chrome, Firefox and IE9. – 5hahiL Nov 19 '12 at 17:17
2

This part is not the border. It is the outline. You may change it to change it it like

    .highlitedborder
{
   outline-color: your color...or your style;
}
André Lucas
  • 1,788
  • 1
  • 18
  • 36
  • 1
    Is there cross-browser way to simulate the outline-color? – anmarti Nov 19 '12 at 12:39
  • 4
    @senyortoni I searched for it and i got this :http://stackoverflow.com/questions/1537968/how-does-internet-explorer-8-support-the-css-outline-attribute – André Lucas Nov 19 '12 at 13:53
0
border: 1px solid #e68200

This can help you

Misagh Aghakhani
  • 1,023
  • 2
  • 13
  • 29