Activity Stream
48,167 MEMBERS
62692 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1.     
    #1
    Member

    Exclamation [HTML] How To Align Any Image Center !

    You dont know how to align images @ center ?
    today i will teach you



    A Simple Img Code to align it to left
    PHP Code: 
    <img src="http://www.besthostingforums.com/images/logo.png"
    To Align The Image to Center use this code
    PHP Code: 
    <center><img src="http://www.besthostingforums.com/images/logo.png"></center
    hope i have explained well (although this was my first tutorials)


    =========================

    A better way is to use DIVs and CSS and auto the margin:
    PHP Code: 
    marginauto
    Above Code Is Suggested By jayfella
    Rapid S Reviewed by Rapid S on . [HTML] How To Align Any Image Center ! You dont know how to align images @ center ? today i will teach you :) :) A Simple Img Code to align it to left <img src="http://www.besthostingforums.com/images/logo.png"> To Align The Image to Center use this code Rating: 5
    (.*??)
    .?.?.?.?*??) .........?.?*?)........
    (?.??BuzzScene.(?.?*??)
    ............(?.??.....................(?.??*?`)

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    LulzIMG.com chtbx.com RapidPremium.Net ReleaseLeech.com RLSLeech.com NinjaRobotPirateZombieNazi.com
    Kinda too basic but still. Cool.

  4.     
    #3
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    A better way is to use DIVs and CSS and auto the margin:

    Code: 
    margin: auto;

  5.     
    #4
    Member
    THanks Jay nice info
    (.*??)
    .?.?.?.?*??) .........?.?*?)........
    (?.??BuzzScene.(?.?*??)
    ............(?.??.....................(?.??*?`)

  6.     
    #5
    Member
    Website's:
    BoxyVps.com
    would it me better to use
    <div align="center">
    your image here
    </div>

  7.     
    #6
    ლ(ಠ益ಠლ)
    Website's:
    extremecoderz.com
    well using align=center doesnt always work in all browers. Its really picky - it will work sometimes, and not at other points in the page. Using auto margins is completely cross-browser compatible.

    Using <center> is fine, but you should really put as many variables in the CSS as possible, so you dont have to edit any html/php files and easily make any necessary changes via CSS.

  8.     
    #7
    Respected Developer
    Website's:
    wrzc.org
    <center> isn't advised. It's not html 5 compliant either any more if I remember correctly. I believe it's being dropped in favor of css as show by jayfella. I know your probably not using html 5 now but you may as well learn for the future.

    EDIT: lol hot topic for a <center> topic

    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  9.     
    #8
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    to be honest i ahve never used the <centre> in my codings i would prefer to do in CSS

    Code: 
    .left{
        float:left;
    }
    .right{
        float:right;
    }
    .acentre{
        text-align:centre;
    }
    Then in my html use like

    Code: 
    <div class="left">
       <img class="acentre" src=",..."/>
    </div>
    You save so much time if you use classes t o store your design parameters
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  10.     
    #9
    Member
    You need a width value for margin: auto; to work properly.

    Example:
    Code: 
    <div style="width: 400px; margin: 0 auto;"></div>

  11.     
    #10
    Member
    Website's:
    cancerite.com
    u can use tables if u want
    <table width=100%><tr><td><img src="blahblah.jpg"></img></td><tr></table>
    you can use height=100% too if u want it to be in the center of the page..! however it is not compatible with some versions of IE

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Help] Align Images to center in CSS
    By coolboyz2323 in forum Technical Help Desk Support
    Replies: 11
    Last Post: 5th Feb 2012, 04:14 PM
  2. How to align child categories in center?
    By DuckBre in forum Web Development Area
    Replies: 3
    Last Post: 3rd Feb 2012, 07:42 PM
  3. How do i align my webpage to the center?
    By dtommy79 in forum Web Development Area
    Replies: 6
    Last Post: 11th Jul 2011, 01:00 PM
  4. How to center align ads..?
    By Hatefed in forum vBulletin
    Replies: 3
    Last Post: 9th Nov 2010, 03:13 PM
  5. [html] align problem
    By Porsche_maniak in forum Webmaster Discussion
    Replies: 11
    Last Post: 17th May 2010, 06:17 PM

Tags for this Thread

BE SOCIAL