Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Css on a specific packageq

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #196840
    naplazz
    Participant

    Hello Everybody!

    I’m not good at all in css so i wonder if somebody can help me with this issue.

    I need to hide a class called “panel-body”
    this is the html code

    <input type="hidden" name="packageID" value="2">

    I want to hide the class “panel-body” only if the package id value is 2. In all other cases no action is required.

    Can i do this with css? Would somebode be so kind to give me the exact code?

    Thanks in advance

    Dan

    #196842
    Paulie_D
    Member

    The supplied HTML clearly has nothing to do with the CSS you provided.

    How are you changing the values…what is the actual HTML and how do the two ‘items’ relate?

    I’m assuming that the element with the class of panel-body is a subsequent sibling of the input?

    #196843
    Paulie_D
    Member

    However, assuming that the input precedes the panel-body element in the same parent then you can target by attribute(s).

    http://codepen.io/Paulie-D/pen/bNKELb

    #196844
    naplazz
    Participant

    Hello Pauly,

    thanks for your help. Sorry if i wasn’t clear, i’ll try to make a practical example:

    if you here http://soccervideo.tk/add-listing/

    there are two packages: if you click on the packages you will see a box on the left sidebar called “Listing Enhancements”. I want that box to disappear for only one of them. So i believed a line of css code on a specific package id will do. Is this correct?

    #196857
    Paulie_D
    Member

    Unfortunately your link doesn’t work so a reduced example would be useful.

    #196859
    naplazz
    Participant

    Hello Paulie,

    yes it does, i dont understand why from here redirects to https protocol insted is http soccervideo.tk/add-listing/

    #196863
    Paulie_D
    Member

    a reduced example would be useful.

    #196876
    naplazz
    Participant

    I had the same result buy adjusting some theme settings, thanks for your help anyway, i appreciated!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.