positioning 'centering' problem
hey its seems that i cannot center my wrapper and i am blind to why.
i did margin : 0 autol have a doctype and just dont know why
please take a look
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
ha figured it out! i am a nitwit! i didnt give a width - so wrapper was centerd for 100% of page; and the text i had wasnt aligned in anyway.
sorry for post !
Yes, for IE, a valid !doctype is required to make "margin:0 auto;" work, and also a stated width is required (includes any percent width as well as static width)
Another trick for centering
Once you add that width to the div definition, you can do something like this too:
make that negative margin-left equal to half the width and your in business.
psd2css Online will generate that code for you from your photoshop file if you use the '_center' Layer Naming Convention.
Free, Fast and Easy CSS/XHTML Compliant web pages converted from your Photoshop files
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)