Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting text into pages using CSS 1

Status
Not open for further replies.

Angel79

Instructor
Dec 18, 2003
20
CA
Hi,
Was wondering if there was any possible way to insert text into a webpage using CSS. I have a website created with over 200 pages so far, and the people I'm creating it for all of a sudden decided that they want a line at the bottom of each page stating their name. I have a CSS created for the background and I was wondering if I could insert a line in that sheet that would add the text to all pages. Is it possible or am I just dreaming? LOL. I'm trying to avoid having to go through all those pages doing copy/paste..hehe.

If this is not possible, any other ideas or help of any kind would be appreciated.

Thanks,
Christa
 
Quickest and fastest thing to do is to use a utility called Multi-replace. This is a simple find/replace utility that allows you to insert a bit of text into multiple files. I use it often for the exact thing you need it for.

It's a free utility - I don't have the web site handy but a google search should locate it for you. If not, get back to me and I'll email it to you.

There's always a better way. The fun is trying to find it!
 
ummm..I think I found it online...is it a 30-day trial program?
 
well..I downloaded the trial program...tried it...it works!! YAY!! THANK YOU THANK YOU THANK YOU!! Now I got to try and find a way to "register" it. LOL
 
Angel - mine is a freeware program. But then, I've had it for a few years so maybe the guy who wrote it got hungry.


There's always a better way. The fun is trying to find it!
 

>> Now I got to try and find a way to "register" it.

That one's easy. Just go online with your credit card and pay for it. Then you'll have a legitimate copy, and you'll be guilt free.

Dan
 
Angel...

Glad it worked out for you.

There's always a better way. The fun is trying to find it!
 
Hi Angel79,

Actually, there is a way to do it in CSS, however it only works on Netscape 6 or above. Hopefully IE will support this in their next version

here is the code

body:after {
display: block;
content: "my footer"
}

for more information you can visit this site


hope this helps


Chiu
 
Hey Chiu,

Thats pretty good too! It works in my Mozilla browser but not in IE. Like you said, hopefully the next versions of EI supports it though!

Thats a great option though. Have to remember that for the future...or I could put it in now and that way it'll be there already if future browsers allow it.

Thanks alot!!

Christa
 
Angel, most text editors like textpad and ultraEdit have features to do "multi-replace" type functions. I recommend ultraEdit.

I also agree w/Dan(BillyRayPreachersSon), if you use it, buy it. You expect to be paid for your labor, so do the developers of those programs. If you employer won't reimburse you for it, it's at least tax deductible. And the $20 to $30 they ask for is worth all of the time you saved...

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

 
WOW...you guys are touchy!! I have no problem buying software...95% of the software I have has been bought.. outside of the 2 or 3 programs I've gotten from other people that they got the cd for, installed it on my computer, and they kept the cd. I understand people that are putting the time in to make this software would like to be paid for it, just as I want to be paid for my services! It was simply a little joke...that was obviously taken the wrong way by afew ppl!
 
Sorry about that Angel - I guess I am a little too touchy about the subject...

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

 
no problem...just wanted to explain myself..didn't want any bad blood floating around, you know?

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top