473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Can an external css contain text?

mariko
23
I have text that is repeated on multiple web pages. I don't want to edit all of them every time I want to change the text. Is there a way to use css so that I only have to change it in one place?
Jul 20 '10 #1

✓ answered by zorgi

If I understood correctly, than you need centralised system to update multiple pages in one go. You can not use css for that. You will need some server side scripting.

8 1806
TheServant
1,168 Expert 1GB
Why do you have anything besides CSS in your external CSS file? It's not recommended to do things this way, and I cannot see why every file (particularly external files) would need the same text?

Please explain what you're trying to do or the limitations, so maybe we can suggest a better approach.
Jul 21 '10 #2
mariko
23
Here's what I want to do. On a few of my pages I have a panel labeled newspanel in my css. All my css does is designate an area, the backround color, border, etc... I use HTML to write in the titles whatever news the client wants on there and hyperlinks to my news page. It really isn't a big deal for me to go to each page and keep everything updated.

Does this makes more sense than my last post?
Jul 21 '10 #3
zorgi
431 Expert 256MB
If I understood correctly, than you need centralised system to update multiple pages in one go. You can not use css for that. You will need some server side scripting.
Jul 21 '10 #4
tur130
16
I have a requirement that may be solved by the answer to this thread - so will follow here before posting separately.

I want to create a web site with multiple pages that one can think of as sections to a large document. What I also want is a web page that is simply the concatenation of the other web pages. (I may want more than one actually differing only by the order in which the concatenation is done)

I know you can do this with server based code – but it ought to be possible to do this just using a browser that can ‘see’ the separate files that need to be concatenated.

Other’s claim this can’t be done since each page has its own styles, scripts etc. so how would the concatenated page know how to apply them. In my case I can design all of the pages to avoid conflicting styles and unless the solution requires it avoid the use of scripts.
Jul 21 '10 #5
mariko
23
So....If I want to learn how to do things like that I should dig into the PERL book I have on my shelf? Is that what you're talking about? I don't know much server scripting but if I now have an excuse to learn it I will.
Jul 21 '10 #6
JKing
1,206 Expert 1GB
There are number of server-side scripting languages you could and yes PERL is one of them. Some others are ASP/ASP.net, PHP, Ruby, Java Server Pages or Cold Fusion.

I would recommend having a look at PHP if you are new to scripting. It is less cryptic than some of the other languages and it's open source and completely free to use.
Jul 21 '10 #7
mariko
23
Thanks everyone! I've dabbled in PERL a little and I love it so I'll get to learning it.
Jul 21 '10 #8
tur130
16
Mariko - looks like you are sorted - I'll re-post my requirement as a separate thread.
Jul 22 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: alex | last post by:
Hi, I am looking for a way to populate an HTML table from an external local text file which looks like this: DATE/TIME LAT. LON. DEPTH. ML....
3
by: Peter | last post by:
Hi, I was wondering how do you compare variables that contain text strings in ASP. When I use the following If.. Then statement: If Rs("StyleNo") <> arrStyleNo(aCount) Then
4
by: Figo 775 | last post by:
Hi, I have an xml document which is as below: <?xml version="1.0" encoding="UTF-8"?> <fragment name="htmlPart"> <value>&lt;table&gt; &lt;tr&gt;&lt;td&gt;&lt;b&gt;Feature&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b &gt;Benefit&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;...
6
by: no0bodyhome | last post by:
One of the properties I have is: border-top-width: 30px I'd like to put some text on this border; align it and such. It is part of more complicated floating column text-box I'm working on...
3
by: peter pilsl | last post by:
When putting a picture with an alt-text to Internetexplorer, the content of the ALT-Text is displayed when the mouse is moving over the picture. This is not what I expected. The ALT-text should...
3
by: xmlguy | last post by:
XmlTextReader myXmlReader = new XmlTextReader(args); string en = myXmlReader.Encoding.EncodingName; //Console.WriteLine(x); Error: Unhandled Exception: System.NullReferenceException: Object...
1
by: BillAtWork | last post by:
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException :...
1
by: BillAtWork | last post by:
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException :...
4
by: LouArnold | last post by:
I have a need to replace text in a file with new text. The files may or may not be text files in the sense that there may not be "lines" and they may not contain printable characters. I tried...
0
by: Alan Johnson | last post by:
I am trying to specify that an element may contain simple content (an integer), or complex content (a sequence of two other elements), but not both. The listMember element in the following XML...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.