Skip to main content

All Questions

Tagged with
0 votes
2 answers
63 views

Display list in several columns and keep the number of elements per column equal when their heights are different

I simply need to have an unordered list displayed in 3 columns, but without vertical alignment. Is there a way to remove the gap between the list element no. 2 and no. 5 in this example? I already ...
Setyl's user avatar
  • 690
1 vote
1 answer
54 views

How to have independent column heights in HTML CSS grid?

I'm trying to create the following layout on desktop: And have it responsively adjust to this on mobile (notice members comes before posts): And I cannot figure it out. For example, if I have this: ...
Ryan Peschel's user avatar
  • 11.9k
-1 votes
1 answer
31 views

Large floating element next to automatically sized elements

In HTML, an element is in flow or out of flow. float: right can be used to take elements out of flow. In-flow and out-of-flow elements can be combined, i.e. some elements can be in flow while others ...
root's user avatar
  • 2,468
1 vote
2 answers
60 views

How to align metadata (time and icon) in a chat bubble layout when text is short?

How it should look "the correct version" How it looks, "the incorrect version" The metadata looks ok when the text is long, however, when the text is short for example, the user ...
Rodrygo's user avatar
  • 21
1 vote
4 answers
92 views

How to float elements from bottom left corner to top right corner

Is there a smart and simple way to float elements from bottom left corner to top right corner? My solution with display:grid is too static and has fix cols and not more than 10 items. I`m searching ...
Michael Koch's user avatar
0 votes
2 answers
42 views

Div is not floating right, problem seems to be linked to the CSS already in the code

I am currently attempting to make a simple header with HTML and CSS. I have encountered a problem where my button list is not floating to the right, giving the site an odd appearance. I tried floating ...
That Canadian Coder's user avatar
0 votes
0 answers
51 views

How do I use CSS flex to make two items float left and one float right? [duplicate]

I need to use CSS to make two items align left, one after the other, and the third item align to the right. Traditionally I would have used float: left and float: right for this but it's no longer ...
Pruss's user avatar
  • 257
-1 votes
1 answer
336 views

bootstrap 5: two column layout, text should flow around image

i just can't find the solution. i want to implement two columns in a row; in the left column there is an image (md-3 or lg-4) in the right column there is a long text (md-9 or lg-8). when i'm at the ...
Kasia's user avatar
  • 1
0 votes
3 answers
219 views

A way to float inline elements *below* their container

I'm building a template for writing some technical documentation. I'd love to do this with as little Javascript as possible. I am including a minimal example When the screen is wide, it floats ...
Jonathan Wheeler's user avatar
0 votes
1 answer
35 views

propper adjustment of text and list floating around figure/image # flexbox vs float or other methodes

based on this question: Image get misaligned in markdown when using align right or left First try with float - sub optimal positioning of bullet points img { float: left; margin-left: -52px; ...
InLaw's user avatar
  • 2,717
0 votes
1 answer
1k views

Get two columns when space, one column when parent is too narrow

I have two sets of paragraphs, which I've called left and right - see HTML at end of question. When their parent is wide enough I want them displayed side by side, in equal-width columns. When their ...
Darren Cook's user avatar
0 votes
0 answers
36 views

How can I horizontally center a gallery of variously sized elements without wasting space using pure CSS?

text-align:center on all elements horizontally centers each row float:left on all elements fills vertical space within each row, but rows are no longer centered Is there a way to get both of these ...
Ryan Hilbert's user avatar
  • 1,925
0 votes
1 answer
97 views

Make both boxes beside have always same height

I am pretty new to everything and is trying to achieve header, 2 boxes with different width and a footer. Everything all together but I need to make so when content in the box is changed the height ...
zveuse's user avatar
  • 7
2 votes
0 answers
205 views

Why does a negative margin on a flexbox not work after a float (on the opposite side)?

See the following demo: .float {float:right;width:30px;height:30px;background:red;} .flex {display:flex;margin-left:-50px;} .item {margin-left:50px;} .inlineblock {margin-left:-50px;} .inlineblock ...
Stephen's user avatar
  • 170
0 votes
1 answer
303 views

Reorganizing mobile divs into desktop, while it remains responsive and elements are not displayed sometimes

Is it possible to reorganize the divs from mobile view to desktop the way it is in the image below? I tried using grid, but the result wasn't satisfying, because the right elements' height was ...
WebDevZ's user avatar

15 30 50 per page
1
2 3 4 5
8