Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Centering DIVs on Your Page with Chris

Loading...

Sign in or sign up now!
7,018
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 2, 2009

One might ask... How would I go about centering a DIV on my web page when the center alignment function is not doing the trick?
Follow Chris Converse into the world of CSS for the answer!

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (16)

Sign In or Sign Up now to post a comment!
  • awesome....it does work.....

  • works in ff, doesnt work in ie

  • your right, btw he´s not typing it, he´s applying it. This is what makes the difference between a web devolper and a amteur. Anyways I was kinda pissed, I would of learned it much faster if he just typed the css code.

  • @1Quintin1

    Don't bash someone for showing people how to solve a problem, and showing what the code is doing as he is typing it, as opposed to saying 'here it is done. Don't know why it works? who cares it works'. people don't learn that way, they need to see what the code is doing, which is why Dreamweaver is good for this sort of thing.

  • Very Helpful -- thank you

  • OMG :| it makes me kinda sick when people use Dreamweaver to solve problems.

    Why dont you just know the codes !..

    Margin:auto ;

    height :auto ;

    Easy as that

  • Great info Chris. This is just what I was looking for. I was getting frustrated with my divs. Great video.

    Thanks again,

    Sam

  • nice...i thank you for this video. it helped me since i am new to dreamweaver and css.

  • Doesn't work in CS4

  • What would you do if the alignment changes when you preview on different screen sizes are not the same.

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more