Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Nitya Raut
Page 2 of 16
Create a blue button (primary) with Bootstrap
Use the .btn-primary class in Bootstrap to create a primary button in Bootstrap that is blue in color −Example Bootstrap Example Click below if you want to know the result: Result
Read MoreAdd a blue background color to simulate a pressed button in Bootstrap
To add a blue background color to simulate a pressed button, use the primary button in Bootstrap as in the following code −Example Bootstrap Example Score Result (2018) Result (2017)
Read MoreCreate a caret arrow icon that represents dropdown button with Bootstrap
Use the .caret class in Bootstrap to create a caret arrow icon representing dropdown button.You can try to run the following code to create a carot arrow icon −Example Bootstrap Example Brands The car brands: Car BMW Toyota Audi Mahindra Volvo
Read MoreUsage of CSS align-items property flex-start value
Use the align-items property with value flex-start to align flex items on the top.ExampleYou can try to run the following code to implement the flex-start value − .mycontainer { display: flex; height: 300px; background-color: red; align-items: flex-start; } .mycontainer > div { background-color: orange; text-align: center; line-height: 60px; font-size: 30px; width: 100px; margin: 5px; } Quiz Q1 Q2 Q3 Q4
Read MoreCreate a disabled look of a button with CSS
To create a disabled button look, use the CSS opacity property.ExampleYou can try to run the following code to create a disabled look of a button − .btn1 { color: black; text-align: center; font-size: 15px; } .btn2 { color: black; text-align: center; font-size: 15px; opacity: 0.5; } Result Click below for result: Enabled Disabled
Read MoreBuilding a Responsive Grid-View with CSS
You can try to run the following code to build a responsive grid-view:Example * { box-sizing: border-box; } .header { border: 1px solid black; padding: 10px; } .leftmenu { width: 30%; float: left; ...
Read MoreRotate Out Down Left Animation Effect with CSS
To create rotate out down left animation effect with CSS, you can try to run the following code −Example .animated { background-image: url(/css/images/logo.png); background-repeat: no-repeat; background-position: left top; padding-top:95px; margin-bottom:60px; -webkit-animation-duration: 10s; animation-duration: 10s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } @-webkit-keyframes rotateOutDownLeft { 0% { -webkit-transform-origin: left bottom; -webkit-transform: rotate(0); opacity: 1; } 100% { -webkit-transform-origin: left bottom; -webkit-transform: rotate(90deg); opacity: 0; } } @keyframes rotateOutDownLeft { 0% { transform-origin: left bottom; transform: rotate(0); opacity: 1; } 100% { transform-origin: left bottom; transform: rotate(90deg); opacity: 0; } } .rotateOutDownLeft { -webkit-animation-name: rotateOutDownLeft; animation-name: rotateOutDownLeft; } Reload page function myFunction() { location.reload(); }
Read MoreHow to select elements with a specified attribute and value with CSS
Use the [attribute = ”value”] selector to select elements with a specified attribute and value.You can try to run the following code to implement the CSS [attribute = "value"] Selector. Here, we have considered the attribute as rel,Example: a[rel = nofollow] { border: 3px solid blue; } Uber's Business Model Share Market
Read MoreHow to position tooltips correctly with CSS
To position tooltips correctly, use the right, left, top and bottom properties.Let us see how to position tooltips on the right:Example .mytooltip .mytext { visibility: hidden; width: 140px; background-color: blue; color: #fff; z-index: 1; top: -6px; left: 100%; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; } .mytooltip { position: relative; display: inline-block; } .mytooltip:hover .mytext { visibility: visible; } Keep mouse cursor over me My Tooltip text
Read MoreC++ Program to Implement Graham Scan Algorithm to Find the Convex Hull
A convex hull is the smallest convex polygon with maximum area and minimum perimeter that encloses all the given points in a 2D plane. In this article, we will learn how to write C++ program to implement Graham Scan Algorithm to find convex hull. The objective of this problem is to take a set of x and y coordinates of a 2d plane as input, and display coordinate point from the set which are part of convex hull. // Input Set of points: {0, 0}, {1, 1}, {2, 2}, {2, 0}, {1, 2}, {0, 2} // Output Boundary ...
Read More