seetha

seetha

54 Articles Published

Articles by seetha

Page 2 of 6

Set bottom tooltip with CSS

seetha
seetha
Updated on 11-Mar-2026 783 Views

To set bottom tooltip, use the top CSS property.You can try to run the following code to set bottom tooltip to a text:Example           .mytooltip .mytext {          visibility: hidden;          width: 140px;          background-color: orange;          color: white;          z-index: 1;          top: 100%;          left: 60%;          margin-left: -90px;          text-align: center;          border-radius: 6px;          padding: 5px 0;          position: absolute;       }       .mytooltip {          position: relative;          display: inline-block;          margin-top: 50px;       }       .mytooltip:hover .mytext {          visibility: visible;       }               Keep mouse cursor over me           My Tooltip text          

Read More

CSS border-image property

seetha
seetha
Updated on 11-Mar-2026 104 Views

CSS border-image property is used to add image border to some elements. You can try to run the following code to implement the border-image property −Example                    #borderimg1 {             border: 15px solid transparent;             padding: 15px;             border-image: url(https://tutorialspoint.com/css/images/border.png) 50 round;          }                     This is image border example.    

Read More

Set the name of the CSS property the transition effect is for

seetha
seetha
Updated on 11-Mar-2026 142 Views

To set the name of the CSS property the transition effect is, use the CSS transition-property.In the below example, we have set the property as width and set the duration as well:Example                    div {             width: 150px;             height: 150px;             background: blue;             transition-property: width;             transition-duration: 3s;          }          div:hover {             width: 250px;          }                     Heading One       Hover over the below box to change its width.          

Read More

Align text and select boxes to the same width with HTML and CSS

seetha
seetha
Updated on 23-Nov-2023 1K+ Views

When we set the width and height of an element in CSS then often the element appears bigger than the actual size. This is because by default, the padding and border are added to the element’s width and height and then the element is displayed.The box sizing property includes the padding and border of an element with actual width and height so that the element does not appear bigger than the actual size. The format to use this property is box-sizing: box-border ExampleYou can try to run the following code to align text and select boxes to the same width ...

Read More

Splitting up an HTML page and loading it through header?

seetha
seetha
Updated on 24-Jun-2020 238 Views

In order to speed up creation and edition of HTML, splitting of HTML files are required into three separate HTML files −HeaderFooterContentThis is not possible in a static Html website; however, this is possible through PHP. Another way is to use JavaScript to load page pieces after the main page is already loaded.

Read More

When a MySQL arithmetic expression returns NULL?

seetha
seetha
Updated on 22-Jun-2020 169 Views

As we know that a NULL is not a value and it is also not the same as zero. MySQL arithmetic expression returns NULL if we will use NULL in it. It can be understood with the help of the following example −Examplemysql> Select 100*NULL; +----------+ | 100*NULL | +----------+ |     NULL | +----------+ 1 row in set (0.00 sec) mysql> Select 100+NULL; +----------+ | 100+NULL | +----------+ |     NULL | +----------+ 1 row in set (0.00 sec)From the above example, it can be observed that if we will use NULL in an arithmetic expression then the result would be NULL itself.

Read More

How it is possible to insert a zero or an empty string into a MySQL column which is defined as NOT NULL?

seetha
seetha
Updated on 22-Jun-2020 2K+ Views

Declaring a column ‘NOT NULL’ means that this column would not accept NULL values but zero (0) and an empty string is itself a value. Hence there would be no issue if we want to insert zero or an empty string into a MySQL column which is defined as NOT NULL. Following comparisons of 0 and empty string with NULL would make it clear −mysql> Select 0 IS NULL, 0 IS NOT NULL; +-----------+---------------+ | 0 IS NULL | 0 IS NOT NULL | +-----------+---------------+ |         0 |             1 | ...

Read More

How can we sort multiple columns in a single query?

seetha
seetha
Updated on 22-Jun-2020 230 Views

We can sort multiple columns in a single query by giving more than one column name with ORDER BY Clause. The syntax of the above is as follows −SyntaxSelect Col1, Col2, … from table_name ORDER BY Col1, Col2, …ExampleSuppose we want to sort the table named ‘Student’ by columns ‘Name’ and ‘RollNo’ both then we can write the single query for this as follows −mysql> Select Name, RollNo from student order by name, rollno; +--------+--------+ | name   | rollno | +--------+--------+ | Aarav  |    150 | | Aryan  |    165 | | Gaurav |    100 | ...

Read More

How can we delete a MySQL stored function from the database?

seetha
seetha
Updated on 22-Jun-2020 513 Views

If we have ALTER ROUTINE privileges then with the help of DROP FUNCTION statement, we can delete a MySQL stored function. Its syntax can be as follows −SyntaxDROP FUNCTION [IF EXISTS] function_nameHere function_name is the name of the function which we want to delete from our database.Examplemysql> DROP FUNCTION if exists Hello1; Query OK, 0 rows affected (0.70 sec)Now after deleting the function, check for the CREATE FUNCTION statement and we will get the error as follows −mysql> SHOW CREATE FUNCTION Hello1; ERROR 1305 (42000): Function Hello1 does not exist.

Read More

Does MySQL preserve the environment at the time the stored procedure created?

seetha
seetha
Updated on 22-Jun-2020 156 Views

Actually, MySQL preserves the environment at the time the stored procedure is created. It can be understood with the help of following the example in which we are using two bars for concatenating strings. This is only legal while SQL mode is ansi. But if we change the SQL mode to non-ansi, the procedure still works as if the original setting is still true.Examplemysql> Set sql_mode = 'ansi'// Query OK, 0 rows affected, 1 warning (0.14 sec) mysql> Create Procedure Con_string()     -> SELECT 'a'||'b'// Query OK, 0 rows affected (0.12 sec) mysql> Call Con_string (); +----------+ | ...

Read More
Showing 11–20 of 54 articles
Advertisements