| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jun 2007
Posts: 21
|
Include .html files with CSS
I have my main page, called layout.html. I want a drop down menu that I have completely coded on ddm.html to appear in layout.html. I know I can do this with PHP, but i'd rather develop it offline, CSS should be able to do this, I just dont know the code. I do know the code to fetch pages with CSS Vars, but that hasnt worked for a html page with content. |
|
|
|
|
|
#8 (permalink) | |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,893
|
Quote:
To make site-wide changes to the menu, you only need to change one file. Same principle as external css and js. |
|
|
|
|
#9 (permalink) |
|
Semantics, yay.
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,088
|
CSS is not a scripting language. It is meant to style html elements, and that's about it. If you want to include the content of File A inside File B, you need a server-side scripting language. End of story. |
|
|
|
#11 (permalink) | |
|
goober :-)
|
Quote:
My signature sucks.
|
|
|
![]() |