Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: HTML Code

  1. #1
    Join Date
    Jun 2006
    Location
    Northern Ireland
    Posts
    307
    Tokens
    0

    Default HTML Code

    What's the HTML for centering an image?

    Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks .
    Last edited by Mr.OSH; 03-07-2007 at 10:03 PM.
    Post Count:

    50 100 200 500 1000

  2. #2
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    <center>imageurl</canter> ???

  3. #3
    Join Date
    Jan 2007
    Posts
    825
    Tokens
    0

    Default

    HTML Code:
    <p align="center">
    <img src="img">
    </p>
    Or
    HTML Code:
    <center>
    <img src="img">
    </center>
    That post was really sensible!

  4. #4
    Join Date
    Jun 2006
    Location
    Northern Ireland
    Posts
    307
    Tokens
    0

    Default

    Many thanks guys, +Rep to both of you!
    Post Count:

    50 100 200 500 1000

  5. #5
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    Quote Originally Posted by Yamba View Post
    Many thanks guys, +Rep to both of you!
    <center>imageurl</canter>
    Centre should be
    <center>imageurl</center>

  6. #6
    Join Date
    Jun 2006
    Location
    Northern Ireland
    Posts
    307
    Tokens
    0

    Default

    Quote Originally Posted by GoldenMerc View Post
    <center>imageurl</canter>
    Centre should be
    <center>imageurl</center>
    Just a typing error, he ment the same as you did :p
    Post Count:

    50 100 200 500 1000

  7. #7
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    HTML:
    Code:
    <div id="image">
    
    </div>
    CSS:
    Code:
    #image {
                  background-image: url(image.png);
                  background-position: center;
    
    }
    Something along those lines.
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  8. #8
    Join Date
    Jan 2007
    Posts
    825
    Tokens
    0

    Default

    But he said html not CSS
    That post was really sensible!

  9. #9
    ScottDiamond Guest

    Default

    Quote Originally Posted by Mashi View Post
    But he said html not CSS
    *Tumbleweed*

  10. #10
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    2,492
    Tokens
    147

    Latest Awards:

    Default

    just using an unnamed div is also an option:

    <div align="center">
    <img src="imglink" alt="img description" />
    </div>

Page 1 of 2 12 LastLast

Posting Permissions

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