css linking
I know how to link files with CSS. Like a css file on the server that specifies the font weight, face, size, etc. Is it possible to make a table in the original css file and link it to a webpage on the server, so I don't have to make hundreds of tables and I can just type in a variable box3row1="This text goes to screen" on the webpage that the viewer is viewing? Does this make sense?
kazimmerman posted this at 23:30 — 4th November 2005.
He has: 698 posts
Joined: Jul 2005
Variables are done with PHP, ASP, or other languages like that, not CSS. Perhaps I've misunderstood you, but I think you'll need to get into PHP if you want to use variables.
Kurtis
Megan posted this at 00:03 — 5th November 2005.
She has: 11,421 posts
Joined: Jun 1999
Would an include work for this? I'm not sure if I'm understanding you right either - what that will do is go from the page you are on to the server to grab a bunch of HTML then dump it back into the page. You can do this through Server Side Includes or with PHP (the more modern method). I don't have the code handy but it's really simple to do.
Megan
Connect with us on Facebook!
JeevesBond posted this at 00:56 — 6th November 2005.
He has: 3,956 posts
Joined: Jun 2002
Unfortunately there's no way of doing this with CSS, not if you want exactly the same content to appear over and over (CSS is for formatting, and that's all it can do, although it does that one thing very well!).
The way to do this - as Megan and mscreashuns pointed out is to include another file, it's as simple as:
<?php
include 'vars.php';
?>
I got that from: http://uk.php.net/manual/en/function.include.php
Do you have the ability to use PHP? If you're not sure there's a very easy to test to see if you can use it
a Padded Cell our articles site!
demonhale posted this at 07:29 — 6th November 2005.
He has: 3,278 posts
Joined: May 2005
or make a table like layout with the borders visible for the css, and when its arranged according to your liking, put it on your css file and ID them as needed, then it will be as easy as calling individual div ids to generate a table-like structure from your css...
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.