Web Development Articles

Page 79 of 801

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 506 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

How to remove event handlers in JavaScript?

Nikhilesh Aleti
Nikhilesh Aleti
Updated on 25-Oct-2023 30K+ Views

An event is defined as a change in an object's state. There are a number of events in HTML that show when a user or browser performs a certain action. JavaScript responds to these events when JavaScript code is embedded in HTML and allows execution. The process of responding to events is known as event handling. As a result, JavaScript uses event handlers to handle HTML events. In this article, we are going to discuss how to remove event handlers in JavaScript. Here, we use the removeEventListener() method to remove an event handler from an element in JavaScript. Using the ...

Read More

How to get the value of div content using jQuery?

Alex Onsman
Alex Onsman
Updated on 22-Oct-2023 27K+ Views

To get the value of div content in jQuery, use the text() method. The text() method gets the combined text contents of all matched elements. This method works for both on XML and XHTML documents.ExampleYou can try to run the following code to get the value of div content using jQuery:Live Demo $(document).ready(function() {    $("#button1").click(function() {      var res = $('#demo').text();      alert(res);    }); }); This is demo text. Get

Read More

How to create an unordered list without bullets in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 21-Oct-2023 20K+ Views

An unordered list is unordered list of items marked with bullets, circle, disc and square. It gives you the ability to control the list in the context. Allow us to group a set of related items in lists. HTML support ordered list, unordered list and we have to use the tag, to create unordered list in HTML. The tag defines the unordered list. We use tag to start list of items. The list of items can be marked as bullets, square, disc and circle. By default, the list items in the context marked with the bullets. ...

Read More

How to set table width in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 21-Oct-2023 27K+ Views

We use inline style attribute, to set the table width in HTML. The attribute is used within the HTML tag, with the CSS property width to set table width. Syntax Following is the syntax to set table width in HTML. … Example Following is the example program to set table width in HTML. DOCTYPE html> table { border:1px solid black; padding: 10px; ...

Read More

How to find the value of a button with JavaScript?

Abhishek
Abhishek
Updated on 21-Oct-2023 32K+ Views

In this tutorial, we will learn how we can find the value of a button with JavaScript. Sometimes, we need to use the button tag inside the form tag, where we assign a particularly unique value to each associated with the element using the value attribute. Which later helps the developer to uniquely identify the elements while working with them in the back end. JavaScript provides us with the value property to get the value passed inside the value attribute Let us discuss the value property in detail. Button value Property The button value property is used to get ...

Read More
Showing 781–790 of 8,006 articles
« Prev 1 77 78 79 80 81 801 Next »
Advertisements