<!DOCTYPE html>
<
html
>
<
head
>
<
title
>
HTML | DOM Style columnSpan Property
</
title
>
<
style
>
#main {
column-count: 3;
/* Standard syntax */
border: 2px solid green;
}
#h2tag {
background-color: orange;
color: lime;
}
</
style
>
</
head
>
<
body
>
<
center
>
<
h1
style="color:green;">GeeksForGeeks</
h1
>
<
h3
>DOM Style columnSpan Property </
h3
>
<
button
onclick="geeks()">Click</
button
>
<
br
>
<
div
id="main">
<
h2
id="h2tag">
GeeksforGeeks is a good platform to learn
programming.
</
h2
>
It is a good platform to learn programming.
It is an educational website. Prepare for
the Recruitment drive of product based
companies like Microsoft, Amazon, Adobe
etc with a free online placement preparation
course. The course focuses on various MCQ's &
Coding question likely to be asked in the
interviews & make your upcoming placement
season efficient and successful. Also, any
geeks can help other geeks by writing articles
on the GeeksforGeeks, publishing articles follow
few steps that are Articles that need little
modification/improvement from reviewers are
published first. To quickly get your articles
reviewed, please refer existing articles, their
formatting style, coding style, and try to make
you are close to them. In case you are a beginner,
you may refer Guidelines to write an Article
</
div
>
<
script
>
function geeks() {
// Code for old Chrome, Safari, Opera
document.getElementById("h2tag").style.WebkitColumnSpan
= "all";
// For other standard browsers.
document.getElementById("h2tag").style.columnSpan
= "all";
}
</
script
>
</
center
>
</
body
>
</
html
>