Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text color problem #53

Open
mohanad-obaid opened this issue Jul 28, 2015 · 9 comments
Open

text color problem #53

mohanad-obaid opened this issue Jul 28, 2015 · 9 comments

Comments

@mohanad-obaid
Copy link

when setting the color of text , it shows always black

example :

Text Goes Here

@icrisu
Copy link

icrisu commented Aug 2, 2015

Hi, it seems that it's working if you place you're styles within the HTML document ( http://share.pho.to/9c6C6 )

@mohanad-obaid
Copy link
Author

its not working! tried style within html and inline style

@joshualo
Copy link

if you are using bootstrap CSS, phantomjs applies the @media print styles which make everything black & white.

@ghost
Copy link

ghost commented Dec 31, 2015

I had the same issue, the problem was relative paths!
Maybe its possible to solve this set DocumentRoot with the directory option? I haven't tried it because I'd prefer to solve by including the complete stylesheet with <style> Tags.

@dragma
Copy link

dragma commented Jul 31, 2016

Had the same issue, just put !important and it is working great !

Example :

.myClass {
    color: #123456 !important;
}

Regards
F.

@ghost
Copy link

ghost commented Aug 2, 2016

@dragma Don't use !important, your stylesheet will become a mess. Just use

@media print {
    .myclass { color: red; }
}

@dragma
Copy link

dragma commented Aug 2, 2016

@Dotmagic Thanks a lot for the trick ! :)

@williamknn
Copy link

@media print {} is not working here.

@grosscorporation
Copy link

@media print {} works like a charm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants