Jump to content

How to disable (=set to default) CSS keys display: flex and flex-direction: column?


Recommended Posts

I have troubles when printing a web page in Firefox (into pdf file). The web page does not detect resp. insert page breaks.

I found out that everything works fine when I disable (=uncheck) the checkboxes before the CSS key values

display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
flex-direction: column;

I have no access to the original web page code or server.
So I have to change them after loading by a javascript script

How can I disable them resp. whats the default (=non flex value)?

display: none !important;
flex-direction: none !important;

does not help

How else can I achieve it?

What about disabling flex compoletely including the CSS values
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;

Edited by pstein
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...