CSS Articles

Page 83 of 130

Absolute Positioning Using CSS

AmitDiwan
AmitDiwan
Updated on 27-Oct-2023 709 Views

We can define positioning of an element in CSS as absolute which renders the element relative to the first positioned (except static) parent. Elements with positioning method as absolute are positioned by CSS Positioning properties (left, right, top and bottom). The position property has the following values − static relative fixed absolute sticky Here is how we position an element with absolute positioning, relative to the first positioned parent − We need to set absolute positioning. For that, use the position property − position: absolute;  Positioned Elements as Absolute Example In this example, we have ...

Read More

A Practical Guide to Font Styling using CSS

AmitDiwan
AmitDiwan
Updated on 27-Oct-2023 97 Views

CSS plays a key role in font styling. The CSS font properties allow us to change the font-family, font-size, font-weight, font-kerning, and a lot more properties. The CSS font property is a shorthand for font-style, font-variant, font-weight, font-size/line-height and font-family. Further, we can apply styles to the text through text-decoration using CSS text-shadow, text-stroke, text-fill-color, color, etc. color − This property is used to change the color of the text. font-family − This property is used to set the font face for an element. font-kerning − To make the character spacing uniform and increase readability, the font-kerning property is ...

Read More

How to create a mega menu (full-width dropdown menu in a navigation bar) with HTML and CSS?

AmitDiwan
AmitDiwan
Updated on 27-Oct-2023 2K+ Views

The mega menu includes the menus with dropdown menus. The dropdown will have a complete setup for creating rows and columns and adding content like this − The mega menu i.e., the full-width dropdown menu in a navigation bar appears like this − On clicking the Projects dropdown menu, the dropdown menu appears − Set the Navigation Menu We have set the menu links inside the Home About Contact Us More Info Style the Menu and Links The navigation menu ...

Read More

How to create a responsive navigation bar with dropdown in CSS?

AmitDiwan
AmitDiwan
Updated on 27-Oct-2023 2K+ Views

To create a responsive navigation bar, the media queries are used. Media Queries is used when you need to set a style to different devices such as tablet, mobile, desktop, etc. The navigation bar with dropdown looks like the following. The dropdown menu is having Contact Us, Visit Us, and About Us sub-menus − Style the Navigation Menu and Links The background color of the navigation menu are set here, with the links. The menu links are set with the display property inline-block. It displays an element as an inline-level block container − nav{ background-color: ...

Read More

How to create a bottom navigation menu with CSS?

AmitDiwan
AmitDiwan
Updated on 27-Oct-2023 1K+ Views

To create a bottom navigation menu, set the nav element with the bottom and position properties. The position property is set to fixed and the bottom is set to 0px. The bottom navigation menu looks like the following on a web page. The menu is placed is fixed in the bottom as shown below − Create a Navigation Menu First, set the navigation menu with some menus − Home Login Register Contact Us More Info Style ...

Read More

How to create an animated, closable side navigation menu with CSS?

AmitDiwan
AmitDiwan
Updated on 27-Oct-2023 509 Views

To create an animated, closable side navigation menu, provide a mechanism to close and open it on the click on a button. The menu is opened with a button and closed with x. The event listened is used for the same and the functions are called to set the width of the navigation menu. Let’s say the following is a button on a web page − On clicking the above button, the side navigation opens − Create a Button to Open the Menu First, set a button that will open the navigation menu − Click here to ...

Read More

Design a Vertical and Horizontal menu using Pure CSS

Yaswanth Varma
Yaswanth Varma
Updated on 09-Oct-2023 545 Views

The menu is a crucial component of any website. It helps visitors find your quality material and directs them to the key portions of your website. Of course, CSS is the best language for creating stunning navigation menus. It is incredibly adaptable and can be used for any kind of website. It can be shown either horizontally or vertically before the primary content of the webpage or header. The task we are going to perform in this article is to design a vertical and horizontal menu using Pure CSS. That can be done by using the and tags. ...

Read More

Display div element on hovering over <a> tag using CSS

Yaswanth Varma
Yaswanth Varma
Updated on 26-Sep-2023 581 Views

CSS can be used to make HTML hidden components visible when hovered over. This article will teach you how to reveal the hidden elements. Utilizing an adjacent sibling selector, we can use CSS to display any HTML element when the user hovers above the tag. When selecting an element that is close to or adjacent to a specific selector tag, the adjacent sibling selector is used. This combinator only chooses one tag that is adjacent to the target tag. Let's dive into the article for getting better understanding on displaying element on hovering over tag using CSS. ...

Read More

How set the shadow color of div using CSS?

Yaswanth Varma
Yaswanth Varma
Updated on 26-Sep-2023 290 Views

The task we are going to perform in this article is to set the shadow color of a using CSS. Like every object we can observe has a shadow, we can also make any color a shadow for the element by using CSS. You have probably seen several special effects while browsing the majority of websites. Let's get a better understanding on creating a shadow color of using CSS further in this article. This can be done by using the box-shadow property. CSS box-shadow property In CSS, the box-shadow property is used to give an element's frames ...

Read More

Apply Glowing Effect to the Image using HTML and CSS

Yaswanth Varma
Yaswanth Varma
Updated on 26-Sep-2023 1K+ Views

You have probably seen several special effects while browsing the majority of websites, which may be viewed while your cursor is over various images. We are going to process same in this article. Such images could serve as a cards for our website. The task we are going to perform in this article was to apply glowing effect to the image using HTML and CSS. The task can be accomplished by using the box-shadow property. let's dive into the article to learn more about applying the glowing effect. Using box-shadow property The box-shadow property allows you to cast a drop ...

Read More
Showing 821–830 of 1,299 articles
« Prev 1 81 82 83 84 85 130 Next »
Advertisements