Quantcast
Browsing all 1307 articles
Browse latest View live

How do I Center Score Text for a Basketball Scoreboard? [duplicate]

I'm making a basketball scoreboard and I'm wondering how do I center the score text inside of the scoreboard container?While the main div is already set as a flex container, the p score text inside of...

View Article


Why flexbox in bootstrap isnt behaving as it should?

I have to edit an already made complex project(which is in php) using html, bootstrap and css. The flexbox doesn't respond correctly. I need two cards in a row. I tried doing it in an empty file and it...

View Article


Using Bootstrap, grid items overlap one another when scaling down my browser...

I've recently started to learn Bootstrap and used their grid system for one of the sections of my projects. Normally, when I use the base column container along with the row div followed by the grid...

View Article

Image may be NSFW.
Clik here to view.

FLexbox Dropdown Menu is making Sub categories Stand in a Line Instead of...

I have a problem with this website I been working onI want the navigation dropdown to look organized with the subcategories that are under the main categories, stacked on top of each other, without...

View Article

Is there a way to show columns side by side on desktop and one below the...

I am new to HTML and CSS and I am trying to format the result of my code so that the page is responsive and it looks one way on mobile and another way on desktop for better readability. I have made it...

View Article


Crop image only horizontally/`max-width: 100%` does not restrict image size?

Consider the following styling:.container { display: flex; width: 100vw;}.container > div { min-width: 20rem;}.container > img { object-fit: cover; height: 100vh; width: 100%;}Given the following...

View Article

How do I shrink my images according to adjusted screen size?

I've been struggling with getting my images to resize when switching to mobile etc. everything is fine when in desktop mode, images look fine.However, when I reduce the page size the image distorts as...

View Article

How can I make a flexbox parent have the width of its children?

I have a parent element, with two elements inside:<div class="parent"><div class="child"> one</div><div class="child"> two</div></div>Currently, the .parent is 100%...

View Article


Possible scroll bug with usage of overflow-hidden on body along with...

I encountered an odd problem in the app I'm developing. I'm originally using svelte and tailwind css, however I have reproduced the issue in pure html/css.In order to achieve a non-scrolling header, I...

View Article


Image may be NSFW.
Clik here to view.

How to make flexbox not take up the entire viewport width? [duplicate]

I tried searching and could not find an exact similar question, so posting it here.So I have a few block divs inside a flex wrapper with row wrapping, and I want to have a border for the wrapper. The...

View Article

what does css display:contents do?

I had a bug-like issue with a div inside a 'a' tag.<a href=''><div>..</div></a>this <a> tag was inside a flex parent.for some reason this <a> added a padding to the...

View Article

items not vertically centered when their height is floating point number...

i tried to center align element in flexbox ,with round number height it working proper but it getting failed when height get change into floating number .it should properly center align with floating...

View Article

Contain a flex column of images inside a flex row [closed]

I want to achieve a two-column layout with text on the left, and a column of images on the right. The column of images should be as tall as (but not taller) than the overall container for the layout....

View Article


Container with flex-direction: column doesn't grow horizontally when items...

Here's an example:https://jsfiddle.net/onucfm50/2/Works perfectly on Chrome, but on Safari the container width doesn't grow to match the total width of the content. Expected behavior is that the...

View Article

Maintaining Background Consistency as Button Count Decreases

Can the background remain consistent with the buttons as their number reduces from three to two to one?I want the background to resize to fit the new width when three columns become two and then one,...

View Article


How to modify flexbox so that one element fills up whole row [closed]

Trying to make a progress bar (for music playback), but when width of the #progress bar is 100%, it doesn't fill up the whole container .progress-bar (as seen in photo)(Light grey part depicts whole...

View Article

Image may be NSFW.
Clik here to view.

Placing links under input [closed]

So, I made this website where you have links under an input. I want the 4 links to be placed under the input like this for example . .q-links { list-style-type: none; display: flex; flex-direction:...

View Article


Image may be NSFW.
Clik here to view.

CSS responsive bug

I want to make it responsive but it does not workIt's a login page written in php.When I use the editor in the browser to check it it just looks like this :not able to see the start of the 2 inputs and...

View Article

Image may be NSFW.
Clik here to view.

Floating flex item height between other items

I have this markup. How do I make the height of a list with buttons float using CSS? And is it possible to do this without JS?The height should not exceed the height of the screen.If the height of the...

View Article

Resize divs with default size risizing window

I have seen similar topic with answers about size in % or vh, but its a bit different.I have a set of different plots with sizes 900x600 by default using this CSS:.chartbox { display: flex; flex-wrap:...

View Article
Browsing all 1307 articles
Browse latest View live