Found 10711 Articles for Web Development

How to set alternate table row color using CSS?

Shabaz Alam
Updated on 12-Apr-2023 09:06:07

8K+ Views

Tables are used to present data in a structured and organized format. It is an essential part of web design. Alternate row colors are used to enhance the readability and aesthetics of tables. Alternate row color is a design technique in which the background color of every other row in a table is different from the adjacent rows. This technique helps readers to differentiate rows and improves the overall look of the table. Basic CSS Syntax for Alternate Row Color The :nth-child() pseudo-class selector in CSS is used to set an alternate row color for a table. The nth-child selector ... Read More

How to set all the font properties in one declaration using CSS?

Shabaz Alam
Updated on 12-Apr-2023 09:04:41

1K+ Views

CSS or Cascading Style Sheets, is a powerful tool that provides a range of properties for aligning and positioning fonts on a web page. The font declaration property is one of the many properties available in CSS. In CSS, all font properties can be set in one declaration using the shorthand property. This property allows specifying the font style, variant, weight, size, line height, family, text decoration, and text transform all in one line of code. Setting Font Properties in CSS CSS provides a variety of font properties for styling text, which are used to style text on a web ... Read More

How to create a rainbow using HTML5

Aman Gupta
Updated on 11-Apr-2023 16:06:09

2K+ Views

Overview The task is to create a beautiful rainbow using the HTML5 version. The rainbow consists of the seven colors, these seven colors are Violet, Indigo, Blue, Green, Yellow, Orange and Red. These colors are arranged in the bottom-up approach. So to achieve this task we will use the Scalable Vector Graphics tag which helps us to create the graphics shape inside a HTML page. Inside the svg element we have several elements by which we can draw the shape. These tags are: rect, circle, ellipse, line, polyline, polygon and path. Syntax The syntax used to create the ... Read More

How to create radio button similar to the toggle button using Bootstrap

Aman Gupta
Updated on 11-Apr-2023 16:05:14

1K+ Views

Overview We can create a radio button same as the toggle button which can be used in our web application in the part where we have to choose the options or regarding changing actions. In creating the radio button we can use the bootstrap predefined classes which will help us to build a radio button. A toggle button is a button which is the same as a normal button toggleable button and a radio button is a button with a checkbox like shape in front of the option. Content Delivery Network (CDN) Links These CDN links are used to ... Read More

How to set align-self property to its default value in CSS?

Shabaz Alam
Updated on 12-Apr-2023 09:03:02

196 Views

CSS or Cascading Style Sheets is a powerful tool that provides a range of properties for aligning and positioning elements on a web page. The align-self property is one of the many properties available in CSS, which is used to adjust the alignment of individual flex items within a flex container. By default, align-self is set to auto, which means that the element will inherit the alignment of its parent container. However, this behavior can be changed for individual flex items by setting the align-self property. scc selector{ align-self: auto; } The align-self Property in CSS Before we discuss ... Read More

How to create progress bar using the HTML and CSS

Aman Gupta
Updated on 11-Apr-2023 16:03:32

2K+ Views

Overview The progress bar is the main component for any web application. The progress tells the completion of a certain project or task. In this module we will build the progress bar using the HTML and will style it through the CSS. We will also provide the progress animation to our progress bar. In this task we will use the @keyframes to make the progress bar animated. Using the animation styling property such as animation duration, name, timing, etc. Algorithm Step 1 − Create a HTML boilerplate in your text editor. Step 2 − Create the parent div container ... Read More

How to create progress bar in different colors in Bootstrap

Aman Gupta
Updated on 11-Apr-2023 16:01:18

719 Views

Overview Bootstrap provides beautiful ways to build the components to our website. The bootstrap comes up with certain classes by using these classes in our tags. A whole component can be built very nicely without adding an external style sheet, but if we want to make some changes to the component then we can add a stylesheet to it. To create a simple progress bar with the help of bootstrap, we will use certain bootstrap classes these are − progress progress-bar If we want to create a progress bar with the animated striped, bootstrap has its own ... Read More

How to create Portfolio Gallery using the HTML and CSS

Aman Gupta
Updated on 09-Nov-2023 14:11:34

1K+ Views

Overview A portfolio gallery can be a collection of any types of photos and videos that represent the past work of the organization. To build a portfolio gallery we will use HTML and CSS. The HTML will help us in building the skeleton of the portfolio gallery and CSS is used to make the styling of the portfolio. As the portfolio will also be the main component of our website so we will make this page responsive using some CSS properties. Algorithm Step 1 − Create a HTML boilerplate on your text editor. Step 2 − Create a container ... Read More

Which property specifies the right padding of an element in CSS?

Shubham Vora
Updated on 12-Apr-2023 09:01:50

141 Views

In CSS, the padding property allows us to add extra space between the HTML element’s border and its content. The right padding means only adding the space between the element’s content and the right border. Here, we will learn two different properties to specify the right padding of an element. Use the padding-right CSS Property The ‘padding-right’ property specifies the right padding of an element in CSS. Whenever we specify the right padding for an element, the width of the element becomes equal to the actual width + right padding. Syntax Users can follow the syntax below to specify the ... Read More

How to create a pop-up div on mouse over and stay when click using jQuery

Aman Gupta
Updated on 11-Apr-2023 15:51:28

3K+ Views

Overview The pop-up div can be created with the help of HTML, CSS and the functioning of which can be done with the help of ‘Javascript’ library ‘jQuery’. To make the mouseover and stay functionality to the div jQuery has a built in pre defined function. The two functions which are mainly used in this task are − mouseover − This function triggers when the mouse is over the selected element. mouseout − This function triggers when the mouse leaves the are of the selected element for mouse over. Algorithm Step 1 − Create a ... Read More

Advertisements