Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Flexbox centering doesn't work #12367

Closed
tiborsaas opened this issue Jul 10, 2014 · 8 comments
Closed

Flexbox centering doesn't work #12367

tiborsaas opened this issue Jul 10, 2014 · 8 comments
Labels

Comments

@tiborsaas
Copy link

I've tried many approaches, none seems to work, like: display: flex, display: -webkit-flex;

Problem is that the text appears at the top of the page instead of the middle.

Example files:
http://pastebin.com/2hx9e7yT
http://pastebin.com/H7uRKjYV

I'm using PhantomJS 1.9

@ghost
Copy link

ghost commented Aug 28, 2014

try using the early spec syntax:

  display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-pack: center;
    -webkit-box-align: center;

Early flex spec howto:
http://www.html5rocks.com/en/tutorials/flexbox/quick/
Using Phantom 1.9 I was able to get this working.

@JacksonGariety
Copy link

On phantom 2.1.1 and neither syntax works at all.

@enpfeff
Copy link

enpfeff commented Jun 6, 2016

on 2.1.1 linux x64 build flex-direction column isn't working as expected

[Edit] - narrowed down the issue to when you are using multiple browser prefixes

display: flex;
flex-direction: column;
works on linux

but

display: -webkit-box;
  display: -moz-box;
  display: -webkit-flexbox;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
-webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;

does not

@tuxayo
Copy link

tuxayo commented Aug 3, 2016

See #14365

@aliatsis
Copy link

+1

@vitallium
Copy link
Collaborator

Could you please try again with 2.5 binary? Thanks!

@attiks
Copy link

attiks commented Mar 9, 2017

Manual work-around works, download from https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.5.0-beta-linux-ubuntu-xenial-x86_64.tar.gz and extract phantomjs to node_modules/phantomjs-prebuilt/bin/phantomjs

@ghost ghost removed this from the Release 2.5 milestone Jan 10, 2018
@ghost ghost removed the Webkit label Jan 10, 2018
@stale stale bot added the stale label Dec 25, 2019
@stale
Copy link

stale bot commented Dec 28, 2019

Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants