
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 1594 Articles for CSS

473 Views
The position: fixed; property allows you to position element relative to the viewport. You can try to run the following code to implement CSS position: fixed;ExampleLive Demo div{ position: fixed; bottom: 0; right: 0; width: 200px; border: 3px solid blue; } position: fixed; The position: fixed; property allows you to position element relative to the viewport. div has position: fixed; Output

321 Views
The descendant selector in CSS is used to match all elements that are descendants of a specified element.ExampleYou can try to run the following code to implement CSS Descendent Selector:Live Demo div p { background-color: orange; } Para 1 in the div Para 2 in the div Para 3 outside the div. Output

398 Views
Use the child selector, if you want to select all elements immediate children of a specified element.div > pExampleYou can try to run the following code to implement CSS Child SelectorLive Demo div > p { background-color: orange; } Para 1 in the div. Para 2 in the div. Para 3 outside the div. Output

307 Views
The CSS overflow-x allows you to decide what to do with the left right edges of the content.ExampleYou can try to run the following code to implement the overflow-x propertyLive Demo div { background-color: orange; width: 250px; height: 45px; border: 2px solid blue; overflow-x: hidden; overflow-y: scroll; } Heading Overflow property used here. This is a demo text to show the working of CSS overflow-x and overflow-y. Output