SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Centering...

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Centering...

    How do you center objects? I know "text-align: center;" will align text to the center... How do I align images to the center? Is there any way with CSS or do I have to use the html "<center>" tag?

    Thanks in advance!

  2. #2
    SitePoint Member
    Join Date
    Jun 2002
    Location
    Toronto, Canada
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    centering in CSS

    CSS2 does have that capability. However the best way to keep your objects centered is by imbedding them into a table. This way most browsers can read them.
    And yes, the table does sit within HTML code.
    Or simply add <center></center> tags before and after the Img tag.
    To design, to create with passion!


Bookmarks

Posting Permissions

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