The latest build of this product (v5.2.0) was released 23 years ago, which was before this thread was created.
Posted 22 years ago by Galley - Greenville, SC
Avatar
I am working on a new site design, and I am using CSS for the first time. I have a few questions. I cannot get the bolding or the font-sizing to show up properly, so I am using standard HTML tags. Is that normal? If you would like to view the page I have created, <A HREF="http://www.stuffyougottahave.com/CSSindex.html" TARGET=_blank>click here</A>
The CSS file <A HREF="http://www.stuffyougottahave.com/SYGHstyle.css" TARGET=_blank>can be viewed here</A>

If I am using CSS, should I strip out all the normal attributes, such as bgcolor? (That is what I have done) Does anyone know which browsers don't support CSS?
Also, I have saved this page as a template, but the CSS classes do not show up. I have copied the CSS file into the templates folder, but it's still not working. How can I utilize the CSS if I open a new page from a template?
Thanks, Galley

[ 04-23-2002: Message edited by: Galley_SimRacer ]

"I'm not a cool person in real life, but I play one on the Internet". Galley

Comments (11)

Posted 22 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Try using the font-weight and font-size CSS attributes. And yes, you should strip out BGCOLOR attributes from your HTML.

Are you saying you're having problems getting any CSS to work with your pages?


Actipro Software Support

Posted 22 years ago by Galley - Greenville, SC
Avatar
Quote:
<font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Actipro Software Support:
Are you saying you're having problems getting any CSS to work with your pages?<HR>


Only when I open a template.
Also, I was using font-weight and font-size, but for some reason, they were showing up as just "font". I will fix those manually and see if that works. Thanks for the help.

[ 04-24-2002: Message edited by: Galley_SimRacer ]

"I'm not a cool person in real life, but I play one on the Internet". Galley

Posted 22 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
The templates may only open *.html files. Try naming your CSS file with a .html extension.


Actipro Software Support

Posted 22 years ago by Galley - Greenville, SC
Avatar
Nope, if the .css file is in the same folder as the template, then SW does not see it no matter what the extension is. Kinda defeats the purpose of a template.
I am using this link in my template:
&lt;link rel="stylesheet" type="text/css" href="SYGHstyle.css"&gt;
If the .css file is in the same folder as the template file, then it should see it, correct? Does it have anything to do with the fact that I am using a temp file when I do a preview?
  C:\Program Files\Actipro Software\Spider Writer 5.2\Template\~swtemp.html
[ 04-26-2002: Message edited by: Galley_SimRacer ]

"I'm not a cool person in real life, but I play one on the Internet". Galley

Posted 22 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
I put a Style.css.html file in the Template folder and the new document window found it ok.

As far as your link tag, that should work. Just make sure it is located in the same folder as your HTML document.


Actipro Software Support

Posted 22 years ago by Galley - Greenville, SC
Avatar
I renamed the CSS file (in the templates folder) to SYGHstyle.css.html, and it still doesn't work.
Also, I figured out my problem with TopStyle Lite. If I chose several attribute, it would output them onto a single line. i.e. If I chose the padding for all four sides, the C line would read padding : 1px 1px 1px 1px. I redid all of the things manually, and nearly everything seems to be working now as far as the CSS goes. I found out that Opera 6 supports border colors using CSS. WooHoo! The only problem I am still having is that the links appear in a different font-size when they are hovered in Opera, but appear OK in IE. I can get the fine folks at Opera to help me with that one.
The latest version of the page is at the link in an earlier post. <IMG SRC="cool.gif" border="0">

"I'm not a cool person in real life, but I play one on the Internet". Galley

Posted 22 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
If you have a file with an .html extension then it should show up in the "File/New..." window's "User-Defined Templates" tab.


Actipro Software Support

Posted 22 years ago by Galley - Greenville, SC
Avatar
Nope. Whenever I do a preview of my template that I opened from the "user-defined" tab, then none of the CSS elements are being seen as the page is totally black with white text and links.
In the same template folder I have my SYGHstyle.css and SYGHstyle.css.html, along with the template, SYGH.html
Sorry to be a pain-in-the-butt! <IMG SRC="wink.gif" border="0">

"I'm not a cool person in real life, but I play one on the Internet". Galley

Posted 22 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Oh I thought you were saying you couldn't see the CSS file in the User-Defined Templates folder.

When you create a CSS file from your template, save it in the same folder as your HTML files. Then reference it like:

&lt;link rel="stylesheet" type="text/css" href="SYGHstyle.css"&gt;
Did you try that?


Actipro Software Support

Posted 22 years ago by Galley - Greenville, SC
Avatar
Yep, that's exactly how I have it. The template doesn't SEE the style sheet. I finally figured out what is happening. The temp file that is created when I preview it is in the root directory.
e.g. C:\~swtemp.html
The temp file that is created when I view the page that I normally work on is in the same folder as the style sheet.
 C:\Documents and Settings\Galley_SimRacer\My Documents\SYGH Web\~swtemp.html 
If the temp file was created in the same folder when opening a template, then this would not happen. I copied the style sheet to the root directory, and of course, it worked. Updating two files is a pain. If this cannot be fixed then I will just not use templates, but rather continue to use the same index file and save any changes under a different name.

[ 05-01-2002: Message edited by: Galley_SimRacer ]

"I'm not a cool person in real life, but I play one on the Internet". Galley

Posted 22 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
If you open a saved document, then the ~swtemp file should be created in the same folder. We use Spider Writer all the time and have never had problems with that not working correctly.

You are right though... if that is where it's going, that is your problem.


Actipro Software Support