In my react native app , I am using height and width in % . Then the inner...
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';import React from 'react';import globalStyles from '../../Utils/globalStyles';import Header from...
View ArticleDiv is taking up extra space when the text is being wrapped [duplicate]
I'm trying to make my site responsive and for mobile devices when the font size is 12 everything is fine. But when I set the font size to 13 my text is getting wrapped due to the lack of space. I'm ok...
View ArticleAdjusting the space between elements set by justify-content space-between
Is there any way to reduce the space in justify-content:space-between?There is too much space between elements. space-around is no solution either, so I was wondering if maybe I can for example say...
View ArticleHow to create a responsive circle with two lines of text in HTML and CSS?
body { display: flex; justify-content: center; align-items: center; gap: 15px;}.circle { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: #333;...
View ArticleUnderstanding flex, height and overflow
I have a behavior that puzzles me. The code below is the result of debugging a larger app. I know I can simplify it and make it work. However, I would like to understand and learn.There are two...
View ArticleHow to make a background image adjust its size to the viewport size in html...
I am currently facing an issue with placing a background image, which would adjust to the window size (scaling up or down when needed) while maintaining its position on the page. Above the background...
View ArticleHover effect to on different parts of an image
I want to create an interactive image with CSS where every part of it will reveal a different icon when you hover on it.I can't figure out how to make it responsive while:keeping all the parts sized...
View Articlenested flexbox with text truncation [duplicate]
I have a set of nested flexboxes, each with a flex-1 div on the left and a fixed width div on the right. I want the inner-most left div to take up available space and truncate its text if...
View ArticleNot able to move elements to the right on a html page
I'm having an issue with element positioning on my web pageI'm trying to code the header from the design. Here is the design:As you can see, the distance from the border should be the same for the...
View ArticleI have a Flexbox wrap that has a small jump when the browser is scaled
I'm trying to achieve the following responsive behaviour when scaling the browser.On desktop I want the label-input pair to show side by side. When scaling the browser width, I want the pairs to show...
View ArticleBootstrap Image does not respect parent flex size
I am trying to crate using bootstrap 5 image and text inside another image. When I resize the image is not contained inside parent . It is same issue as in LinkPlease see code...
View ArticleI was asked to make a replica of an already designed website [closed]
So I learnt responsive web design from freecodeCamp and this is my first actual project and I got stuck just around the beginning.The link; https://cowrywise.com/The above link is the exact web page...
View ArticleCSS wrappable flex row, weird gap when trying to add line break when...
I'm trying to add linebreak to wrappable flex row items.It basicaly work, but i have a gap i don't understand.I don't have a specific pattern, it comes from a setting file (So i want to rely on...
View ArticleMake two elements equal height, one with a vertical scroll bar
I am trying to make two sibling div elements the same height. The of them has an overflow-y and a scrollbar with variable height content. The main div has content that is also variable height depending...
View ArticleFlex design: extend element to page height [closed]
In the example below the element with "viewer" class it grows up over the page heightbody{ padding-top:3.25rem;}.vid { height:100%; display:block;}.vidpanel { height:100%;}.vidcontent {...
View ArticleFor some reason overflow to scroll is disabled on regular view and hidden on...
IMAGEAs you can see on the picture I attached, I am setting the chatRoom, the middle section to overflow-y:scroll , but when it's contents exceeds it's heights, on regular view the scroll remains...
View ArticleFlexbox child item width doesn't fit the content width
I have an issue with the Flexbox child item. It doesn't fit with the content width. The code is below..pw-event-options { -webkit-box-flex: 0; -webkit-flex: 0 0 280px; -moz-box-flex: 0; -ms-flex: 0 0...
View ArticleHow to make container scrollable but fill horizontally with React and Tailwind
I want a dashboard with a top and side bar and then the content in the middle. I want the content to be scrollable but I want it to fill the available height. The only issue is that when I try to fill...
View ArticleCorrect height nested div [duplicate]
I am trying to get the overflow scrolling on a nested div. The following snipped works because of the height: calc(100vh - 195px). I was wondering if there is a way to get the scroll withouth this...
View ArticleButton was placed under the footer [closed]
I'm building a website using React. On the pizza order page, the order and button were placed below the footer. I tried to implement Flexbox but was not successful. How can I fix this situation?I want...
View Article