Daniol Thomas has Published 212 Articles

How to select elements with an attribute value containing a specified word with CSS?

Daniol Thomas

Daniol Thomas

Updated on 24-Jun-2020 07:01:35

170 Views

Use the [attribute ~= "value"] selector to select elements with an attribute value containing a specified word with CSS.You can try to run the following code to implement the [attribute ~= "value"] selector. Here, the word we are searching is “Tutorials”, ExampleLive Demo           ... Read More

Selects all elements where the parent is a

Daniol Thomas

Daniol Thomas

Updated on 24-Jun-2020 06:27:50

488 Views

Use the element > element selector to select an element with a parent element.You can try to run the following code to select all elements where the parent is a element, ExampleLive Demo                    div > p { ... Read More

Add a color to the shadow with CSS

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 15:44:27

182 Views

To add a color to the shadow, use the box-shadow property and set the color, with the height and width.You can try to run the following code to set the color to shadow:ExampleLive Demo                    h2 {           ... Read More

Float List Items to the right with CSS

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 14:50:35

2K+ Views

To float the list items to the right, use float: right property in CSS. You can try to run the following code to implement it,ExampleLive Demo                    ul {             list-style-type: none;             margin: 0;             padding: 0;          }          li {             float: left;          }          li a {             display: block;             padding: 8px;             background-color: orange;          }                              Home          News          Contact          About          

What are undefined reference/unresolved external symbol errors in C++?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 13:26:30

966 Views

As the name suggests, a symbol you declared was not defined by you. This may occur due to many cases. Let's have a look at three of them −You forgot to define the declared name. For example, you declared a function in a file and used it somewhere. But you ... Read More

Does use of anonymous functions affect performance?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 12:58:03

221 Views

The usage of anonymous functions affect performance is the sense, you need to create a new function object at each iteration. Anonymous functions are always loaded using a variable name. Anonymous, as the name suggests, allows creating a function without any names identifier. It can be used as an argument ... Read More

What records are present in JavaScript cookies?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 08:46:46

110 Views

Your server sends some data to the visitor's browser in the form of a cookie. The browser may accept the cookie. If it does, it is stored as a plain text record on the visitor's hard drive. Now, when the visitor arrives at another page on your site, the browser ... Read More

How to return a string representing the source for an equivalent Date object?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 08:07:54

52 Views

To return a string representing the source for an equivalent Date object, use the JavaScript toSource() method. This method returns a string representing the source code of the object.ExampleYou can try to run the following code to return a string representing the source for an equivalent Date object −   ... Read More

With JavaScript Regular Expression find a non-whitespace character.

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 07:49:31

276 Views

To find a non-whitespace character, use the following −\SExampleYou can try to run the following code to find non-whitespace character −        JavaScript Regular Expression                        var myStr = "100% Responsive!";          var reg = /\S/g;          var match = myStr.match(reg);                    document.write(match);          

What are different Navigator properties I can use on my web page?

Daniol Thomas

Daniol Thomas

Updated on 23-Jun-2020 07:02:17

97 Views

can use several Navigator related properties in your Web page. The following are the properties −Sr.NoProperty & Description1appCodeNameThis property is a string that contains the code name of the browser, Netscape for Netscape and Microsoft Internet Explorer for Internet Explorer.2appVersionThis property is a string that contains the version of the ... Read More

Advertisements