Jump to content

Margins


The Praetorian

Recommended Posts

http://www.freewebs.com/the_praetorian/welcome.htmlRight. The problem I'm having is that IE seems to be ignoring my margin commands. It looks fine on every other browser, but on IE the paragraphs appear all the way at the left of the screen instead of in the middle where they should be.I'm using a blocktext command to get the margins the way I want them. The weird thing is that IE seems to read the margin command in the case of my hr's, but not for the rest of the page.
<p class="blocktext">blah blah</p>

---- and in the CSS -----

p.blocktext{margin-right:auto;margin-left:auto;width:18cm;}

Link to comment
Share on other sites

CSS

body {text-align: center;}p.blocktext {margin: 0 auto;text-align: left;width: 18px;}

That should work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...