Jump to content

Recommended Posts

Posted

The problem is that's what I'm trying to do but either I'm not targeting the right element with CSS or something else is funky. I've tried several elements and even resorted to using the inspect mode (after opening my HTML is Dreamweaver) to see if I was targeting the wrong thing or not and as far as I can tell I am.

Posted

Dreamweaver... :sick: I do all my HTML by hand. Used to find Dreamweaver very limiting.

 

 CSS:

.center {
    margin: 0 auto;
    width: 600px;
}

HTML:

<div class="center">
whatever you want centered
</div>

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines, Privacy Policy, and Terms of Use.