George John has Published 1167 Articles

Set dotted line for border with CSS

George John

George John

Updated on 31-Jan-2020 10:46:18

323 Views

To set dotted line for border, use the border-style property. You can try to run the following code to implement border-style property value dotted to set dotted border:Example                            This is a dotted border.          

Usage of border-left-color property in CSS

George John

George John

Updated on 31-Jan-2020 10:38:41

59 Views

The border-left-color property changes the color of the left border. You can try to run the following code to implement the border-left-color property:Example                    p.demo {             border:4px solid;             border-left-color:#FF0000;          }                              Example showing border left color property          

Set dashed line for border with CSS

George John

George John

Updated on 31-Jan-2020 10:20:44

495 Views

To set the dashed line for the border, use the border-style property. You can try to run the following code to implement border-style property value dashed to set dashed border:Example                            This is a dotted border.          

Set the Color of Visited Links with CSS

George John

George John

Updated on 31-Jan-2020 07:00:11

419 Views

To set the color of visited link, use the :visited property in CSS. You can try to run the following code to set the visited color link                    a:visited {             color: #FF0000          }                     My Link    

Change the color of right border with CSS

George John

George John

Updated on 31-Jan-2020 06:45:25

105 Views

The border-right-color property changes the color of the right border.ExampleYou can try to run the following code to implement the border-right-color property                    p.demo {             border:3px solid;             border-right-color:#FF0000;          }                              Example showing border right color property          

How can we drop UNIQUE constraint from a MySQL table?

George John

George John

Updated on 28-Jan-2020 06:27:37

5K+ Views

For dropping UNIQUE constraint from a MySQL table, first of all, we must have to check the name of the index created by the UNIQUE constraint on the table. As we know that SHOW INDEX statement is used for this purpose. The ‘key_name’ in the result set of SHOW INDEX ... Read More

Why can't variables be declared in a switch statement in C/C++?

George John

George John

Updated on 27-Jan-2020 12:30:17

777 Views

Variables can be declared in a switch statement. You'll just need to declare them and use them within a new scope in the switch statement. For example,Example#include using namespace std; int main() {    int i = 10;    switch(i) {       case 2:       //some code       break;       case 10:{          int x = 13;          cout

How to “enable” HTML5 elements in IE 8 that were inserted by AJAX call?

George John

George John

Updated on 27-Jan-2020 07:26:37

166 Views

To enable HTML5 elements in IE, you need to use plugins like html5shiv. The HTML5 Shiv enables use of HTML5 sectioning elements in legacy Internet Explorer and provides basic HTML5 styling for Internet Explorer 6-9, With that, you can also use document.createElement to create an element.var demo = document.createElement("demo"); demo.innerHTML = "Working!"; ... Read More

How to save HTML5 canvas data to file?

George John

George John

Updated on 27-Jan-2020 07:08:50

416 Views

Use PNGStream to save HTML5 canvas to file.var f = require('fs') , out = f.createWriteStream(__dirname + '/text.png') , stream = canvas.pngStream(); stream.on('data', function(chunk){    out.write(chunk); }); stream.on('end', function(){    console.log(‘PNG Saved successfully!’); });

Input type DateTime Value format with HTML

George John

George John

Updated on 27-Jan-2020 06:33:59

2K+ Views

Use input type=”datetype”. The datetime input type is used in HTML using the . Using this, allow the users to select date and time. A date time picker popup is visible whenever input field is clicked.           HTML input datetime                        Details:          Student Name          Exam Date and Time                    

Advertisements