PDA

View Full Version : Adapt Width to page size with CSS



blurredline
05-18-2004, 02:26 PM
I am looking to use the same navigation (on top with Home, Health Library links) as seen here http://www.uillinoismedcenter.org/. In looking at the site's stylesheet, I see that the text links are one div and have a set width and the orangeish container is a div witha set width, both in pixels. I want my nav to resize with the page ( I am assuming both divs will have to resize). Is there a way to use css to adapt to page size?

Chris
05-18-2004, 08:14 PM
use width: 100%;

Percept
05-19-2004, 03:22 PM
or set no width at all.