Define Two Column Layout Using Flexbox

Aayush Mohan Sinha
Updated on 27-Jun-2024 16:54:55

5K+ Views

To create a two column layout using flexbox can be so easy if you have the knowledge of CSS display property. Flexbox is a layout model in CSS that provides an efficient and flexible way to arrange and distribute space between items within a container. It arranges elements in a single dimension, either horizontally or vertically, within a container. To know more about the CSS Flexbox Layout visit the attached link. Imagine we have parent div and inside that div we have two child div all we have to do is place those child div side by horizontally. Ways to ... Read More

Binary Search: Recursive and Iterative in C Program

sudhir sharma
Updated on 26-Jun-2024 23:40:25

85K+ Views

Binary Search is a search algorithm that is used to find the position of an element (target value ) in a sorted array. The array should be sorted prior to applying a binary search. Binary search is also known by these names, logarithmic search, binary chop, half interval search. Working of Binary Search The binary search algorithm works by comparing the element to be searched by the middle element of the array and based on this comparison follows the required procedure. Case 1 − element = middle, the element is found return the index. Case 2 − element > middle, ... Read More

Set DIV Width to Fit Content Using CSS

Shabaz Alam
Updated on 26-Jun-2024 17:46:43

52K+ Views

To set div width to fit content using CSS is an important task due to various reasons like making a responsive design and optimal use of space. In this article, we have used a p element to write content inside div element. We are having div as parent element and content written in p is our child element. Our task is to set div width to fit content written in p element. Approaches to Set div width to Fit Content using CSS There are multiple ways to set div width to fit content using CSS, here is a list ... Read More

Get System MAC Address of Windows and Linux Machine in Java

Shiva Keerthi
Updated on 26-Jun-2024 17:39:44

3K+ Views

Computers can connect to a network and communicate with other devices using a hardware or software component known as Network Interface Controller (NIC). NIC helps in creating a layer which helps in transmitting and receiving data between two devices. MAC address known as Media Access Control address is a unique identifier of NIC. It is of 48 bits of hexadecimal digits. It is used by the data link layer to control access, ensure data integrity, and identify network devices. In this section, we will be learning about how to find a MAC address of a Windows and Linux machine using ... Read More

Make a Div Horizontally Scrollable Using CSS

Shubham Vora
Updated on 26-Jun-2024 17:18:47

6K+ Views

To make a div horizontally scrollable we will need to use the CSS overflow property. In this article we will show all the possible ways to make div horizontally scrollable. First, let’s understand why we need to make a div horizontally scrollable. For example, the width of the parent div element is 500px, or the screen size is 500px. Now, the content of the div element is 1500px. So, if we don’t make the parent div horizontally scrollable, it breaks the UI of the application. So, we can make it scrollable, and users can scroll to see the invisible ... Read More

Difference Between Descriptive Research and Experimental Research

Shirjeel Yunus
Updated on 26-Jun-2024 15:53:46

810 Views

Descriptive research and experimental research are quantitative research and in this article, we will discuss about the difference between descriptive and experimental research. Descriptive Research The aim of descriptive research is to describe topics like population, phenomenon, or situation in a systematic way. The questions that can be answered through this research are what, where, when, and how. This research does not answer the why questions. Different types of research methods are used for descriptive research. Methods of Descriptive Research Descriptive research is a type of quantitative research and the research has to be done in such a way that ... Read More

Difference Between Research Papers and Technical Articles for Journal Publication

Shirjeel Yunus
Updated on 26-Jun-2024 15:53:18

553 Views

This is an article in which you will know about the difference between research papers and technical articles. Research Papers A research paper is content which consists of reports and results of different examinations. The results are related to a particular field and the paper is designed in such a way that they assess the results and compare it with other modern solutions. It can also be considered as a type of academic essay which includes scholarly results and detailed assignments. You need to have a strong knowledge regarding the topic about which you have to write a research paper. ... Read More

Targeting Only Firefox with CSS

Mohit Panchasara
Updated on 26-Jun-2024 14:27:14

5K+ Views

While developing the web application, developers must make it look fine in every browser. Some CSS properties are not supported by the browsers like Firefox but are supported by other browsers such as Chrome, Opera, etc. In such cases, we need to write a CSS code that targets only Firefox browser. In this article, we will learn two different methods to write CSS, which targets only Firefox browsers. Different ways to target Firefox with CSS There are two ways to target firefox with CSS as mentioned below. Using the Mozilla-specific CSS Extension ... Read More

Center a Div Within Another Div

Asif Rahaman
Updated on 26-Jun-2024 13:38:06

7K+ Views

To center a div is one of the most important aspects of front-end development. In this article, we will center a div inside another div using HTML and CSS. We will have a parent div which shall have the child div. Our task would be to place the child div at the center of the parent div. Different ways to Center a Child div There are mltiple ways to center a child div, here we will show each approach with complete code. CSS transform and position Property CSS Grid ... Read More

Get Size of File in Bytes, Kilobytes and Megabytes in Java

Shiva Keerthi
Updated on 26-Jun-2024 12:51:24

4K+ Views

Size of a file is the amount of storage space occupied by that particular file on a particular storage device such as a hard drive. Size of a file is measured in terms of bytes. In this section, we will be discussing how to implement a java program to get the size of given file in bytes, kilobytes and megabytes. Understanding the file Sizes and Units of Measurement A byte is the smallest unit of digital information. One byte is equal to eight bits. 1 kilobyte (KB) = 1, 024 bytes 1 megabyte (MB) = ... Read More

Advertisements