Coming really soon...

Forum

NC for Hire

If you frequently add PDF files to your Ning network for your members to download, you may want to let them know that a link to a pdf is a PDF and the size, so that they are not surprised. Any anchor link can be a link to a PDF document, but clicking a link like that thinking otherwise can be surprising and uncomfortable for a user. This CSS can visually signify those links.

[The Following goes in your advanced CSS section]

/* Add " (PDF)" text after links that go to PDFs */a[href$=".pdf"]:after { content: " (PDF)"; }/* If file size specified as data attribute, use that too */a[href$=".pdf"][data-size]:after { content: " (PDF, " attr(data-size) ")"; }


So in other words, this...

<p>Watch out for the <a href="some.pdf">PDF bomb</a> here!</p>


becomes this...

Watch out for the PDF bomb (PDF) here! (no pdf here, just an example link)

or..

<p>Watch out for the <a href="some.pdf" data-size="2 MB">PDF bomb</a> here!</p>


becomes this...

Watch out for the PDF bomb (PDF, 2 MB) here! (no pdf here just example link)

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Email me when people reply –

Latest Activity

Kyryl_Ning_Support’s discussion was featured
Hi there!
As the share from Facebook comments doesn't work, I have been thinking is there any way a…
9 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion
Changing Your Chat Bar Colours
"It should be this one, then save the page and it should change for you."
10 hours ago
Ning via Facebook

#Ning #tips #creators More colors and bright emotions for your chat bar on the NING network…

Kos replied to Jennifer Peterson's discussion
Chat Bar and Sound Question
"We're not getting sound notifications either.  I've notified them but we wait.  Go ahead and file a…"
11 hours ago
Ning via Facebook

#Ning #records #wow Did you know that the most popular social accounts gather more than 100…

Mike Collins replied to Kyryl_Ning_Support's discussion
The long-awaited Search Option is now at your fingertips!
"Hi Kyryl,
Looks like this was lost in comments 
Search is bringing up items from blogs/ discussions…"
13 hours ago
Kyryl_Ning_Support replied to Bizz ( John )'s discussion
Changing Your Chat Bar Colours
"Hi Jennifer,
After you have changed the text in language editor, please save the changes, open the…"
21 hours ago
Kyryl_Ning_Support replied to joseph wade burnley's discussion
text editor on mobile platform
"Hi Joseph and Jennifer,
Thanks for your suggestion to extend the editing options for the mobile ver…"
22 hours ago
More…