Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS and Frontpage Discussion Webs

Status
Not open for further replies.

Tama

MIS
Jun 6, 2001
121
NZ
I have been using Frontpage 2000 to set up my site - - I got frustrated with Frontpage themes taking control of my formatting and went over to using bog standard CSS sheets.

This has been working well except for one niggling problem. I have a couple of discussion webs running and when someone posts a message the CSS is not applied so it comes out as bog standard ugly HTML. When I was using Themes the theme metatags are automatically included in the the HEAD section of the Discussion Web message. But I don't seem to have any control over the HEAD section through the Frontpage Webbot.

One of my Discussion Webs is at
Does anyone know how to get around this problem?

Cheers
 
hi tama,
yep i visited ur website and while some links work well, some links present the standard HTML.....fine...i think the problem may be becoz i think u r using frontpage to upload ur website...why dont u try some other FTP clients if that is the case....i hope that might solve ur problem.....if it doesnot please letme know


regards,
rsubras
 
Cheers for the reply. I've got pretty much stuck in with publishing using Frontpage. If you try to FTP the Frontpage Extensions block you. If I wanted to go back to FTPing I would need to clear the site and start again - using CGI scripts for my Discussion Boards.

It has crossed my mind but I'm sure there's an easier way. (Please let there be an easier way)

I'm pretty sure the problem is in the Front Page component which runs the discussion web, I'm hoping there is some command that I can insert in the "Discussion Web Webbot" that will insert the style link into the HEAD of all new messages. OR is there an evil Javascript way of adding CSS once a page is loaded?

Cheers
 
When I view the source of one of the posted pages I don't see a link to a stylesheet anywhere...

Is the problem that you can't put this link in there with frontpage...? I guess I don't understand the exact problem.
 
I can add the CSS link by going into the site "live" (through Frontpage 2000) and adding the links manually (just done it that way - it was bugging me)

But I don't know how to get the Frontpage Web Discussion Bot to automatically place the stylesheet link in the HEAD section of posted messages.
 
OK I seem to have a handle on the problem. But I'm not nearer any solution.

The Frontpage Discussion Web component (which runs some style of CGI I guess) has a tag in it called "u-style-url" which points to a normal HTML page. (see the source of for an example)

When you post a message to the discussion web it generates a seperate HTML page with the message. The body tag of this message has an element called "stylesrc" inserted in it.

Like so: <body stylesrc=&quot;foam_post.htm&quot;>

Of course &quot;stylesrc&quot; is entirely a Microsoft invention. The idea is that as the server reads &quot;stylesrc&quot; it will go to the page (in this case &quot;foam_post.htm&quot;) and apply the styles found in &quot;foam_post.htm&quot; to the current page.

Except it doesn't work properly... It only seems to carry the styles across if they are either:
A Microsoft Theme with all that strange metatag stuff Frontpage does or
Part of the body tag in the source page.
For example - if &quot;foam_post.htm&quot; had a body tag which read <body style=&quot;font-size: 12pt; color: red&quot;>
And the page generated by the Discussion Web had a body tag that read
<body stylesrc=&quot;foam_post.htm&quot;>
Then the style, 12pt red text would be applied to the generated page.

The vastly irritating thing is that the &quot;stylesrc&quot; element doesn't seem to pick up on CSS which have been put in the HEAD - crazy huh?

So - any ideas:
Can I insert a tag pointing at a stylesheet into the <body> tag?
Has anyone run into this before?

I really really don't want to use Microsoft Frontpage Themes unless they can be applied in a way that only used my CSS page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top