AmitDiwan has Published 11367 Articles

HTML DOM Style borderImage Property

AmitDiwan

AmitDiwan

Updated on 21-Aug-2019 06:32:41

34 Views

The borderImage property is used for setting or getting the border image of an element. It is a shorthand property, so that we can manipulate borderImageSource, borderImageSlice, borderImageWidth, borderImageOutset and borderImageRepeat properties at one go.SyntaxFollowing is the syntax for −Setting the borderImage property −object.style.borderImage = "source slice width outset repeat|initial|inherit"ValuesThe ... Read More

HTML DOM Style borderBottomWidth Property

AmitDiwan

AmitDiwan

Updated on 21-Aug-2019 06:20:54

46 Views

The borderBottomWidth property is used for setting or getting the bottom border width for an element.SyntaxFollowing is the syntax for −Setting the borderBottomWidth property −object.style.borderBottomWidth = "thin|medium|thick|length|initial|inherit"valuesThe property values are explained as follows −Sr.NoValues & Description1thinThis specifies a thin border.2mediumThis specifies the medium border and is the default value.3thickThis specifies ... Read More

HTML DOM Style backgroundClip Property

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 14:39:56

24 Views

The backgroundClip property lets us control how far the background image will be painted i.e. the painting area of the background image. It is used for setting or returning that painting area.SyntaxFollowing is the syntax for −Setting the backgroundClip property −background-clip: border-box | padding-box | content-boxValuesFollowing are the values −Sr.NoValue ... Read More

HTML DOM Style backgroundAttachment Property

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 14:39:11

39 Views

The backgroundAttachment property is used to set or get if the background image should scroll with respect to the page content or not.SyntaxFollowing is the syntax for −Setting the backgroundAttachment property −object.style.backgroundAttachment = "scroll|fixed|local|initial|inherit"ValuesFollowing are the values −Sr.NoValue & Description1ScrollThis is the default value and it makes the background scroll ... Read More

HTML DOM designMode property

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 14:30:11

67 Views

The HTML DOM designMode property allows us to specify if the entire document is editable or not. This makes the HTML document act as a WYSIWYG (What You See Is What You Get) editor as we can edit the HTML document. This property is by default set to “off” and ... Read More

HTML DOM Style border Property

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 14:26:49

100 Views

The HTML DOM Style border property is used to get or set the border properties for an element. It is a shorthand property for border-width, border-style and border-color.SyntaxFollowing is the syntax for −Setting the border property −object.style.border = "width style color|initial|inherit"ParametersThe above properties as explained as follow −Sr.NoParameters & Description1WidthFor ... Read More

Add a column to a MySQL table which is the result of concatenation of text and value from another auto increment column?

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 09:09:39

390 Views

For this, you can use LAST_INSERT_ID(). Let us first create a table −mysql> create table DemoTable    (    UserId int(6) unsigned zerofill NOT NULL AUTO_INCREMENT,    UserAutoIncrement char(100) default null,    PRIMARY KEY(UserId)    ); Query OK, 0 rows affected (0.72 sec)Insert some records in the table using insert ... Read More

HTML DOM Style backgroundRepeat Property

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 08:52:42

31 Views

The style backgroundRepeat property is used to set or get how the background image repeats itself.SyntaxFollowing is the syntax for −Setting the backgroundRepeat property −object.style.backgroundRepeat = "repeat|repeat-x|repeat-y|no-repeat|initial|inherit"ValuesFollowing are the above property values −Sr.NoValue & Description1repeatThis is the default value. It repeats the background image vertically and horizontally both.2repeat-xThis repeats the ... Read More

HTML DOM Style backgroundPosition Property

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 08:39:08

37 Views

The backgroundPosition property is used for setting or getting the initial position for the background image of an element relative to the origin.SyntaxFollowing is the syntax for −Setting the backgroundPosition property −object.style.backgroundPosition = valueValuesFollowing are the values −ValueDescriptiontop lefttop centertop rightcenter leftcenter centercenter rightbottom leftbottom centerbottom rightThe positioning can be ... Read More

HTML DOM Style backgroundOrigin Property

AmitDiwan

AmitDiwan

Updated on 20-Aug-2019 08:32:30

28 Views

The background-origin property is used to set or get the background origin i.e. its relative position. It can be relative to any of the four box model areas.SyntaxFollowing is the syntax for −Setting the backgroundOrigin property −object.style.backgroundOrigin = "padding-box|border-box|content-box|initial|inherit"ValuesThe above property values are explained as follows −Sr.NoValue & Description1padding-boxFor having ... Read More

Advertisements