Activity Stream
48,167 MEMBERS
64886 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

Hybrid View

Rapid S [HTML] How To Align Any Image... 15th Jun 2010, 11:27 AM
CM Kinda too basic but still. Cool. 15th Jun 2010, 11:29 AM
jayfella A better way is to use DIVs and CSS... 15th Jun 2010, 11:34 AM
Rapid S THanks Jay nice info 15th Jun 2010, 11:39 AM
ImMoRtAl- would it me better to use <div... 16th Jun 2010, 02:34 AM
jayfella well using align=center doesnt... 16th Jun 2010, 10:40 PM
Mr Happy <center> isn't advised. It's not... 16th Jun 2010, 10:48 PM
litewarez to be honest i ahve never used the... 16th Jun 2010, 10:55 PM
el_jentel1 You need a width value for margin:... 17th Jun 2010, 10:30 AM
Skords u can use tables if u want :s... 17th Jun 2010, 10:36 AM
jayfella Tables are CPU chompers - only use... 17th Jun 2010, 10:40 AM
Skords was just giving an alternative :)... 17th Jun 2010, 10:42 AM
jayfella Yea man - thats what this area is... 17th Jun 2010, 10:45 AM
el_jentel1 Indeed, we all learn new stuff... 17th Jun 2010, 10:46 AM
GoPantheoN yup i learned new things about the... 17th Jun 2010, 10:55 AM
Amz The center element is deprecated in... 18th Jun 2010, 08:57 AM
Maniac_ Honestlly, if you don't know any... 18th Jun 2010, 09:35 AM
ChosenOne We're here to learn and share so... 18th Jun 2010, 09:42 AM
el_jentel1 Very constructive Maniac_ and... 18th Jun 2010, 09:43 AM
Maniac_ Just my honest opinion..... 18th Jun 2010, 02:37 PM
BadLuckGuy huh Maniac_ WTH? I had this... 23rd Jun 2010, 01:05 PM
Lock Down We are not looking for honest... 23rd Jun 2010, 06:56 PM
timtamboy63 litewarez has explained it... 24th Jun 2010, 02:41 PM
-Im.z2ight- Remove this never teach anyone this... 29th Jun 2010, 05:45 PM
Lock Down It is a way and deserves to stay.... 29th Jun 2010, 08:43 PM
-Im.z2ight- HTML 5 wont support it so yeah. 30th Jun 2010, 12:35 AM
timtamboy63 Don't use tables for layout, they... 30th Jun 2010, 09:56 AM
kashif I have launched a Fashion Forum... 9th Sep 2012, 11:12 AM
DuckBre @kashif this is html topic and... 9th Sep 2012, 11:55 AM
Previous Post Previous Post   Next Post Next Post
  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