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

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1.     
    #1
    Member
    Website's:
    cb-gfx.com

    Exclamation [Help] Align Images to center in CSS

    is there any way by which images in the following class of css are automatically centered , so that margins are not needed :?

    currently this is the coding:


    img.classimg
    {
    display: block;
    margin-right:auto;
    margin-left:319px;
    padding:2px;
    border:1px solid #DEDEDE;
    }

    Please Help!

    Thanks!

    EDIT: ITS HTML!
    coolboyz2323 Reviewed by coolboyz2323 on . [Help] Align Images to center in CSS is there any way by which images in the following class of css are automatically centered , so that margins are not needed :? currently this is the coding: img.classimg { display: block; margin-right:auto; margin-left:319px; Rating: 5

    My KWWH Graphics Thread!
    Respected - Hawk, Capone, Mindy, Humour, Sp32, Sushant, xTreme, Joomlaz, Pankaj, rko

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    FreshWap.com KWWHunction.com
    is it wordpress? and did you try
    <center></center> ?
    Dear Haters,
    "I respect you so much, that's why I salute you with 1 middle finger!"

    Thank You !

  4.     
    #3
    Member
    Website's:
    cb-gfx.com
    Quote Originally Posted by CyberAff View Post
    is it wordpress? and did you try
    <center></center> ?
    HTML

    yeah nothing worked

    My KWWH Graphics Thread!
    Respected - Hawk, Capone, Mindy, Humour, Sp32, Sushant, xTreme, Joomlaz, Pankaj, rko

  5.     
    #4
    Respected Member
    Website's:
    FreshWap.com KWWHunction.com
    hmmmmm, weird i'll pm one of the KWWH's coder to take a look on this thread mate,

    Sorry.
    Dear Haters,
    "I respect you so much, that's why I salute you with 1 middle finger!"

    Thank You !

  6.     
    #5
    Member
    Website's:
    cb-gfx.com
    Quote Originally Posted by CyberAff View Post
    hmmmmm, weird i'll pm one of the KWWH's coder to take a look on this thread mate,

    Sorry.
    Thanks Mate

    My KWWH Graphics Thread!
    Respected - Hawk, Capone, Mindy, Humour, Sp32, Sushant, xTreme, Joomlaz, Pankaj, rko

  7.     
    #6
    Member
    Quote Originally Posted by CyberAff View Post
    is it wordpress? and did you try
    <center></center> ?
    The "<center>" HTML tag is deprecated.

    Try:
    margin-right: auto;
    margin-left: auto;
    or find the class that contains your img and put
    text-align: center;
    But it's easier to help if you show us that page.

  8.     
    #7
    Member
    Website's:
    HD-Streaming.org
    simply: margin:0 auto;

  9.     
    #8
    Member
    Website's:
    cb-gfx.com
    Quote Originally Posted by deliteblogger View Post
    The "<center>" HTML tag is deprecated.

    Try:
    or find the class that contains your img and put


    But it's easier to help if you show us that page.
    Quote Originally Posted by l0ck View Post
    simply: margin:0 auto;
    Tried this many times , not working

    My KWWH Graphics Thread!
    Respected - Hawk, Capone, Mindy, Humour, Sp32, Sushant, xTreme, Joomlaz, Pankaj, rko

  10.     
    #9
    Banned
    well try adding this and see if it works
    width:auto;
    margin:0 auto;
    if that doesnt work , try adding this to the css
    float:right;
    position:absolute;
    left:-25%;

  11.     
    #10
    Member
    Website's:
    MoanMyName.net Celebs4.us WarezWeek.com ExpertHide.com
    If you cant find an answer here you can try this site: www.stackoverflow.com or this thread: http://www.besthostingforums.com/44-...scripting.html

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [HTML] How To Align Any Image Center !
    By Rapid S in forum Web Development Area
    Replies: 28
    Last Post: 9th Sep 2012, 11:55 AM
  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. Replies: 11
    Last Post: 11th Feb 2011, 11:58 PM
  5. How to center align ads..?
    By Hatefed in forum vBulletin
    Replies: 3
    Last Post: 9th Nov 2010, 03:13 PM

Tags for this Thread

BE SOCIAL