It actually can be. A molecule of oil does not burn twice. If you tax all the fossil fuels at the source (i.e. when they are extracted), then you tax all the emissions. The companies that extract the fossil fuels will pass some of the tax to those who buy from them, who will pass some of their purchasing costs to some who buy for them, etc.
You can take that tax revenue and pay people who remove CO2 from the atmosphere. For example if you own forested land you should receive a tax rebate proportional to how much CO2 the forest absorbs. This way you incentivize people to buy land and plant forests.
In the US we have 30 million acres of land cultivated with corn used for ethanol production. The idea is that corn-derived ethanol is not a fossil fuel, and legislating a 10% ethanol fraction in our gasoline is somewhat similar to a 10% reduction in fossil fuel use reduction. Of course, we use a lot of fossil fuels to produce that corn, but the bigger problem is that in the end all the CO2 scrubbed from the atmosphere by the 30 million acres of corn is put right back in when it's burned in a vehicle.
If you start giving people a tax rebate if they plant trees on their land, then the farmers will immediately stop the whole ethanol charade and plant trees.