Traffic laws are determined at the state level and vary from state to state. For example, as of 2014 in Minnesota, vehicles cannot park within 20 feet of a crosswalk. Local traffic laws are published in a driver's manual available through each state's Department of Motor Vehicles.
In most communities, there are additional restrictions for how close a car can park to stop signs or lights, fire hydrants and driveways. In Minnesota, as of 2014, cars cannot park within 30 feet of a stop sign or light, within 10 feet of a fire hydrant or within 5 feet of a driveway.