473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CSS acting like frames?

Is there a way to allow css to act like a simple 2 frame setup.

I want a fixed navigation header on all pages, website itself has 100+
pages, each is multi paged with sub pages.

So what I could do in frame is have 2 frames and clicking in the header
frame would load a seperate html page in the main frame, therefore not
having to repeat the header code 100+ times, can this be done using css?

I know css can use a float or fixed header position, even using margins to
trick ie into making a header section fixed. But this still seems like I
would have to repeat the header css on each page, it would just be more
fluid if the header always stayed loaded as it does using frames.
Or is this scenario not going to work in css YET?

BTW each page is header on top, fixed height and width, and main body is
scrollable up/down.

TIA (Thank-you In Advance)
--
ka*******@hotmail.comcomcom
-=< FreeWare ForEver >=-
Mar 11 '06 #1
13 2159
No css doesn't really work like this. If your web site is on a unix
machine then you probably want to use a server side include (SSI). You
use some simple programing in your page to call another document to be
inserted. The page is assembled by the server from multiple files
before the user gets it.

Do a search on SSI or check this random site:
http://www.htmlgoodies.com/beyond/we...le.php/3473341

Mar 12 '06 #2
Or say you should give PHP include() a try.

Mar 16 '06 #3
In article <11*********************@i40g2000cwc.googlegroups. com>,
"aa******@gmail.com" <aa******@gmail.com> writes
Or say you should give PHP include() a try.


The truth is that any modern web platform will give you a way to include
files on the server side. CGI, ASP, ASP.NET, Cold Fusion, PHP, you name
it, there's loads of them.

There's really very little justification for frames when web servers are
so powerful nowadays.

--
Alan Silver
(anything added below this line is nothing to do with me)
Mar 16 '06 #4
This is exactly what I am trying to find out as I jump into CSS for the
first time. (First impression: about 30% of all CSS coding is devoted to
getting round the non standard quirks of IE...)

I want a block of links which will act as a navbar, which load ONE frame
without flickering etc as they themselves, and their images, are
reloaded. Without having to be retyped and maintained in every page of
the site. That's what frames are good at.

I'm looking at the iFrames element (or do I mean selector) at the
moment. It seems to be a CSS equivalent of frames, but somewhat more
complicated, and there are dire warnings about it not working the same
in all browsers / the usual linking and printing problems with frames. I
suspect the warnings about "not all browsers" were written a couple of
years ago though and would welcome peoples' thoughts on the current
worth of iFrames. Or some healthy mocking and heavy hints about "look at
X, kid."
There's really very little justification for frames when web servers
are so powerful nowadays.


I think you've got a purist, professional attitude there sir. I'm an
amateur who wants to spruce up an old home site. I don't have the time
to learn Unix, SSI stuff (heck, I don't have much time to learn CSS ) so
I want a quick easy fix. I don't think my ISP's servers do stuff like
that for free anyhow, and I'll be developing my CSS scripts (using
Notepad of course) on a laptop running Windows. No hope for me, is
there? ;)
--
Nemo
Apr 1 '06 #5
> I'm looking at the iFrames element (or do I mean selector) at the
moment. It seems to be a CSS equivalent of frames, but somewhat more
complicated, and there are dire warnings about it not working the same
in all browsers / the usual linking and printing problems with frames. I
suspect the warnings about "not all browsers" were written a couple of
years ago though and would welcome peoples' thoughts on the current
worth of iFrames. Or some healthy mocking and heavy hints about "look at
X, kid."


The iframe does not have anything to do with CSS. If you want to use
frames or iframes then go ahead. If you are doing it for convience sake
in building the webpage, I would suggest a good web editor that
maintains your site (and navbar). I think this works well and doesn't
add crappy frames to your site. I think you are discounting the
suggestions of the server side includes though. If you look at the link
I gave you can see that it is very simple to do some very powerful
things.

I'm no expert so feel free to correct me if I've made a mistake or have
an opionion that needs fixing. LOL

Apr 2 '06 #6
On Sat, 1 Apr 2006 20:17:07 +0100, Nemo <Ne**@splurge.org> wrote:

There's really very little justification for frames when web servers
are so powerful nowadays.
I think you've got a purist, professional attitude there sir. I'm an
amateur who wants to spruce up an old home site. I don't have the time
to learn Unix, SSI stuff (heck, I don't have much time to learn CSS ) so
I want a quick easy fix. I don't think my ISP's servers do stuff like
that for free anyhow,


Your best bet for handling the common markup in each page would be
preprocessing. I use a small, old, simple (and free) command-line
preprocessor called Orb, but there are probably better (free) ones
around.
and I'll be developing my CSS scripts (using
Notepad of course) on a laptop running Windows. No hope for me, is
there? ;)


