Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: putting raw css into an article

putting raw css into an article 1 year 3 days ago #46383

what is the best way to put the style tag and style your article in joomla?
joomla 2.5.
To get around for example in WP when it strips is to add a plugin to allow posts and pages to contain raw css, using the code the plugin provides.
Joomla strips the css. will joomla content editor ( JCE) do this without extras? or is there another extension i should check out?
Bubba is my life support and drill instructor...
Please become a member of OSTraining to reply to this post.

putting raw css into an article 1 year 3 days ago #46399

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16726
  • Thank you received: 371
  • Karma: 54
Hi and welcome, Ed!

Try adding style tags at the top of your article. For example,
<style type="text/css">
hr {color:sienna;}
p {margin-left:20px;}
body {background-image:url("images/back40.gif");}
</style>

If the code is being strip then you can use the following trick to stop the stripping of code for your Super User:
www.ostraining.com/blog/joomla/stop-joom...-stripping-out-code/

Let me know if you have any questions.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.