Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Chandu yadav
Page 45 of 81
Set the top margin of an element with CSS
The margin-top specifies the top margin of an element. It can have a value in length, % or auto. You can try to run the following code to set the top margin:Example This is a paragraph with a specified top margin This is another paragraph with a specified top margin in percent
Read MoreUsage of border-bottom-width property in CSS
The border-bottom-width changes the width of the bottom border. You can try to run the following code to implement border-bottom-width property:Example This is demo content.
Read MoreHow can I manage the start position of searching in MySQL LOCATE() function?
As we know that by default searching in LOCATE() function starts from beginning. We can manage the start position by giving an argument to specify the position from which we want to start the search in string. Following example will demonstrate it −Examplemysql> Select LOCATE('good','Ram is a good boy. Is Ram a good boy?',11)As Result; +--------+ | Result | +--------+ | 29 | +--------+ 1 row in set (0.00 sec)In the above example, we have given the value 11 as the argument for position. It means that MySQL will start searching from 11th position.
Read MoreUsage of border-left-style property in CSS
The border-left-style property changes the style of left border. You can try to run the following code to implement the border-left-style propertyExample This is demo content
Read MoreUsage of border-bottom-color property in CSS
The border-bottom-color property changes the color of the bottom border.ExampleYou can try to run the following code to implement the border-bottom-color property: p.demo { border:3px solid; border-bottom-color:#FF0000; } Example showing border top color property
Read MoreChange the style of left border with CSS
The border-left-style property changes the style of left border. You can try to run the following code to implement border-left-style property:Example Example showing left border
Read MoreUsage of CSS border-collapse property
The border-collapse specifies whether the browser should control the appearance of the adjacent borders that touch each other or whether each cell should maintain its style.ExampleYou can try to run the following code to learn how to work with border-collapse property table.one { border-collapse:collapse; } table.two { border-collapse:separate; } td.a { border-style:dotted; border-width:2px; border-color:#000000; padding: 20px; } td.b { border-style:solid; border-width:2px; border-color:#333333; padding:20px; } Border Collapse India Australia Border Separate India Australia
Read MoreUsage of -moz-opacity property with CSS
The -moz-opacity property of an image is used to set the opacity of an image. This property is used to create a transparent image in Mozilla. IE uses filter:alpha(opacity=x) to create transparent images.ExampleYou can try to run the following code to style an image and set opacity with CSS
Read MoreWhat is the way to get self-computed output from MySQL without a dummy table named dual?
In MySQL, we can simply specify the SELECT conditions all alone to get the self-computed output. Following example will demonstrate it −mysql> Select 1+1; +-----+ | 1+1 | +-----+ | 2 | +-----+ 1 row in set (0.02 sec) mysql> Select 1; +---+ | 1 | +---+ | 1 | +---+ 1 row in set (0.00 sec)
Read MoreHow can I change the value of an instance of a row in MySQL table?
UPDATE command along with WHERE clause can be used to change the value of an instance of a row. Basically, MySQL will change the value on the basis of the condition given in the query. Following example can demonstrate itSuppose we want to change the name from ‘Ram’ to ‘Mohit’ in the ‘testing’ table given below −mysql> Select * from testing; +----+---------+ | Id | Name | +----+---------+ | 1 | Harshit | | 2 | Lovkesh | | 3 | Ram | | 4 | Gaurav | +----+---------+ 4 rows in set (0.00 sec)Now ...
Read More