Well, Notepad *is* a rather masochistic approach. ;-) At least try
upgrading to NoteTab (or one of the other text editors that get
recommended here from time to time.)

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Apr 2 '06 #7
I checked your SSI link, decided it DID look easy and a sensible
approach, but alas it seems my ISP doesn't support it unless I pay more
$$$ for a business style osting service. Ah well. I have learnt
something. Thank you, chaps

Nemo
Apr 2 '06 #8
Nemo wrote:
I checked your SSI link, decided it DID look easy and a sensible
approach, but alas it seems my ISP doesn't support it unless I pay more
$$$ for a business style osting service. Ah well. I have learnt
something. Thank you, chaps

Nemo


I had some problems which would be solved using SSI, but I use a free
website provided by my ISP.

What do they provide?
No SSI, no SS scripting, no databases - zero zilch, nil.

So I came across a great script by David Dorward which does the
includes for you on your PC.

It is written in Perl, so you need to download the Perl interpreter,
but once you have done that, it works like a charm.

David named it The Dolt - don't know why but a catchy name
Here is his site:
http://dorward.me.uk/software/dolt/

I have had some correspondence with him by emila and I have revised the
script a bit, so my version is also attached (if I figure out how to
attach in Google). The functionality is exactly the same, it just gives
a bit more info on the log.

Apr 3 '06 #9
I couldn't figure to how to attach a file so here is where you can
download my revised Dolt script
http://tandcl.homemail.com.au/dolt-3_0_1.zip

P.S. Can you attach a file in this forum and if so, how?

Apr 3 '06 #10
Trevor L. wrote:
P.S. Can you attach a file in this forum and if so, how?


No. This is a Usenet text-only forum. Just because Google Groups
allows you (and me) access to it doesn't mean they have added (or are
capable of adding) functionality to it.

--
Vid the Kid

Apr 3 '06 #11
Alan Silver wrote:
There's really very little justification for frames when web servers are
so powerful nowadays.


Here's two counterarguments:

1. Not everybody's hosting situation provides this capability.

2. Not all web surfers have a high-speed connection. If I were
visiting a site that had a constant navbar, especially one which
includes images, I would be VERY glad to have it in a frame where it
only loads once, rather than have it included in every page and re-sent
to me over and over again. (At my house, we have a 24kbps connection
shared between 3 computers - luckily, it's not very often more than one
is in use at the same time. This is out of my control.) Case in
point: just about every web-based e-mail service. Everytime you click
on *anything* you have to wait for an entire new page to load, of which
usually more than half is navigation and other UI that's identical to
what was there moments before. The beautiful exception is GMail, which
uses JavaScript to manipulate the interface on the client side, and the
bulk of the information that has to be downloaded is actual e-mail
content.

--
Vid the Kid

Apr 3 '06 #12
In article <11*********************@u72g2000cwu.googlegroups. com>,
"Trevor L." <ta****@homemail.com.au> wrote:
I couldn't figure to how to attach a file so here is where you can
download my revised Dolt script
http://tandcl.homemail.com.au/dolt-3_0_1.zip

P.S. Can you attach a file in this forum and if so, how?


The way you did it now appears correct providing you followed Mr.
Dorward's terms and conditions.
You might want to check:
<http://www.safalra.com/special/googlegroupsreply/> which addresses more
general questions you might not think you have.

leo

--
<http://web0.greatbasin.net/~leo/>
Apr 3 '06 #13
tOn 2006-04-03, VidTheKid <vi*******@gmail.com> wrote:
Alan Silver wrote:
There's really very little justification for frames when web servers are
so powerful nowadays.


Here's two counterarguments:

1. Not everybody's hosting situation provides this capability.

2. Not all web surfers have a high-speed connection. If I were
visiting a site that had a constant navbar, especially one which
includes images, I would be VERY glad to have it in a frame where it
only loads once, rather than have it included in every page and re-sent
to me over and over again.


If the images stay the same they only download once. the html OTOH is
repeated between pages.

Bye.
Jasen
Apr 3 '06 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: les | last post by:
Hello, I just wonder what are the implications to use frames to build portal. I've seen some sites that are quite fast with frames but I just wonder if there are hidden "costs". I've tried to...
40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
95
by: Neal | last post by:
Of course, every frame site I've ever seen has reduced usability and all. We've been through this before. But as frameset is still a part of HTML, there must be some legitimate use for it, hmm?...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
5
by: Dfenestr8 | last post by:
Hi. I'm designing a site, and I'm trying find a way of browsing it without using frames, so I can test the <noframes> </noframes> tags. I use a linux mandrake 10 system, with KDE 3.2. Is there...
7
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
3
by: Nish | last post by:
Is HTML frame is an old technology? Will the modern web application are developed using the HTML frames? Does all the browsers support them? Thank you for your suggestion, Nish
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.