In height terms, about 6", the pigs will appraoch it with noses down.
As far as how far out, no real distance needed, just enough to stop it touching the netting.
If you do the netting the "wrong way round" then you can use the posts for both netting and the electric.
What does "wrong way round" mean? well normally you would put in the posts and then attach the wire to the inside of the enclosure - the theory being that an animal pushing against the wire will also be pushing the wire against the post, so not relying on the staples to hold the fence on.
Howver if you put the wire on the outside, then you can put screw in insulators on the inside of the posts to hold the electric.
It is the electric that keeps them in so the fact that the netting is on the outside doesn't matter, as they'll never touch the netting - once trained you can keep pigs just behind a single strand of tape, so the fence is only providing some additional comfort for you and a backstop for electric failure!
Screw in insulators let you adjust height easily, if your ground in not flat pigs over a period will level it for you, so the ones on a lower slope might need raising after a while.