Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Custom styling gets overwritten

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello Team Bamboo!

Can you take a look at this page: bdadev.cloudapp.net/be/index.php/news

I am using Creative Solutions Creative Contact Form to build an online application. No matter what styling I give the form title and pretext, it gets overwritten. It should be white on the form.
Any ideas?
Thanks in advance,
Pat
  • Patricia Lawson's Avatar
  • Patricia Lawson
  • 12 Month basic
  • 285 posts
  • 1 Thanks
  • Karma: 1
The administrator has disabled public write access.
Hi Pat,

This is part of how css works - its called specificity

www.smashingmagazine.com/2007/07/css-specificity-things-you-should-know/

for example

.creative_form_11 .creativecontactform_pre_text

is less specific than

#mainWrap div

as it uses an id which is more specific (higher ranking points) than classes
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
So for the custom css to apply you need to add a style more specific than the existing one

#mainWrap .creativecontactform_pre_text.ccf_font_effect_none {color:#fff;}
should work

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
Last Edit: 8 years 1 month ago by manh.
The administrator has disabled public write access.
the same with the title

#mainWrap .creative_form_11 .creativecontactform_title {color:#fff;}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
you are also missing a close bracket on a media query I think

@media (min-width: 325px) and (max-width: 1100px) {
#maincontainerwrap.topmargin {
margin-top: 300px;
}
<<< here
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Yup! You nailed it. I will read the article you referenced. Thanks!!!

Also, thanks for discovering the missing curly brace! Will be interested to see what I was missing out on.

As always, you guys give terrific support.
  • Patricia Lawson's Avatar
  • Patricia Lawson
  • 12 Month basic
  • 285 posts
  • 1 Thanks
  • Karma: 1
The administrator has disabled public write access.
You're welcome

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers