Keep transparency in a resized PNG
Choose a PNG, set your new width or height, and keep PNG selected in the export format. Transparent areas in the original carry through to the download.
Resize graphics for the web
Use pixel dimensions that match where your graphic will appear. For a high-density display, a 400-pixel logo can be displayed at 200 CSS pixels.