SAN FRANCISCO (CBS/AP) – If your preschooler can’t sleep—turn off the violence and nighttime TV.

That’s the message in a new study that found sleep problems are more common in 3- to 5-year-olds who watch television after 7 p.m.

READ MORE: San Francisco Police Locate Yorkshire Terrier Stolen During Brazen Vehicle Break-In

Watching shows with violence—including kids’ cartoons—was also tied to sleeping trouble. Problems included difficulty falling asleep, nightmares and daytime sleepiness.

Viewing nonviolent shows during the day didn’t seem to have any connection with sleep problems in the more than 600 youngsters studied.

READ MORE: COVID Reopening: Excitement Builds As Hours Count Down To State's Reopening

The study builds on previous research linking media use with kids’ sleep problems, and also bolsters arguments for limiting screen time for very young children.

The study was released online Monday in Pediatrics

MORE NEWS: UPDATE: Temperatures Will Soar Into Triple Digits By Mid-Week

(Copyright 2011 by CBS San Francisco. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Wire services may have contributed to this report.)