Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2328

Joomla! 4.x Coding • Overriding CSS Selectors

$
0
0
I have my user.css file set up properly in Joomla 4 using the Cassiopeia template but I do not have any experience overriding CSS when CSS selectors like *,>,etc are used. Can someone show me the correct way to override the following code in my user.css file so that I can adjust the margin-top as needed?

Code:

.container-component>:first-child,.container-sidebar-left>:first-child,.container-sidebar-right>:first-child,.container-component>*+*,.container-sidebar-left>*+*,.container-sidebar-right>*+* {    margin-top: 1em;}

Statistics: Posted by cipeone — Fri Jan 03, 2025 8:22 pm



Viewing all articles
Browse latest Browse all 2328

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>