• Resolved doodark

    (@doodark)


    Hi,
    I am using simplepress theme, and decided I wanted to move the nav menu to the right of the logo. The only problem in my way seems to be an inline style with padding-left: 310px; This padding is stopping the menu items from sitting in one straight line as they are being pushed into two lines due to the width available to them.

    I’ve tried to override this inline style by adding

    div[style] {
       padding-left: -310px !important;
    }

    to style.css, but it hasn’t made the slightest bit of difference as you will be able to see from the navigation menu here:
    Le Poer Polo
    header.php:

    [code moderated as per forum rules - please use the pastebin]

    Massive thanks to anyone who might be able to help-its driving me mad!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael

    (@alchymyth)

    i am not aware of this method:

    div[style] {
       padding-left: -310px !important;
    }

    (however, that does not mean too much ??

    however, trying this seemed to work, i.e. using the exact style of the element with the inline style:

    ul#menu-nav { padding-left: 0!important; }

    Thread Starter doodark

    (@doodark)

    Just brilliant…Thanks so much for your help-adding that to Style.css has worked a treat!

    The previous method I tried was based on this:
    Override inline styles(Either it wasn’t the solution for this problem, or I executed it wrongly).

    Anyway…I’ve spent a week or so on and off trying to fix this, so you really have helped me out big time x

    Michael

    (@alchymyth)

    brilliant –

    if this is sorted, please mark this thread as ‘resolved’

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Elegant Themes – cannot override inline style’ is closed to new replies.