To justify the flex items on the end, use the justify-content-end class.To justify the flex items on the end, on different screen sizes, use the justify-content-*-end class. The flex items justified at the end would be visible like the following on different screen sizes −Small Screen Size Alabama New York Texas Medium Screen Size Alabama New York Texas Let us see the complete code and learn how to work with justify-content-*-end class −ExampleLive Demo Bootstrap Example US Alabama New York Texas Alabama New York Texas Alabama New York Texas
Add less important stuff, using the card class with the bg-secondary contextual class in Bootstrap.This class adds a gray background −Inside that, add the card body − English You can try to run the following code to implement the card class with bg-secondary class in Bootstrap −ExampleLive Demo Bootstrap Example Languages English French Chinese Russian
To create a block element, use the .d-block Bootstrap 4 class.Use the d-block class − A block To set blocks for difference screen sizes, use the .d-*-block − A block for medium screen size Let us see an example to learn how to create block element −ExampleLive Demo Bootstrap Example Blocks Resize the browser to check the effect A block A block for medium screen size
Use the border-left-0 class to remove the left border of an element.Remove the left border of a using the class inside the − Removing left border The “one” class is also set in the class to style it − .one { width: 220px; height: 220px; margin: 50px; } You can try to run the following code to work with the border-left-0 class −ExampleLive Demo Bootstrap Example .one { width: 220px; height: 220px; margin: 50px; } Bootstrap 4 Removing left border
The application layer is the highest abstraction layer of the TCP/IP model that provides the interfaces and protocols needed by the users. It combines the functionalities of the session layer, the presentation layer and the application layer of the OSI model.The functions of the application layer are −It facilitates the user to use the services of the network.It is used to develop network-based applications.It provides user services like user login, naming network devices, formatting messages, and e-mails, transfer of files etc.It is also concerned with error handling and recovery of the message as a whole.This layer uses a number of protocols, ... Read More
Similarities between OSI and TCP / IP Reference ModelsBoth the reference models are based upon layered architecture.The layers in the models are compared with each other. The physical layer and the data link layer of the OSI model correspond to the link layer of the TCP/IP model. The network layers and the transport layers are the same in both the models. The session layer, the presentation layer and the application layer of the OSI model together form the application layer of the TCP/IP model.In both the models, protocols are defined in a layer-wise manner.In both models, data is divided into ... Read More
The advantages of the OSI model areIt is a generic model and acts as a guidance tool to develop any network model.It is a layered model. Changes are one layer do not affect other layers, provided that the interfaces between the layers do not change drastically.It distinctly separates services, interfaces, and protocols. Hence, it is flexible in nature. Protocols in each layer can be replaced very conveniently depending upon the nature of the network.It supports both connection-oriented services and connectionless services.The disadvantages of the OSI model areIt is purely a theoretical model that does not consider the availability of appropriate ... Read More
The advantages of TCP/IP protocol suite areIt is an industry–standard model that can be effectively deployed in practical networking problems.It is interoperable, i.e., it allows cross-platform communications among heterogeneous networks.It is an open protocol suite. It is not owned by any particular institute and so can be used by any individual or organization.It is a scalable, client-server architecture. This allows networks to be added without disrupting the current services.It assigns an IP address to each computer on the network, thus making each device to be identifiable over the network. It assigns each site a domain name. It provides name and ... Read More
The transport layer (Layer 4) is responsible for delivery of an entire message from an application program on the source device to a similar application program on the destination device.The main functions of the transport layer are as follows −It delivers a message from a specific process of one computer to a specific process in another computer. The transport layer adds a port address to the header of the data packet.It divides a message into smaller segments such that each segment contains a sequence number along with the port address. It ensures that the segments arrive correctly at the receiver’s ... Read More
Calculating the area of a triangle is a formula that you can easily implement in python. If you have the base and height of the triangle, you can use the following code to get the area of the triangle,def get_area(base, height): return 0.5 * base * height print(get_area(10, 15))This will give the output:75If you have the sides of the triangle, you can use herons formula to get the area. For example,def get_area(a, b, c): s = (a+b+c)/2 return (s*(s-a)*(s-b)*(s-c)) ** 0.5 print(get_area(10, 15, 10))This will give the output:49.607837082461074
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP