- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2417 Articles for HTML
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
68 Views
The DOM style overflow property returns and modify the overflow CSS property of an element in an HTML document.SyntaxFollowing is the syntax −Returning overflowobject.style.overflowModifying overflowobject.style.overflow = “value”ValuesHere value can be −ValueExplanationscrollIt clips the content and scroll bars are added when necessary.inheritIt inherits this property value from its parent element.initialIt set this property value to its default value.autoIt clip the content and add scroll bars when necessary.hiddenIt hides the content flow outside the element box.visibleIt doesn’t clip the content and content will flow outside the element box.ExampleLet us see an example of style overflow property − Live Demo ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
80 Views
The HTML DOM style width property returns and modify the width CSS property of an element in an HTML document.SyntaxFollowing is the syntax −Returning widthobject.style.widthModifying widthobject.style.width = “value”ExampleLet us see an example of style width property − Live Demo body { color: #000; background: lightblue; height: 100vh; } p { border: 2px solid #fff; margin: 1.5rem auto; } .btn { background: #db133a; border: none; height: 2rem; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
69 Views
The DOM style textAlign property returns and modify the horizontal alignment of text in a block level element in an HTML document.SyntaxFollowing is the syntax −Returning textAlignobject.style.textAlign2. Modifying textAlignobject.style.textAlign = “value”ExampleLet us see an example of style textAlign property − Live Demo body { color: #000; background: lightblue; height: 100vh; } p { border: 2px solid #fff; margin: 1.5rem auto; } .btn { background: #db133a; border: none; height: 2rem; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
37 Views
The DOM style outlineOffset property returns and offsets the outline around an element in an HTML document.SyntaxFollowing is the syntax −Returning outlineOffsetobject.style.outlineOffsetModifying outlineOffsetobject.style.outlineOffset = “value”ExampleLet us see an example of style outlineOffset property − Live Demo body { color: #000; background: lightblue; height: 100vh; } p { background-color: seagreen; height: 200px; width: 200px; outline: 3px solid #000; border: 3px solid #fff; margin: 1.5rem auto; } .btn ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
35 Views
The DOM style outlineStyle property returns and modify the style of the outline around an element in an HTML document.SyntaxFollowing is the syntax −Returning outlineStyleobject.style.outlineStyleModifying outlineStyleobject.style.outlineStyle = “value”ExampleLet us see an example of style outlineStyle property − Live Demo body { color: #000; background: lightblue; height: 100vh; } p { background-color: seagreen; height: 200px; width: 200px; outline: 2px solid #000; } .btn { background: #db133a; border: ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
26 Views
The DOM style outlineWidth property returns and modify the width of the outline around an element in an HTML document.SyntaxFollowing is the syntax −Returning outlineWidthobject.style.outlineWidthModifying outlineWidthobject.style.outlineWidth = “value”ExampleLet us see an example of style outlineWidth property − Live Demo body { color: #000; background: lightblue; height: 100vh; } p { background-color: seagreen; height: 200px; width: 200px; outline: 2px solid #000; } .btn { background: #db133a; border: ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
21 Views
The DOM style outlineColor property returns and modify the color of the outline around an element in an HTML document.SyntaxFollowing is the syntax −Returning outlineColorobject.style.outlineColorModifying outlineColorobject.style.outlineColor = “color”ExampleLet us see an example of style outlineColor property − Live Demo body { color: #000; background: lightblue; height: 100vh; } p { background-color: seagreen; height: 200px; width: 200px; outline: 2px solid #000; } .btn { background: #db133a; border: ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
84 Views
The DOM style outline property returns and modify the outline of an element in an HTML document.SyntaxFollowing is the syntax −1. Returning outlineobject.style.outlineModifying outlineobject.style.outline = “width style color”ExampleLet us see an example of HTML DOM style outline property − Live Demo body { color: #000; background: lightblue; height: 100vh; } p { background-color: seagreen; height: 200px; width: 200px; } .btn { background: #db133a; border: none; height: ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
50 Views
The DOM style paddingLeft property returns and modify the left padding of an element in an HTML document.SyntaxFollowing is the syntax −Returning paddingLeftobject.style.paddingLeftModifying paddingLeftobject.style.paddingLeft = “value”ExampleLet us see an example of style paddingLeft property − Live Demo body { color: #000; background: lightblue; height: 100vh; } p { border: 2px solid #fff; } .btn { background: #db133a; border: none; height: 2rem; border-radius: 2px; width: 40%; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
51 Views
The HTML DOM style paddingBottom property returns and modify the bottom padding of an element in an HTML document.SyntaxFollowing is the syntax −Returning paddingBottomobject.style.paddingBottomModifying paddingBottomobject.style.paddingBottom = “value”ExampleLet us see an example of style paddingBottom property − Live Demo body { color: #000; background: lightblue; height: 100vh; } p { border: 2px solid #fff; } .btn { background: #db133a; border: none; height: 2rem; border-radius: 2px; width: 40%; ... Read More