Arjun Thakur has Published 1025 Articles

How to work with Flexbox elements in CSS?

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 07:05:19

181 Views

Define a flex container and set the flex items in it.You can try to run the following code to learn how to implement Flexbox elements. Q1, Q2, Q3 here are the flex-items. The entire area is Flexbox elementExampleLive Demo                   ... Read More

CSS Grid Elements

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 06:56:38

360 Views

Grid Elements in CSS has parent and child elements. Here’s an example wherein a grid is created with 6 elements.ExampleLive Demo                    .container {             display: grid;             grid-template-columns: auto auto;             padding: 20px;          }          .ele {             background-color: orange;             border: 2px solid gray;             padding: 25px;             font-size: 20px;             text-align: center;          }                     Game Board                1          2          3          4          5          6          

Cross domain HTML5 iframe issue

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 06:25:26

511 Views

Use the postMessage method for transferring data across different domains.ExampleYou can try the following code snippet to solve the cross-domain HTML5 iframe issue −// Using postMessage() window.onmessage = function(e) {    e.source.postMessage(document.body.innerHTML, e.origin); }; window.onmessage = function(event) {    alert(e.data); }; // fire document.getElementById('frame1').contentWindow.postMessage('', '*');Read More

Is there any way of moving to HTML 5 and still promise multi browser compatibility?

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 06:20:19

220 Views

Yes, follow this approach −Move to the HTML5 doctype − Use or even the new elements like Or the newer HTML5 tags or , you can still use the outdated tag.The controls have backward compatibility too. The works the same as in browsers that do ... Read More

How to put the WebBrowser control into IE9 into standards with HTML?

Arjun Thakur

Arjun Thakur

Updated on 25-Jun-2020 06:17:19

148 Views

To place the WebBrowser control into IE9 standards, you need to add the following line in your HTML web page −You can also try this for Internet Explorer 9 −You can also try this for Microsoft Edge −

Setting null values with an HTML