WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Why can't i center this? (7 posts)

  1. guds
    Member
    Posted 1 year ago #

    Hi guys!!

    I'm not so good with php or css, but i can mess a little.

    I'm trying to center an object by css, the #wp_page_numbers or #wp_page_numbers ul but everything i try does not work!

    Does anyone have some hint?? The site is http://50.97.101.14/~pergu378/

    Thx in advance!!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Try using Firefox with the Firebug add-on for this kind of CSS troubleshooting. Or use whatever developer tool is available in your web browser.

  3. Andrew
    Forum Moderator
    Posted 1 year ago #

    but everything i try does not work!

    Like what?

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    See this tutorial about centering things http://www.w3.org/Style/Examples/007/center.en.html

  5. guds
    Member
    Posted 1 year ago #

    hi Andrew! ty for your reply!

    i've been trying to make margin-left and right set to auto but its not working at all =(

    tried putting them in both of #wp_page_numbers and #wp_page_numbers ul

    When i check with FireBug, it seems to be automatically setting these values:

    display: block;
    list-style-type: disc;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    -webkit-padding-start: 40px;

    then i copyed these and put on my code, setting the values to 0, forcing them to be 0.

    I dont even know why the code is putting those lines in first place >.<

    Im checking your link now, ty Andrew!

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Try this:

    #wp_page_numbers ul {
        border: medium none;
        display: table;
        line-height: 12px;
        margin: 0 auto;
        text-decoration: none;
    }
  7. guds
    Member
    Posted 1 year ago #

    Worked like a charm!!

    Thank you so much WPyogi and Adrew!! ^.^

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags