CVC 22500 (e) In front of a public or private driveway, except that a bus
engaged as a common carrier, schoolbus, or a taxicab may stop to load
or unload passengers when authorized by local authorities pursuant
to an ordinance.
The state law states that you cannot park in front of ANY driveway. No exception for it being your own.
You missed this exception:
22507.2. Notwithstanding subdivision (e) of Section 22500, a local
authority may, by ordinance, authorize the owner or lessee of
property to park a vehicle in front of the owner's or lessee's
private driveway when the vehicle displays a permit issued pursuant
to the ordinance authorizing such parking.
The local authority may charge a nonrefundable fee to defray the
costs of issuing and administering the permits.
A local ordinance adopted pursuant to this section may not
authorize parking on a sidewalk in violation of subdivision (f) of
Section 22500.