473,543 Members | 2,311 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 1975

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

Similar topics

6
3412
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
6834
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...
3
2265
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...
0
1269
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
1400
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...
6
1974
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
1150
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...
2
2075
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...
4
2706
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...
0
7397
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7582
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. ...
0
7726
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...
0
7675
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...
1
5257
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...
0
4884
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...
0
3384
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...
0
3385
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
626
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.