Forum Moderators: not2easy

Message Too Old, No Replies

css tables in head?

         

dev79

11:03 am on May 24, 2003 (gmt 0)

10+ Year Member



i'm not sure if what i want to do is possible...

can i have css table definitions in the head of my html document (or in an external doc) that completely defines
all table elements? ie. the body would contain text that
needs to be rendered into a specific table format, but the body doesnt contain any table tags...?

Nick_W

11:04 am on May 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld! [webmasterworld.com]

Can we start with what the purpose/goal is here? - That will help with an answer ;-)

Nick

dev79

5:25 pm on May 24, 2003 (gmt 0)

10+ Year Member



thanx, glad to be here...this is a great resource.

my goal is this...i'm working on a website that contains
a catalog page that will be updated weekly by somone other than me who is not really web literate...he had been copying an acess database into frontpage having that generate the table code and pluging that into my design...which is really ugly on multiple levels.

so what i want to do is have all the table info setup and defined by me in a way that this other person can't really mess it up- they just paste in the catalog text data and it is handled by my code. am i making sense?

gph

5:49 pm on May 24, 2003 (gmt 0)

10+ Year Member



I had a similar issue. I got the client to set his version of FP to "preserve existing HTML" then put comments in the page where he needs to put his data.

Alternatively you could make a little hta with form fields that writes the pages from his input. This would have been my next step if he couldn't do it in HTML view of FP.

I've since found out that he's making changes in "Normal" view but the pages aren't being butchered because of "preserve existing HTML"

rossH

5:54 pm on May 24, 2003 (gmt 0)

10+ Year Member



I apologize for intruding if the solution here really does exist within css, and if it does I'd like to know...

dev79, it seems to me as a web developer primarily that your situation calls for one of two other solutions.

If the data lives in an Access database and needs to be brought into the website, then my first solution would be to reach for either some custom scripting to take a csv file or somesuch and throw it into the template (or some content management package or utility already made that does this)

My second thought, not knowing just how much data you're dealing with, might be to do what we've started lately with a couple of clients, which is to build the site (or the relevant section) in dreamweaver, and then install the Contribute software on the client's computer, and constrain areas in the web pages that he can change, and deny permission to the template areas of the pages. This is pretty bulletproof so far.

Neither of these two thoughts belongs in this forum, my apologies again for intruding, I'm still learning from your wonderful help on css Nick_W, so if in fact this is a css solution, I'll be listening :)

Slade

6:00 pm on May 24, 2003 (gmt 0)

10+ Year Member



You can include an external css document from the head of the page.
<style type="text/css" media="screen">@import "/yourfile.css";</style>

Note that this import defines the screen formatting. You can import other files that define how the page looks when printed, or viewed with an audio renderer, or other things.