CSS ??
CSS ??
- Started
- Last post
- 3 Responses
- heavyt
I want to center a parent DIV on a page.
Thus far, i have used :
left:50%;
left-margin:-150px;assuming that it is a 300px wide DIV.
problem is that the left side goes off of the screen if the browser is less than 300px wide.
what can i do?
TR1
- welded0
Well you're not going to cram a 300px div inside a window less than 300px wide no matter what you do... The method you use is the same as mine, and I haven't had any problems, IE Mac aside (doesn't like the doctype :\ ).
- heavyt0
agreed. what i want to do is have the left side visible always. basically, have it work like a table based layout would, but without tables.
If you have a good example, by all means send a link.
peace.
TR1
- sauceruney0
http://alistapart.com/articles/f…
read down all the way to the bottom (example 7)