What is widows property in css?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is widows property in css??

I have saw this property in w3school html DOM scree their is example also i try my self that example but also i don' t understand

17th Apr 2020, 10:10 AM
HUNTER BOYZ
HUNTER BOYZ - avatar
4 Answers
+ 1
The widows property sets or returns the minimum number of lines for an element that must be visible at the top of a page (for printing or print preview). The widows property only affects block-level elements. Tip: widows:5 means that at least 5 lines must be visible below the page break. Tip: See the orphans property to set or return the minimum number of lines for an element that must be visible at the bottom of a page.
19th Apr 2020, 5:19 PM
David Paredes
David Paredes - avatar
0
Actually window is the place where the HTML is displayed and is not a part of dom For Example: ----------+WINDOW+--------------- HTML--+|(Access to browser only) CSS---+--|(Access to HTML design only) JS---+-| (Access to window(60%)and DOM) ----------+WINDOW+--------------- SO YOU see window is the place where things are displayed and CSS has 0 Access to it as JS has some Access to it so because of it we can control the window just think the window as your phone ok
17th Apr 2020, 11:42 AM
Bibek
Bibek - avatar
0
It is not window it is widow bro
18th Apr 2020, 8:33 AM
HUNTER BOYZ
HUNTER BOYZ - avatar
0
thanks i learned a new property
19th Apr 2020, 5:20 PM
David Paredes
David Paredes - avatar