-
AuthorPosts
-
TomC Moderator
TomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
October 1, 2007 at 5:19 pm #123003After having worked with a couple different JA Templates, I’ve noticed that when I add soem custome CSS menues (generally in a custom module), there is often a conflict with certain functions relating to the pre-existing CSS rules within the original tempalte file(s).
Usually, this has to do with an “arrow” graphic or a hover/active rule.
Now, I WANT to use the original rules for things like the mainmenu (for which it was intended), but I DON’T WANT To have those embedded rules trumping my custom CSS menus that I create and put into custom modules.
How can this be accomplished? Is there a particular hack or additional rule I can utilize so that my custom CSS menus function independently of the original/embedded CSS rules?
For an example of what I am talking about, see a WIP HERE based originally on JA-POLLUX.
The “embeded” CSS rules for menus is driving the top menu and the main menu (just under the logo).
My custom CSS menu is in the bottom “footer” bar (i.e. About UIs, FAQ, Terms & Conditions, etc.). Notice how, on mouseover/hover, the text turns to red as opposed to remaining white (as I have coded within the custom CSS rules in the custom module). Obviously, the site’s original/embedded CSS for active/hover is trumping my custom CSS.How can I overcome this issue?
:((
TOM
bernhar Friendbernhar
- Join date:
- July 2006
- Posts:
- 214
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 3 times in 1 posts
October 1, 2007 at 6:17 pm #230315What you call trumping is exactly what the “c” in css stands for: cascading.
Every setting of a rule in css is in a way percolated downwards unless you definitely choose another setting. What overrules what is stated explicitely in the W3C guide for the language CSS.If you want something to have another color than the inherited one why donĀ“t you just make a new css class?
Or did I misunderstand you?
Bernhard
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
October 1, 2007 at 6:48 pm #230316That’s what I thought I did in creating my custom CSS for the menus I made.
I guess what I really need to know is how can I go about arranging things so that the CSS rules for my custom menu(s) apply ONLY to my custom menus, and the CSS for the rest of the site applies to ONLY the rest of the site – ya know what I mean?
Menalto FriendMenalto
- Join date:
- May 2007
- Posts:
- 4736
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 2
- Thanked:
- 531 times in 361 posts
October 1, 2007 at 7:17 pm #230318A little busy here right now,but you can contact me anytime if you need it more described.
Lets say you wanna have different styling at the bottom and right side,then you can add something line this in the css file(
#bottom a:hover, #bottom a:active, #bottom a:focus,#right a:hover, #right a:active, #right a:focus {
And add the font,colors,size in thereTomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
October 1, 2007 at 11:27 pm #230329I think I understand what I need to do … I will try working with it tonight and see if I can’t configure things within the main templat.css file rather than a custom module with custom code.
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by TomC 17 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum