www.webdeveloper.com
Results 1 to 4 of 4

Thread: centering images with css (DTD XHTML Strict)

  1. #1
    Join Date
    Apr 2008
    Posts
    2

    centering images with css (DTD XHTML Strict)

    How may I replace the "<center>" tag in css when using xhtml strict?

  2. #2
    Join Date
    Aug 2007
    Location
    New Jersey, US
    Posts
    1,779
    margin:0 auto;

  3. #3
    Join Date
    Apr 2008
    Posts
    2

    thank you!!!

    Thank you so much!!

  4. #4
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    For inline elements use text-align:center.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles