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

Share this post

Link to post
Share on other sites

The default is most likely "block" but I can't see your HTML so I can't be sure.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...