LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2007, 12:52 PM   #1
abrouwers
Member
 
Registered: May 2005
Location: Michigan
Distribution: Slackware -current
Posts: 98

Rep: Reputation: 37
easy html trouble


Alright; I found myself doing something I haven't had to before. I am trying to create a link to a drawing on our webserver at work, and wanting to include a PDF icon WITH the link to the drawing, side by side; so far:

<a href="www.our_server.com/files/drawing.pdf"
target="_blank"><img border="0"
src="/path/to/pdf_icon.gif"
alt="Drawing" title="Drawing" /></a>

This adds simply an image of the PDF icon, and will open the drawing just fine (in a new window), but I can't figure out how to add the text link, both linking to the same file:

<ICON> Click to view Drawing

Also, if I could get text underneath disclaiming the use of a PDF browser is necessary, that would be phenominal Any ideas?
 
Old 01-04-2007, 01:23 PM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Code:
<a href="www.our_server.com/files/drawing.pdf" target="_blank">Click to view drawing</a>
 
Old 01-04-2007, 01:36 PM   #3
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Rep: Reputation: 31
Code:
<div>
  <a href="www.our_server.com/files/drawing.pdf" target="_blank"><img
  style="vertical-align: middle;" src="/path/to/pdf_icon.gif" alt="Drawing"
  title="Drawing" /></a><a href="www.our_server.com/files/drawing.pdf"
  target="_blank">This is the text link</a>
</div>
<div>
  And you could write your disclaimer here.
</div>
 
Old 01-04-2007, 02:45 PM   #4
abrouwers
Member
 
Registered: May 2005
Location: Michigan
Distribution: Slackware -current
Posts: 98

Original Poster
Rep: Reputation: 37
aah, makes sense - thank you so much!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: HTML in easy steps LXer Syndicated Linux News 0 11-03-2006 02:21 PM
Easy HTML Question LuderForChrist Programming 17 06-16-2005 01:57 PM
HTML authoring program debian preferably aptable and easy short101 Linux - Software 3 02-11-2005 08:34 PM
easy way to wrap a lot of links for html output? the_rhino Programming 7 10-20-2004 12:40 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration