In this scenario, there is a div
with the class of some-class
that can have either one or two child div
elements. When there is only one child div
, I want it to have a width of 100%
. However, if there are two child div
elements present, I want them to have widths of 60%
and 40%
respectively. Unfortunately, I am unable to modify the HTML as it is generated by a content management system.
Is there a CSS workaround that can achieve this desired layout?