Samual Sam has Published 2310 Articles

Set outline style as a dotted line with CSS

Samual Sam

Samual Sam

Updated on 04-Mar-2020 11:13:44

224 Views

To set the outline style as a dotted line, use the outline-style property with the value dotted − Example                            This text is having 7px dotted outline.          

CSS padding-left property

Samual Sam

Samual Sam

Updated on 04-Mar-2020 11:06:01

108 Views

The padding-left specifies the left padding of an element. It sets the left padding of an element. This can take a value in terms of length of %. Example                            This is a paragraph with a specified left padding                      This is another paragraph with a specified left padding in percent          

Using Modernizr to detect HTML5 features

Samual Sam

Samual Sam

Updated on 04-Mar-2020 10:11:29

169 Views

Modernizr is a small JavaScript Library that detects the availability of native implementations for next-generation web technologies.Here is the list of features that can be detected by Modernizr −FeatureCSS PropertyJavaScript Check@font-face.fontfaceModernizr.fontfaceCanvas.canvasModernizr.canvasCanvas Text.canvastextModernizr.canvastextHTML5 Audio.audioModernizr.audioHTML5 Audio formatsNAModernizr.audio[format]HTML5 Video.videoModernizr.videoHTML5 Video FormatsNAModernizr.video[format]rgba().rgbaModernizr.rgbahsla().hslaModernizr.hslaborder-image.borderimageModernizr.borderimageborder-radiusbox-shadow.borderradiusModernizr.borderradiusbox-shadow.boxshadowModernizr.boxshadowMultiple backgrounds.multiplebgsModernizr.multiplebgsOpacity.opacityModernizr.opacityCSS Animations.cssanimationsModernizr.cssanimationsCSS Columns.csscolumnsModernizr.csscolumnsCSS Gradients.cssgradientsModernizr.cssgradientsCSS Reflections.cssreflectionsModernizr.cssreflectionsCSS 2D Transforms.csstransformsModernizr.csstransformsCSS 3D Transforms.csstransforms3dModernizr.csstransforms3dCSS Transitions.csstransitionsModernizr.csstransitionsGeolocation API.geolocationModernizr.geolocationInput TypesNAModernizr.inputtypes[type]Input ... Read More

Prevent iPhone from zooming in web-app with HTML

Samual Sam

Samual Sam

Updated on 04-Mar-2020 06:33:06

9K+ Views

Giving a meta tag attribute "user-scalable=no" will restrict the user from zooming elsewhere.  Prevent zooming all together by adding this meta tag to your head tag. This tells the mobile browser to use the same width scale and will not allow the user to zoom in at all, hence also disables ... Read More

Choose which option is selected on pageload of razor Html.DropDownListFor() in HTML?

Samual Sam

Samual Sam

Updated on 04-Mar-2020 06:13:12

187 Views

Shorthand is used to decide which option is selected on pageload of razor Html.DropDownListFor(). You can try to run the following code snippet −// return Boolean value @Html.DropDownListFor(m => m.Valeur, new List< SelectListItem > { //new list item list item1 is generated new SelectListItem { Value = "0" , Text ... Read More

What are rvalues, lvalues, xvalues, glvalues, and prvalues in C++?

Samual Sam

Samual Sam

Updated on 27-Feb-2020 05:10:27

557 Views

An lvalue has an address that your program can access. Examples of lvalue expressions include variable names, including const variables, array elements, function calls that return an lvalue reference, bit-fields, unions, and class members. A xvalue expression has no address but can be used to initialize an rvalue reference, which provides ... Read More

Combining LIKE and CONTAINS operator in SAP HANA

Samual Sam

Samual Sam

Updated on 26-Feb-2020 06:11:45

872 Views

The code you are using \1+ just removes consecutive occurrences only. You can use the below code.SELECT REPLACE_REGEXPR('(.)(?=.*\1)' IN '22331122' WITH '' OCCURRENCE ALL)  FROM DUMMYThe output will come out to be “312”. This will remove all multiple occurrences and only last one will be kept.

What is the try block in Java?

Samual Sam

Samual Sam

Updated on 25-Feb-2020 10:44:22

535 Views

A try/catch block is placed around the code that might generate an exception. Code within a try/catch block is referred to as protected code, and the syntax for using try/catch looks like the following –Syntaxtry {    // Protected code } catch (ExceptionName e1) {    // Catch block }The ... Read More

What is the difference between Serialization and Deserialization in Java?

Samual Sam

Samual Sam

Updated on 25-Feb-2020 10:28:26

2K+ Views

Serialization Java provides a mechanism, called object serialization where an object can be represented as a sequence of bytes that includes the object's data as well as information about the object's type and the types of data stored in the object.Exampleimport java.io.*; public class SerializeDemo {    public static void ... Read More

How MySQL stored GENERATED COLUMNS can work with mathematical expressions?

Samual Sam

Samual Sam

Updated on 21-Feb-2020 12:20:32

153 Views

It can be illustrated with the help of an example in which we are creating a stored generated column in the table named ‘triangle_stored’. As we know that stored generated column can be generated by using the keyword ‘stored’.Examplemysql> Create table triangle_stored(SideA DOUBLE, SideB DOUBLE, SideC DOUBLE AS (SQRT(SideA * ... Read More

Advertisements