Density is a fundamental driver of many ecological processes including habitat selection. Theory on density-dependent habitat selection predicts that animals should be distributed relative to profitability of habitat, resulting in reduced specialization in selection (i.e. generalization) as density increases and competition intensifies. Despite mounting empirical support for density-dependent habitat selection using isodars to describe coarse-grained (interhabitat) animal movements, we know little of how density affects fine-grained resource selection of animals within habitats [e.g. using resource selection functions (RSFs)]. Using isodars and RSFs, we tested whether density simultaneously modified habitat selection and within-habitat resource selection in a rapidly growing population of feral horses (Equus ferus caballus Linnaeus; Sable Island, Nova Scotia, Canada; 42% increase in population size from 2008 to 2012). Among three heterogeneous habitat zones on Sable Island describing population clusters distributed along a west-east resource gradient (west-central-east), isodars revealed that horses used available habitat in a density-dependent manner. Intercepts and slopes of isodars demonstrated a pattern of habitat selection that first favoured the west, which generalized to include central and east habitats with increasing population size consistent with our understanding of habitat quality on Sable Island. Resource selection functions revealed that horses selected for vegetation associations similarly at two scales of extent (total island and within-habitat zone). When densities were locally low, horses were able to select for sites of the most productive forage (grasslands) relative to those of poorer quality. However, as local carrying capacity was approached, selection for the best of available forage types weakened while selection for lower-quality vegetation increased (and eventually exceeded that of grasslands). Isodars can effectively describe coarse-grained habitat selection in large mammals. Our study also shows that the main predictions of density-dependent habitat selection are highly relevant to our interpretation of RSFs in space and time. At low but not necessarily high population size, density will be a leading indicator of habitat quality. Fitness maximization from specialist vs. generalist strategies of habitat and resource selection may well be apparent at multiple spatial extents and grains of resolution.