Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a centered div using css

Status
Not open for further replies.

nerbonne

Technical User
Dec 11, 2006
99
US
Hi. I started trying to customize a css template from Dynamic Drive. I want to have a centered 660px middle frame (or cell, div, box, whatever it's called..). If you look at the example, the sides are a set width and the middle expands to fit the screen resolution of the browser. I want to basically do the opposite. Keep the middle at 660px and expand the sides to fit the screen resolution.

Can anyone tell me how to modify this code to do that?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top