Seetha has Published 86 Articles

Animate CSS left the property

seetha

seetha

Updated on 25-Jun-2020 14:09:50

609 Views

To implement animation on left property with CSS, you can try to run the following code:ExampleLive Demo                    div {             border: 2px solid black;             width: 300px;             height: 100px;             position: absolute;             left: 0;             animation: myanim 5s infinite;          }          @keyframes myanim {             30% {                left: 200px;             }          }                     This is demo text    

Set all border-radius properties with CSS

seetha

seetha

Updated on 25-Jun-2020 12:53:01

79 Views

Use the border-radius property to set all the four border-radius properties. You can try to run the following code to implement border-radius property:ExampleLive Demo                    #rcorner {             border-radius: 25px;             background: #85C1E9;             color: white;             padding: 20px;             width: 200px;             height: 250px;          }                     Rounded corners!    

Splitting up an HTML page and loading it through header?

seetha

seetha

Updated on 24-Jun-2020 14:11:05

115 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 ... Read More

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

seetha

seetha

Updated on 24-Jun-2020 05:36:01

61 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:ExampleLive Demo                    div {         ... Read More

Set bottom tooltip with CSS

seetha

seetha

Updated on 23-Jun-2020 15:21:49

776 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:ExampleLive demo           .mytooltip .mytext {          visibility: hidden;          width: 140px;          background-color: ... Read More

How can we display all the records from MySQL table with the help of PHP script that uses mysql_fetch_assoc() function?

seetha

seetha

Updated on 22-Jun-2020 13:57:51

329 Views

To illustrate this we are fetching all the records from a table named ‘Tutorials_tbl’ with the help of PHP script that uses mysql_fetch_assoc() function in the following example −Example

Which PHP function is used to select a MySQL database?

seetha

seetha

Updated on 22-Jun-2020 13:33:13

112 Views

PHP uses mysql_select_db function to select a MySQL database. This function takes two parameters and returns TRUE on success or FALSE on failure. Its syntax is as follows −Syntaxbool mysql_select_db( db_name, connection );Followings are the parameters used in this function:Sr.NoParameter & Description1db_nameRequired - MySQL database name to be selected2connectionOptional - ... Read More

String Formatting in C# to add padding

seetha

seetha

Updated on 22-Jun-2020 13:08:09

734 Views

With C#, you can easily format content and add padding to it.To add padding −const string format = "{0, -5} {1, 5}";Now, add the padding to the strings −string str1 = string.Format(format, "Rank", "Student"); string str2 = string.Format(format, "2", "Tom");Let us see the complete code −Example Live Demousing System; using System.Collections.Generic; ... Read More

Print first letter of each word in a string using C# regex

seetha

seetha

Updated on 22-Jun-2020 12:48:42

312 Views

Let’s say our string is −string str = "The Shape of Water got an Oscar Award!";Use the following Regular Expression to display first letter of each word −@"\b[a-zA-Z]"Here is the complete code −Example Live Demousing System; using System.Text.RegularExpressions; namespace RegExApplication {    public class Program {       private static ... Read More

How do I determine the size of my array in C#

seetha

seetha

Updated on 22-Jun-2020 12:28:58

118 Views

Firstly, set an array −int[] arr = {6, 3, 8, 4};Now, use the Length property to get the size of the array −arr.LengthLet us see the complete code −Example Live Demousing System; namespace Demo {    public class Demo {       public static void Main(string[] args) {     ... Read More

Advertisements