- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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
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?
However, assuming that the input precedes the panel-body
element in the same parent then you can target by attribute(s).
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?
Unfortunately your link doesn’t work so a reduced example would be useful.
Hello Paulie,
yes it does, i dont understand why from here redirects to https protocol insted is http soccervideo.tk/add-listing/
a reduced example would be useful.
I had the same result buy adjusting some theme settings, thanks for your help anyway, i appreciated!