Forum Moderators: not2easy

Message Too Old, No Replies

css and navigation

wondering whether its possible to execute an external to use on website

         

minverasolutions

8:05 pm on Jan 17, 2008 (gmt 0)

10+ Year Member



I'm using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Here's a question.

I am just learning CSS and how it works and about navigation and the like. My website had no tables or frames and will be using CSS for all design elements. I have some idea of what I'm doing but have come to a question about how CSS or an HTML page operates in relation to retrieving data from a file.

What I'm trying to do is implement a text file or something that contains some html into all my pages. Say its for a nav bar. I want to make things easy and code a nav bar (in html/css) in its own file and then have my "/pagename.html" take all that info inside the nav file and display it. That way, if I want to add a link or fix a link, all I have to do is open the nav file instead of fixing all the pages manually. Now, I know you're probably saying - USE A CMT! (content management tool) like Joomla! or something, but I really feel like a CMT would be overkill for what I'm trying to accomplish.
My only thought was utilizing javascript, but I dont know javascript at all and like I said, I want to use CSS for everything.

Any thoughts?

ceestand

8:57 pm on Jan 17, 2008 (gmt 0)

10+ Year Member



Welcome minverasolutions. There technically is a way to produce what you want using CSS + js, I think there's even a way to use just CSS. However, even if what I'm thinking of works (I can't look it up right now) it would be esoteric use of CSS and you'd be much better off using a PHP or ASP include. One of those should be available to you.

minverasolutions

9:34 pm on Jan 17, 2008 (gmt 0)

10+ Year Member



oh sweet.