Bulma: Content inside a column and "position: fixed;"

Created on 12 May 2018  路  5Comments  路  Source: jgthms/bulma

captura de pantalla 2018-05-12 a las 14 45 32


This is about Bulma | the Docs.


Is it a bug/feature/question or do you need help?

Overview of the problem

This is about the Bulma CSS framework




Description

I have two columns. Inside one of them, I have a content div. When I set this div position: fixed, it overlays the column.

Steps to Reproduce

  1. Create a column.
  2. Create a content div inside it.
  3. Give it the "position: fixed;" style.

Expected behavior

I expected it to be fixed and inside the column.

Actual behavior

The text goes over the column.

Most helpful comment

Sticky is not supported by IE so maybe not the best.

Who cares about IE? 馃槅

All 5 comments

By adding position: fixed the element is out of the flow, and is positioned relatively to the viewport.

Read more: https://cssreference.io/property/position/ https://developer.mozilla.org/en-US/docs/Web/CSS/position

Hi @jgthms this definitely works correctly, I agree, however, I do wonder what the best way is to fix a column in place.

This example shows a menu on the left which is located within a column and it would be nice if I could fix it in place.

screen shot 2018-05-23 at 7 27 54 pm

I think what you're looking for is:
position: sticky; top: 0;

Sticky is not supported by IE so maybe not the best.

Sticky is not supported by IE so maybe not the best.

Who cares about IE? 馃槅

Was this page helpful?
0 / 5 - 0 ratings