It is currently Thu Mar 28, 2024 5:18 am



Reply to topic  [ 9 posts ] 
[solved]1 css table (or simular) multiple HTML pages? 
Author Message
Minor Diety
User avatar

Joined: Fri Apr 11, 2003 5:09 pm
Posts: 4003
Location: Walsall, West Mids, UK
Reply with quote
Post [solved]1 css table (or simular) multiple HTML pages?
What I want to know, is if it is posible (and how) to make 1 single CSS table, display on the left side of this webpage:
www.paint-zone.co.uk/main.html
So that if I click to navigate to a different page, it still shows?

The point in me doing this is so that whenever I change the table, I just modify the CSS part, instead of having to go through and change each HTML page.

_________________
Games to complete:
GTA IV [100%] (For Multiplayer next!)
Fallout 3 [50%]
Rock Band [35%]
http://www.cafepress.com/SmeepProducts


Last edited by Mole on Sat Jan 29, 2005 7:15 pm, edited 1 time in total.



Fri Jan 28, 2005 12:46 pm
Profile WWW
King
User avatar

Joined: Wed Apr 16, 2003 2:18 pm
Posts: 1976
Location: Sexy Town
Reply with quote
Post 
If you coded in PhP you could do this easy. As far as I know, the only thing a CSS will change is color and text size. It wont change the table itself or the images in the table. Just stuff like font color, backgrougd color etc. If youre wanting the ability to change the table it self I dont think a CSS is going to work. Your stuck using frames or switching to PHP.

I could be wrong.

_________________
Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
Image


Fri Jan 28, 2005 1:24 pm
Profile ICQ YIM
Minor Diety
User avatar

Joined: Fri Apr 11, 2003 5:09 pm
Posts: 4003
Location: Walsall, West Mids, UK
Reply with quote
Post 
What about absolute possitioning? I know that can be used, but I don't know how. On both counts.

_________________
Games to complete:
GTA IV [100%] (For Multiplayer next!)
Fallout 3 [50%]
Rock Band [35%]
http://www.cafepress.com/SmeepProducts


Fri Jan 28, 2005 2:19 pm
Profile WWW
King
User avatar

Joined: Wed Apr 16, 2003 2:18 pm
Posts: 1976
Location: Sexy Town
Reply with quote
Post 
Never heard of it but this might help
http://www.juicystudio.com/tutorial/css/fixed.asp

_________________
Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
Image


Fri Jan 28, 2005 2:33 pm
Profile ICQ YIM
Felix Rex
User avatar

Joined: Fri Mar 28, 2003 6:01 pm
Posts: 16646
Location: On a slope
Reply with quote
Post 
btw, css can control many things, including the outlining of a table, cell padding/spacing/outlines, background images, underline, overline, bold, etc etc etc. Basically anything that a deprecated html element can do. background-image: /yo/momma.jpg for instance.

I'm not sure I understand the question about css table blah blah. If you're talking about a menu you want to carry over from one page to another, yea, css isn't the way to do that. You want either php includes or maybe server side includes (same effect, less power). Or frames. Or iframes should work too, if you want an html only solution that doesn't use classical frames.

_________________
They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.


Fri Jan 28, 2005 3:26 pm
Profile WWW
Minor Diety
User avatar

Joined: Fri Apr 11, 2003 5:09 pm
Posts: 4003
Location: Walsall, West Mids, UK
Reply with quote
Post 
Hmmm, I hate frames. They suck monkeys. What do you know about phpincludes or server side includes?

_________________
Games to complete:
GTA IV [100%] (For Multiplayer next!)
Fallout 3 [50%]
Rock Band [35%]
http://www.cafepress.com/SmeepProducts


Fri Jan 28, 2005 4:00 pm
Profile WWW
Felix Rex
User avatar

Joined: Fri Mar 28, 2003 6:01 pm
Posts: 16646
Location: On a slope
Reply with quote
Post 
they're easy. My entire site (clankiller.com) is built around php includes. You have to make sure your page gets parsed by the php interpreter (ie, give it a .php extension or something). The code is like this:L

<? include("filename_to_include.php"); ?>

and that's it. Easy. Server side includes I'd have to look up, but it's very similar.

_________________
They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.


Fri Jan 28, 2005 4:36 pm
Profile WWW
Minor Diety
User avatar

Joined: Fri Apr 11, 2003 5:09 pm
Posts: 4003
Location: Walsall, West Mids, UK
Reply with quote
Post 
So give me some basics to work with,

For instance a basic table in php, what i'd save it as, and where i'd call it etc.

EDIT:

Right basically what i have done is created a .php file called "menutable.php"

Also a dummy html file.

The file "menutable.php" has a HTML table in it, which I can display through my browser by navigating to it.

to call the table in my dummy html file, what do i do?

_________________
Games to complete:
GTA IV [100%] (For Multiplayer next!)
Fallout 3 [50%]
Rock Band [35%]
http://www.cafepress.com/SmeepProducts


Fri Jan 28, 2005 5:08 pm
Profile WWW
Minor Diety
User avatar

Joined: Fri Apr 11, 2003 5:09 pm
Posts: 4003
Location: Walsall, West Mids, UK
Reply with quote
Post 
Never mind, I did it.

_________________
Games to complete:
GTA IV [100%] (For Multiplayer next!)
Fallout 3 [50%]
Rock Band [35%]
http://www.cafepress.com/SmeepProducts


Sat Jan 29, 2005 7:14 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.