You cannot drive directly from Miami, FL to Galveston, TX. Galveston is a barrier island completely surrounded by water (Gulf of Mexico, Galveston Bay). Access is only via:
To reach Galveston by car from Miami: drive ~1,100 miles (17 hrs) to Houston via I-10, then cross the causeway to the island.