Style sheet problem

M

Michael

I am knew to the use of style sheets, but I have taken a
style sheet and added it to my web as an external style
sheet. The problem is the page shows it is there and in
Front page editor the page looks right but when I preview
it the style does not appear and the tables and cells
appear without the styles applied.

WHY? I don't get it.

thanks for any help
 
R

Rob

Michael

Have you actually linked to it using Format | Style Sheet Links? Also, do
you have inline styles applied as these will override the style sheet.

Rob
 
G

Guest

Yes i did go to format but maybe before I did that I did
set some internal styles and maybe I didn't get rid of
those. I will take a look at that. Seems like that may
be it.

Thanks a bunch for the reply
Michael
 
G

Guest

Hmm that still didn't work. I made a new page and
deleted my old tables in it and made a new one and
applied the stylesheet to the page and the tables look
like they are supposed to in FP Editor but not in browser.

I did the FP2002 updates and now my list of styles show
up under class, which they didn't before. So I can pick
them now without remembering them and typing them in, but
they still do not show up in a browser. I am getting the
newest page as I removed all the tables and there where
none and then i refreshed and the table was there but no
color as defined by the style sheet.

Any other suggestions?
Thanks
 
M

Michael

I have tried removing all tables to be sure they where
not formatted or styled and I still cannot get it to show
in browser. The tables and cells format and look proper
in FP Editor but not in a browser. Is there anything
else anyone can think of that I might try?

Thanks
 
C

chris leeds

something as small as a <b> could cause the style to not display correctly.
If you have a url for the offending page it'll make it a heck of a lot
easier to tell you. It's never much and there are lots of guys here who are
very familiar with .css (it's all the rage ya know) ;-)
HTH
 
M

Michael

Hi Chris
Here is the code from the page.
<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<link rel="stylesheet" type="text/css"
href="_private/siege.css">

</head>

<body>
<table class="tableline" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"
width="100%" >
<tr>
<td width="100%">&nbsp;</td>
</tr>
</table>

</body>

</html>

It has a nice blue border in editor but is a balnk page
in preview and browser.

Here is the .css line for the format.
..tableline { background-color: #C0C0C0; border: 2px
solid #006699;; font-family:Bookman Old Style }

Looks exactly like I want it to in editor. I am loosing
it here. lol

Thanks for any help in advance
Michael
 
R

Ronx

It's possible that the browser cannot read the style sheet, since you have
it located in the _private folder.
Move the style sheet to a location accessible by your site visitors.
The _private folder will usually block access to browsers.
 
R

Rob

Michael

I replicated this on my local machine and it worked perfectly. I guess Ronx
has the answer re: putting the style sheet in the _private folder. Mine
always go in the same folder as the htm file and work just fine.

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top