473,657 Members | 2,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Do CSS styles affect text included with SSI?

I'm running a website that uses CSS to format the text and a CGI
program Coranto that icludes news updates via SSI. My problem is that
some parts of the CSS don't seem to take effect on the included news.
All four link styles are used, and all four work in the included text
files. The text styles, on the other hand, seem not to work at all.
The text that's part of the actual HTML file is formated according to
the CSS codes. However, the text included with SSI isn't formatted
accordingly. To get a better idea of what I'm talking about, visit my
website at http://thor.prohosting.com/tripheli/body-main.shtml. Here
is the CSS code from the main page of my website:

<!-- Link Styles -->
<style type="text/css">
<!--
a:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
color: #000000;
text-decoration: none;
}
a:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
color: #FFFFFF;
text-decoration: underline overline;
}
a:visited {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
color: #000000;
text-decoration: none;
}
a:active {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
color: #000000;
text-decoration: none;
}
BODY { font-family: arial, helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: normal;
font-variant: normal;
color:#000000;
}

DIV { font-family: arial, helvetica, sans-serif;
font-size: 10px;
font-style: normal;
font-weight: normal;
font-variant: normal;
color:#000000;
}
-->
</style>
The BODY and DIV styles are attempts to control the text in the main
page, as well as the included text. The program that I use allows you
to change the look of the text that is posted on the page with
"styles" as well. Here is the code from these "styles":

<font size="-1" face="arial">
<a href="http://thor.prohosting .com/tripheli/cgi-bin/coranto/viewnews.cgi?id =<Field:
newsid>"><Field : Subject></a></font>
<br>
<font size="-1" face="arial">Po sted by <If: Field: UserField_Email ><a
href="mailto:<F ield: UserField_Email >"><Field: User></a>
<If: Else>
<Field: User>
</If> on <Field: Date></font>
<hr>

As you can see, I tried to control the size of the font in these
styles as well, using the font tag. However, the font size still
remains unchanged. I would use CSS, but these styles don't contain a
<head></head> section for me to put the embedded styles in. And I
don't think that inline styles would work here eighter.
I'm sorry if this is a long winded post, but I'm ready to start
ripping my hair out. I've tried everything that I could think of, but
nothing seems to be working. Any help would be greatly appreciated.
Thanks.
Jul 20 '05 #1
0 1981

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3419
by: Christopher Benson-Manica | last post by:
Just FMI, if an external stylesheet is linked to a page (with <link>), will subsequent <style> tags override the values in the external stylesheet? -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
7
6840
by: codeslayer | last post by:
Greetings to everyone in ‘forum-land': I have a problem that has plaguing me to no end. It is a CSS-related question, and I have not seen this question posted anywhere in forums or through Google search. So here is my problem: I want to use CSS to apply images as bullet styles. However, I want to be able to apply VARIOUS, MULTIPLE styles in the same document. For example, let's assume I have a set of categorized hyperlinks on a...
3
2270
by: news | last post by:
I have a site that pulls half its content from a database. Text that will have links in it, that I won't be able to alter. They'll all be like <a href="link">blah</a> But I want to give links within this database pulled text to have a different style than the rest of the page. Here's a couple of ways I can think of to do it, but I'd like to know if there's a better way.
0
1276
by: Pocholo | last post by:
I'm working with AxWebBrowser and i try to change the entire page, but i don't find any way to do it also i try to change by parts: First the body: htmlDoc1.body.innerHTML="...."; and this also work:
2
1405
by: Sky Sigal | last post by:
Hello: I'm currently messing around, and need as much feedback/help as I can get, trying to find the most economical/graceful way to build usercontrols that rely on styling to look any good... It's the last part that has got me all frazzled (the 'rely on...to look good')... Let me explain -- and please bear with me as it's a bit longer than my usual questions:
6
1980
by: A Traveler | last post by:
I know in a css file, i can declare a style which will apply to a given HTML tag, specifically, i am looking at an INPUT tag. Is there any way in which i can create a style section which will apply to a specific *type* of input?? That is, a section which applies only to or only to or whichever? Thanks in advance.
3
1152
by: Camel | last post by:
I was just starting to learn what benefits could be gained through an ASP.NET theme. To cut a long story short, I discovered that I can refer to "styles.css" through any folder on my Development Web Server - and I will be served with content (even if the file doesn't exist - which was confusing when I did in fact have a file called "styles.css" and it didn't look like my source code!). I've tried to find, but there seems to be no...
2
2078
by: pgonzo | last post by:
In my initial tests with the GridView control, I cannot understand why the DataFormatString attribute has no affect on the column formatting. The 'creation_date' field is being reported as "3/30/02 14:23:28". I want to display it as "03/30/02". I've included the code below. Can anyone offer an explanation? <asp:SqlDataSource ID="DD_Issues" runat="server"
4
2709
by: splounx | last post by:
Hi there, I am a relative CSS & JavaScript novice and I have a particular problem that is beyond my level of knowledge so I thought I'd tap the collective wisdom of this group. I would like to know if there is a means of writing JavaScript that will dynamically display the styles which are currently applied to any DOM element on a web page ( i.e., those applied by ID, those applied by class, etc.) as the user moves their mouse over...
0
8845
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8743
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8622
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.