TheFilmGod Posted August 10, 2007 Share Posted August 10, 2007 I am using "margin: auto;". I also want to use "top-margin: 10px;" Can I use them in the same class/id? If not, is there some way to achieve the same result? Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 10, 2007 Share Posted August 10, 2007 A quick test on your own would save you waiting for a reply. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 10, 2007 Share Posted August 10, 2007 you can apply multiple margins in one margin statement, margins can be set in either of the following formats: margin: [top] [bottom] margin: 10px auto 10px auto; margin: [top&bottom] [left&right] margin: 10px auto; margin: [all] margin: auto; Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted August 11, 2007 Author Share Posted August 11, 2007 A quick test on your own would save you waiting for a reply. You know, you always have useless answers. I rather have you not comment my posts than act all smart and ask me to experiment. I already have and of course it hasn't worked correctly 100%. I'm asking if its a browser problem, a.k.a. it works in some browsers and not others. That is why I'm asking so I can make sure. Thanks wildteen88 for a great reply. I'm going to try that!! Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 13, 2007 Share Posted August 13, 2007 if you are having browser problems may I suggest you use a good dtd? i use <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> simply because it irons out MOST of the differences in how these clients render (esp IE6). Makes you job so much easier... Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted August 16, 2007 Author Share Posted August 16, 2007 What about this DTD: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted August 16, 2007 Share Posted August 16, 2007 Prob OK - never bothered with xhtml1 it takes nothing to switch your doc type so have a try with each and see which works for you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.