/    Sign up×
Community /Pin to ProfileBookmark

frames with CSS

I am hoping that I can create a frame with CSS. Is this possible?

Please have a look at:

[url]http://www.fsinternet.co.uk/pioneer/pioneer.htm[/url]

I would like to be able to click on the links to change the contents of the larger page area.

Cheers for any advice.

Si. ?

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@BrewsterJul 05.2005 — Hi

Check out the code that I wrote for this page: www.hypnofish.co.uk

Brew
Copy linkTweet thisAlerts:
@SimonBahrauthorJul 06.2005 — Hi thats great because youve done what I want to achieve.

Unfortunately, I'm not sure how it works.....what do the php extensions on the pages mean, is there code somewhere that I cannot see?

Cheers Si. ?
Copy linkTweet thisAlerts:
@JayhawkJul 06.2005 — Looking at his source and judging by the "php" extensions, I suspect he's using includes.

PHP is a server side technology. In this case li lets you have a bunce of code (markup) in a separate file and bring it into a page with one command.
[code=php]
<?PHP
include("header.php"); // contains markup common to all pages
?>
normal HTML for all of the stuff uniquie to this page
<?PHP
include("footer.php"); // more common stuff
?>
[/code]
Copy linkTweet thisAlerts:
@SimonBahrauthorJul 06.2005 — Sorry, I understand what you mean but I don't understand how I would put this into my page. Its a bit too far ahead of where I am knowledge wise. ?
Copy linkTweet thisAlerts:
@BrewsterJul 06.2005 — Hi

The fact that the pages use php is irrelevant for what you are asking as is the html code that is what you are after....

In between your <head> tags, put this line of code:

[CODE]<link rel="stylesheet" type="text/css" media="screen" href="stylesheet.css">[/CODE]

Create a file called stylesheet.css and put this code:

[CODE]#content
{
text-align: left;
float: right;
border-width: thin;
border-style: groove;
padding: 10px;
background: #D4D4DF;
overflow: auto;
height: 380px;
margin: 0;
width: 75%;
overflow-x: hidden;
}[/CODE]


In your main html page use this code:

[CODE]
<div id="content">
Put your content here.....
</div>
[/CODE]


I have just taken this code by using view source on my browser....

Let me know if you need any more help.

Brew
×

Success!

Help @SimonBahr spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...