Google Language Translator
[resolved] CSS inline in PHP (3 posts)

  1. Den999
    Posted 2 years ago #

    Hey, author.

    This is:

    #flags { text-align:right; width:150px; float:right; clear:right; }

    inside in PHP is very bad idea! U understand, I think? CSS inside PHP is BAD for change width, for example, to 200px. Next upgrade will remove this and put again 150px.


  2. Rob Myrick
    Plugin Author

    Posted 2 years ago #

    Hi Den999, thanks for your post. Yes, considering that there is currently no option to change the width of the flags container, I can see how you arrive at that conclusion (and I will take that suggestion for adding the option in a future update). But I don't believe this is related to the fact that I would use PHP and CSS together.

    You could override the #flags width by placing this in your current style sheet:

    #flags {
      width:200px !important;

    Then it will remain there even after plugin updates and it should override styles in the plugin. Hopefully I am understanding this correctly. Let me know if that helps.

  3. Den999
    Posted 2 years ago #

    Thanks for answer and for solution!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Language Translator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic