A dense fog advisory was in effect until 3 p.m. for the Chicago area with foggy conditions along the shoreline lingering into Thursday night, according to the National Weather Service.