User agent stylesheet overriding

  • Author
    Posts
  • #33799
    Danielle

    I have a problem with the User agent stylesheet overriding the css I have put into the Custom CSS-field.

    I’m trying to get one of my tables to vertically align in center. I see the code when I inspect it but it’s overriden by my user agent style sheet. I can style the text in the table to be bold but not to align where I want it to. I have set a class for my table and my CSS looks like this:

    table.pedigree td {
    vertical-align: center;
    }

    How do fix this? I tried setting my style av important but that didn’t work either.

    #33825
    Zed
    Cryout Creations mastermind

    When custom styling is overridden by default or generated theme styling, make your rules more specific. For example, try:
    body #content table.pedigree td {

    However, if !important didn’t work it sounds like you’re using the wrong tag/identifier. Double-check with your browsers development tools or with Firebug.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘User agent stylesheet overriding’ is closed to new replies.