• Resolved guds

    (@guds)


    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 https://50.97.101.14/~pergu378/

    Thx in advance!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    but everything i try does not work!

    Like what?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

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

    Thread Starter guds

    (@guds)

    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!

    Try this:

    #wp_page_numbers ul {
        border: medium none;
        display: table;
        line-height: 12px;
        margin: 0 auto;
        text-decoration: none;
    }

    Thread Starter guds

    (@guds)

    Worked like a charm!!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Why can't i center this?’ is closed to new replies.