Change border-bottom color using jQuery?

$(“selector”).css(“border-bottom-color”, “#fff”); construct your jQuery object which provides callable methods first. In this case, say you got an #mydiv, then $(“#mydiv”) call the .css() method provided by jQuery to modify specified object’s css property values.

Strange border on IMG tag

It’s the default “special” border that appears when you use an img element with an a src attribute set to something that doesn’t exist (or no src at all). A common workaround is to set the src to a blank.gif file: <img class=”logo” src=”https://stackoverflow.com/questions/5743083/blank.gif” /> I have to point out that it (in this case) … Read more

How to move and resize a form without a border?

Some sample code that allow moving and resizing the form: public partial class Form1 : Form { public Form1() { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.None; this.DoubleBuffered = true; this.SetStyle(ControlStyles.ResizeRedraw, true); } private const int cGrip = 16; // Grip size private const int cCaption = 32; // Caption bar height; protected override void OnPaint(PaintEventArgs e) { … Read more

How to create multi-color border with CSS?

You can do it without pseudo-elements, just with border-image: linear-gradient .fancy-border { width: 150px; height: 150px; text-align:center; border-top: 5px solid; border-image: linear-gradient(to right, grey 25%, yellow 25%, yellow 50%,red 50%, red 75%, teal 75%) 5; } <div class=”fancy-border”> my content </div>