0

I have a view in D7 that creates a table of meeting dates, agenda files, minutes, and other attachments which are all pdf's. I like the view so far but I don't want to see the image that is in the front of all files: application-pdf.png which is the file icon for adobe reader files. application-pdf.png I already have it set up to show the file description which works perfectly; just want to hide the preceding file icon which looks repetitively dumb... Firebug tells me the image class is "file-icon" but when I enter in .file-icon {display: none:} either in firebug or in a css file it doesn't hide the file. Wondering what's the best way to hide this little thing... I really just want to hide this icon in this specific table, not affect other views and tables.

Thanks for all the help.

Dave N

  • There are number of ways to hide image but can't help you until you share some screenshot with us. I would suggest you share a screen shot of views and output screen with firebug that would describe your problem statement in better way. – Pushpinder Rana May 31 '14 at 6:53
  • You closed your css with a :. Put a ; there or nothing. – Marcel May 31 '14 at 19:43
1

It could be done simply by CSS. Use following:

 .file-icon {
    display: none;
}
  • Thanks. My bad concerning my original post. My css I was trying to use was .file-icon img {display:none;} Don't know why I couldn't include img but once I took it out it worked. Anybody know why img couldn't be in the css? Thanks everyone for the help. – Dave N Jun 3 '14 at 23:37
  • Your css is not correct.To use img in the css you need to write this: img.file-icon { display: none; } – Astha chauhan Jun 4 '14 at 4:49
  • My bad again.. Either way of yours works perfectly, mine didn't obviously. I wasn't being careful. Thanks for the help. – Dave N Jun 6 '14 at 2:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.