Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: How to override code in the template

How to override code in the template 10 months 3 weeks ago #50764

  • shirin
  • shirin's Avatar
  • OFFLINE
  • OSTar
  • Posts: 97
  • Karma: 0
Hi,

My template has this code:

input,textarea {
border:solid 1px #C8C8C8; color:#333333; outline:0; font:normal 13px/100% Verdana, Tahoma, sans-serif; background:0;box-shadow:rgba(0,0,0, 0.1) 0 0 8px; -moz-box-shadow:rgba(0,0,0, 0.1) 0 0 8px; -webkit-box-shadow:rgba(0,0,0, 0.1) 0 0 8px;
padding:9px;margin-bottom: 20px; }

this code puts padding around the email box I have in my social sharing module. I am trying to get rid of the box, padding and margin that this code is adding.

I have added a class to css for custom formatting, and put the name of the class in the module. Here is what I have:
.mysocialclass {
float: right;
width: 400px;
border: 1px solid #cccccc;
margin: 10px;
padding: 5px 0px 7px 5px;
}
No how do I overwrite the template code? I tried to write the code by I think I don't have the right syntax.
Please help

Thanks,
Shirin
Please become a member of OSTraining to reply to this post.

How to override code in the template 10 months 3 weeks ago #50766

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3954
  • Thank you received: 134
  • Karma: 9
Hi Shirin,

Applying the style to a class or id both override the style in the general tag style.

Are you trying to apply styling to your input type boxes for your .mysocialclass?

You'd have to create it as .mysocialclass input{} to override the above code.

Is this what you are asking to do?
Warm Regards,

Tessa Mero



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.

How to override code in the template 10 months 3 weeks ago #50791

  • shirin
  • shirin's Avatar
  • OFFLINE
  • OSTar
  • Posts: 97
  • Karma: 0
yes, thanks. let me try that
Shirin
Please become a member of OSTraining to reply to this post.

How to override code in the template 10 months 3 weeks ago #50792

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3954
  • Thank you received: 134
  • Karma: 9
Hi Shirin, you are welcome. Hope it works out for you.

If not, please provide the link to your website and I will take a quick look to give you more hints.
Warm Regards,

Tessa Mero



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.

How to override code in the template 10 months 2 weeks ago #50821

  • shirin
  • shirin's Avatar
  • OFFLINE
  • OSTar
  • Posts: 97
  • Karma: 0
it worked thanks.
Shirin
Please become a member of OSTraining to reply to this post.

How to override code in the template 10 months 2 weeks ago #50845

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3954
  • Thank you received: 134
  • Karma: 9
Hi Shirin,

You are very welcome. Glad it worked out for you. :-)
Warm Regards,

Tessa Mero



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.