- 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 1566 Articles for CSS
![George John](https://www.tutorialspoint.com/assets/profiles/13511/profile/60_58410-1512537824.png)
81 Views
Set gap between Grid rows with CSS. You can try to run the following code to implement the grid-row-gap property.ExampleLive Demo .container { display: grid; background-color: green; grid-template-columns: auto auto; padding: 20px; grid-column-gap: 20px; grid-row-gap: 20px; } .ele { background-color: orange; border: 2px solid gray; padding: 35px; font-size: 30px; text-align: center; } Game Board 1 2 3 4 5 6
![Nancy Den](https://www.tutorialspoint.com/assets/profiles/13557/profile/60_88439-1512714529.jpg)
74 Views
Use the flex-wrap property with wrap value to wrap flex-items.ExampleYou can try to run the following code to implement the wrap value −Live Demo .mycontainer { display: flex; background-color: orange; flex-wrap: wrap; } .mycontainer > div { background-color: white; text-align: center; line-height: 40px; font-size: 25px; width: 100px; margin: 5px; } Quiz Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9
![Chandu yadav](https://www.tutorialspoint.com/assets/profiles/22330/profile/60_142811-1519038104.jpg)
364 Views
You can try to run the following code to create a bordered button group with border propertyExampleLive Demo .btn { color: black; background-color: yellow; width: 120px; text-align: center; font-size: 15px; padding: 20px; float: left; border: 3px solid blue; } .mybtn { background-color: orange; } Result Click below for result: Result Result Result Result Result
![Daniol Thomas](https://www.tutorialspoint.com/assets/profiles/13551/profile/60_130035-1512726078.jpg)
11K+ Views
To set the speed of the hover, use the transition-duration property. To set the hover, use the :hover selector.ExampleYou can try to run the following code to speed the hover effect −Live Demo .btn { background-color: yellow; color: black; text-align: center; font-size: 15px; padding: 20px; border-radius: 15px; border: 3px dashed blue; transition-duration: 2s; } .btn:hover { background-color: orange; color: black; border: 3px solid blue; } Result Click below for result: Result
![Krantik Chavan](https://www.tutorialspoint.com/assets/profiles/13545/profile/60_126883-1512724834.jpg)
331 Views
Use the CSS :hover selector to create hoverable buttons. You can try to run the following code to create hoverable buttons:ExampleLive Demo .btn { background-color: yellow; color: black; text-align: center; font-size: 15px; padding: 20px; border-radius: 15px; border: 3px dashed blue; } .btn:hover { background-color: orange; color: black; border: 3px solid blue; } Result Click below for result: Result
![Arjun Thakur](https://www.tutorialspoint.com/assets/profiles/13574/profile/60_74441-1560315595.jpg)
724 Views
To add colored border, use the CSS border property.ExampleYou can try to run the following code to add a colored border.Live Demo .button { background-color: yellow; color: black; text-align: center; font-size: 15px; padding: 20px; border-radius: 15px; border: 3px dashed blue; } Result Click below for result: Result
![Nishtha Thakur](https://www.tutorialspoint.com/assets/profiles/13598/profile/60_104893-1512719058.jpg)
125 Views
Use the flex-wrap property with nowrap value to avoid flex-items to wrap.ExampleYou can try to run the following code to implement the nowrap value −Live Demo .mycontainer { display: flex; background-color: orange; flex-wrap: nowrap; } .mycontainer > div { background-color: white; text-align: center; line-height: 40px; font-size: 25px; width: 100px; margin: 5px; } Quiz Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9
![Yaswanth Varma](https://www.tutorialspoint.com/assets/profiles/511236/profile/60_1602256-1662106429.jpg)
3K+ Views
Button padding, as used in web development, describes the gap that exists between a button's text or icon and its edges. With CSS (Cascading Style Sheets), you can change a button's padding. The CSS padding property is used to add space to an element's border and surrounding area. Padding is essential since it is the innermost portion of the CSS box model that affects the element's spacing. The CSS box model contains the element's margin and border styles in addition to padding. The CSS padding is important to achieving the ideal balance between design aesthetics and functionality, which is essential ... Read More
![George John](https://www.tutorialspoint.com/assets/profiles/13511/profile/60_58410-1512537824.png)
20K+ Views
To change the font size of a button, use the font-size property.You can try to run the following code to change the font sizeExampleLive Demo .button { background-color: yellow; color: black; text-align: center; font-size: 15px; } Result Click below for result: Result
![Smita Kapse](https://www.tutorialspoint.com/assets/profiles/13597/profile/60_103706-1512718957.jpg)
111 Views
Use the flex-wrap property with wrap-reverse value to wrap flex-items in reverse order.ExampleYou can try to run the following code to implement the wrap-reverse value −Live Demo .mycontainer { display: flex; background-color: orange; flex-wrap: wrap-reverse; } .mycontainer > div { background-color: white; text-align: center; line-height: 40px; font-size: 25px; width: 100px; margin: 5px; } Quiz Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9