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
Front End Technology Articles - Page 627 of 860
141 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
453 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
15K+ Views
To set the speed of the hover effect with CSS, we will be using two different approaches. These approaches includes using CSS transition and CSS animation properties. We are having a button and a div element which changes the styles upon hovering on them. Our task is to set the speed of the hover effect with CSS. Approaches to Set the Speed of the Hover Effect with CSS Here is a list of approaches to set the speed of the hover effect with CSS which we will be discussing in this article with step-wise explaination and complete example codes. ... Read More
414 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
975 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
238 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
5K+ 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
26K+ Views
To Change the font size of a button with CSS, we will be using two different approaches. In this article, we will see how to change the font size of button using CSS properties. We are having three different buttons, our task is to change the font size of buttons representing normal, smaller and larger font size of button. Approaches to Change the Font Size of a Button Here is a list of approaches to Change the font size of a button with CSS which we will be discussing in this article with step-wise explaination and complete example codes. ... Read More
204 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
2K+ Views
To change the background color of a button, use the background-color property.You can try to run the following code to change button’s background colorExampleLive Demo .btn { background-color: yellow; color: black; text-align: center; font-size: 13px; } Result Click below for result: Result