Relative Content

Tag Archive for cssflexbox

problem in the body when the keyboard is displayed on the cell phone

I am a recent front-end developer, I am working on a chat page that will be seen in browsers and on mobile devices. The page has an issue related to the on-screen keyboard appearing when a user wants to write a message. When the keyboard appears, the header is raised and the text box is above the keyboard, the problem is that the header should remain up while the text box is positioned above the keyboard, additionally if I scroll the header appears but the box getting behind the keyboard. I need a solution to automatically adjust the content using only CSS, so that all elements are always visible, the header as well as the text box.

Div is taking up extra space when the text is being wrapped

I’m trying to make my site responsive and when the font size is 12 everything is fine. But when I set the font size to 13 my text is getting wrap due to the lack of space. I’m ok with the text wrapping but for some reason my div is taking up extra space than necessary and the border on the right is looking awkward.
Image 1
Image 2

Understanding row item size in CSS flexbox

I’m learning CSS flexbox. I have created the mockup shown below. The green box is a flexbox item in a flexbox row layout. I have troubles understanding why that green box does not fill the space all the way to the right of the browser window.