Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 12-22-2006, 09:14 PM Is there a way?
Skilled Talker

Posts: 94
Trades: 0
Ok you all know i been designing my blog, ok well it gets so confusing trying to update the content in the middle of all that div's and stuff, so i was wondering is there a way to LINK a page with lots of text on to that location? not making any sence am i? well ill try explain better.

<div id="content">content here</div> / ok this is the content of my blog.

-- i want it like this

<div id="content">"link to the writing on a different file"</div>

Contentfilehere.html

basically i think you can do it in php im not 100% sure. or arnt i making sence :< i cant explain it
hellhound121 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-22-2006, 10:55 PM Re: Is there a way?
Experienced Talker

Posts: 30
Name: Ben Henick
Trades: 0
Yes, PHP.

<?php include("relative_path/filename.inc") ?>

If it's only contents are HTML, you don't need to do any special whizbang.

Start reading up:

http://php.net/manual/en/

...And direct your questions to the right forum.

If you've got a mess of div's, you're being rough.

Try descendant selectors to get things working right, e.g.

#mainSection .subsection p { attr: value; }

Would provide a style to all paragraphs within any element with a class of 'subsection' that is itself contained within an element with an id of 'mainSection' - more about that in the CSS2.1 specs, which will definitely be in the resource list: http://www.w3.org/Style
persist1 is offline
Reply With Quote
View Public Profile
 
Old 12-23-2006, 01:25 PM Re: Is there a way?
Skilled Talker

Posts: 94
Trades: 0
thankyou
hellhound121 is offline
Reply With Quote
View Public Profile
 
Old 12-23-2006, 01:35 PM Re: Is there a way?
NPL Solutions's Avatar
Skilled Talker

Posts: 66
Location: Colorado (USA)
Trades: 0
I would agree with using PHP myself, but couldn't you also use an IFRAME?

Nicky
NPL Solutions is offline
Reply With Quote
View Public Profile
 
Old 12-24-2006, 01:54 PM Re: Is there a way?
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
php would be the best way to do that.. if you use an iframe the search engines won't spider the contents of the iframe so it won't get indexed.. just remember if you do that include file as posted above you have to change the extention from html to php so if it's index.html change to index.php and the file can have any extention .inc, .html, .php, .txt whatever you want there.... persists code is good minus a semicolon it should be
<?php include("relative_path/filename.inc"); ?>

good work though...

__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
Old 12-25-2006, 04:34 PM Re: Is there a way?
Skilled Talker

Posts: 94
Trades: 0
when i add the " <?php include("info.php"); ?> ", it breaks my html divs, and then it doesnt work ^^, what going on?
hellhound121 is offline
Reply With Quote
View Public Profile
 
Old 12-26-2006, 08:22 PM Re: Is there a way?
Skilled Talker

Posts: 94
Trades: 0
Bump ^^
hellhound121 is offline
Reply With Quote
View Public Profile
 
Old 12-26-2006, 09:10 PM Re: Is there a way?
Super Talker

Posts: 124
Name: Chris
Trades: 0
Quote:
Originally Posted by hellhound121 View Post
when i add the " <?php include("info.php"); ?> ", it breaks my html divs, and then it doesnt work ^^, what going on?
Did you make sure to rename your page to: index.php instead of index.html

The file that contains the php must be named: filename.php

Also you might want to check if your host even has php, make a new file and type this in it: <?php phpinfo();?>

then save it as phpinfo.php

Open that and it should show a ton of options on your webserver, basically the php configuration of your server and the server information. If this works you have php installed on your host if it doesnt come up then your host does not have php installed.
__________________
Chris - Trying to help others and learn myself!

Please login or register to view this content. Registration is FREE
ctess is offline
Reply With Quote
View Public Profile
 
Old 12-27-2006, 07:40 AM Re: Is there a way?
Skilled Talker

Posts: 94
Trades: 0
awesome! it works the php include is really a better way of adding content. faster than sorting through all the code to find the text before i can normally edit it
hellhound121 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Is there a way?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.32835 seconds with 12 queries