Reply
Include .html files with CSS?
Old 06-24-2007, 07:58 PM Include .html files with CSS?
Experienced Talker

Posts: 31
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.
BagelPirate is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-25-2007, 12:52 AM Re: Include .html files with CSS?
vangogh's Avatar
Post Impressionist

Posts: 8,825
Name: Steven Bradley
Location: Boulder, Colorado
CSS can't do what you want. CSS was created for presentation. You can style HTML with it, but it wasn't made to include one html file into another. The way to do what you want is with PHP or another scripting language. It's pretty trivial to do though and if you install a server and scripting language on your computer you can still develop your sites offline.

Installing Apache and PHP on your local machine probably won't be the easiest thing you'll ever do, but it also won't be the hardest.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 06-25-2007, 01:01 AM Re: Include .html files with CSS?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Do you have a Windows-based (2000 or XP) PC? If so, you can configure it as a web server and potentially install PHP that way.

It'll save you a buttload of time in development if you can get your server configged properly.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 06-25-2007, 01:46 AM Re: Include .html files with CSS?
Mattmaul1992's Avatar
Ultra Talker

Posts: 465
Name: Matt
You do realize PHP arguably works better on Linux.. SO you could use Linux instead of just Windows. Anyways more than PHP can do it and CSS stands for Cascading STYLING Sheet. Notice there's nothing saying processor? It doesn't process anything (well besides the actual styling but does it really even count..) so it's impossible. You do realize you could do it without any server side language though. There's options. I don't have enough time to explain further (have to finish a few freelancing jobs, get my own new site running, and install iMap :S) but they're out there.. Google it.
__________________
PHP Code:
$talkupation++; 
http://www.forum-front.com/ - Free IPB forum hosting (releasing today!!!), no ads, free modifications
Mattmaul1992 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Include .html files with CSS?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14223 seconds with 12 queries