When selecting a screw, the length is paramount. This measurement doesn't take into account any raised or domed heads; it solely pertains to how far down in the material they are placed with their pointed tip.  The ideal size should enter at least halfway through whatever you're attaching them to without sticking out on either side of it.