LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-08-2008, 10:03 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
css return to top of page, is it possible?


I am a casual CSS user.

I need to insert the following line before every HTML <h3> tag, can I use CSS to achieve the same result and how?

<a href="#top" target="panr"><img src="../../../imag/indx.gif" alt="Index" align="right"></a>

Thank you for your help.
 
Old 03-08-2008, 10:49 AM   #2
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
many browsers *eg* support the pseudo-class :before, so you can write
Code:
h3:before{
  content:'<a href="#top" target="panr"><img src="../../../imag/indx.gif" alt="Index" align="right"></a>';
}
but I think this will show the "<a href...", not interpret it...

(see also http://www.w3schools.com/css/css_pseudo_elements.asp)

HTH, Florian
 
Old 03-09-2008, 12:30 AM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
Thank you for your answer and the link which says ".. does not work in IE", so it looks like there is no easy way of doing it.
 
  


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
css return to top of page. rblampain Programming 2 02-10-2008 04:52 AM
html return to top of page rblampain Programming 2 02-06-2008 04:28 AM
Let me get rid of that annoying message at the top of the page StevenK LinuxQuestions.org Member Intro 1 03-04-2006 12:59 PM
google ads bar (top right of page) in firefox secesh LQ Suggestions & Feedback 6 11-24-2004 10:36 AM
Top of the page while printing is chopped off. lancelott Linux - Newbie 3 10-19-2004 02:37 AM

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

All times are GMT -5. The time now is 12:22 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