I bought a Joomla template but I don't have a support subscription anymore so I need to modify the styling myself.
- I want to change the background of the highlighted "violet" on the left side, with an image background.
- On the left side of the image are the codes.
- I want to put a CSS override putting an image background.
The "violet" div has no id; but its parent does. You do not need an Id to match an element; a unique class / class combination will be enough. To be on the safe side you could select by parent id followed by the child classes:
#gkHeader: the item whose id is gkHeader;>: the immediate children (direct children of the previous selector).box.mediumspaces.greybg: with all the classes separated by dotsShould your child divs have no distinctive class combinations that will allow you to select one, you could still achieve this with a positional selector:
where:
#gkHeader > divselects all direct descendants of<div id="gkheader">please mind the spaces,
.class1 .class2is selecting an item withclass="class2"contained in another withclass="class1";.class1.class2is selecting an item withclass="class1 class2"If your rule does not work, but you see it in the browser inspector, there may be a rule with a more relevant selector; if so, be more specific in your selector (add more parents, or use ids instead of classes), or add
!importantafter the style