473,796 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Frames, Framesets and CSS

x


Greetings everyone:

I am trying to get CSS to work with a framed web page, but I cannot.

Does anyone know the syntax required in a CSS specification
to specify attributes of the frames?

Ideally, I want to be able to change the border thickness, colour, etc.

Additionally, does anyone know of some comprehensive examples/tutorial
out there about how to use CSS?

Thanks in advance for your assistance.

-*- a puzzled and somewhat frustrated newcomer to CSS -*-
This is what I have for the html (named sample.html):

vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvv
<!doctype html public
"-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd"
<html>
<head>
<link href = "sample.css "
rel = "stylesheet "
type = "text/css"

</head>
<frameset rows = "50%,*" cols = "50%,*">
<frame name = "ul">
<frame name = "ur">
<frame name = "ll">
<frame name = "lr">
</frameset>
</html>

^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^

and here is the style sheet (named sample.css):

vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvvvvvvv vvvvvvvvvv

FRAME
{
bordercolor : #ff0000
frameborder : yes
border : 50
}
FRAMESET
{
bordercolor : #00ff00
frameborder : yes
border : 25
}

^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^
Jul 20 '05 #1
14 33813
x <news:40******* *******@dev.nul l>:
I am trying to get CSS to work with a framed web page, but I
cannot.

Does anyone know the syntax required in a CSS specification
to specify attributes of the frames?


http://www.w3.org/Style/CSS/
http://www.htmlhelp.com/reference/css/

--
Rob - http://rock13.com/
Web Stuff: http://rock13.com/webhelp/
Jul 20 '05 #2
On Thu, 01 Apr 2004 22:26:12 GMT, x <x@dev.null> wrote:


Greetings everyone:

I am trying to get CSS to work with a framed web page, but I cannot.

Does anyone know the syntax required in a CSS specification
to specify attributes of the frames?
The WC3 knows. All the valid CSS properties are listed at
http://www.w3.org/TR/CSS2/propidx.html .

FRAME
{
bordercolor : #ff0000
frameborder : yes
border : 50
}
FRAMESET
{
bordercolor : #00ff00
frameborder : yes
border : 25
}

See, you're just making shit up. It doesn't work that way.

It's my understanding that CSS does not affect frameset documents. I base
that solely on not recalling any instance of frameset ever being mentioned
in the CSS specs, so I may be in error. I welcome correction.
Jul 20 '05 #3
Neal <ne*****@spamrc n.com> wrote:
It's my understanding that CSS does not affect frameset documents. I
base that solely on not recalling any instance of frameset ever being
mentioned in the CSS specs, so I may be in error.


The CSS specifications do not discuss framesets*), but this does not
exclude them from the scope of applicability of CSS. And the sample style
sheet for HTML 4 in the CSS 2 specification sets some properties for
FRAMESET, FRAME, etc., too. (Nothing fancy, just things like
display: block, but still.)
*) In discussing positioning, CSS 2 spec mentions features that can be
used "to create frame-like presentations", but this does not imply that
framesets themselves could not be affected by CSS.

There's not much one can do with CSS to a frameset.*) One might try
settings widths and heights for the frames, but this is usually less
convenient than just doing so in markup - and could cause browser
confusion I'm afraid.
*) One needs to remember that a style sheet affects the document only,
not any document that it embeds, via the FRAME element or otherwise. So
you cannot e.g. set the font size effectively, except for the NOFRAMES
part, for the few advanced noframes-capable CSS-enabled browsers.

Setting borders is a special problem. Since frameset rendering has not
been described in CSS terms, even in the somewhat obscure sample style
sheet for HTML 4, we don't really know how to affect it in CSS, except by
trial and error, and knowing that whatever works on one browser may fail
on another. For IE at least, it is possible to set the color and width of
borders as follows:
- use nonstandard HTML attributes to remove all frame borders
(<frameset ... frameborder="0" border="0" framespacing="0 ">)
- use standard CSS to suggest the borders you like for the frame
elements.
See http://www.cs.tut.fi/~jkorpela/tekoik/keh.html for a demo.
It uses three frames and sets some colored borders:

frame { border: solid #090 0; }
#f1 { border-right-width: medium; }
#f2 { border-bottom-width: medium; }

Note: f1 and f2 have been defined as <frame id="f1" ...>. The id
attribute values need not be descriptive, unlike the name attribute
values for frame elements - remember that name values will be spoken to
people using speech browsers, displayed to people using Lynx, etc.
So they should be short but informative of content, and naturally in the
language of the document. This is why it is convenient to use id
attributes for referring to the frames in CSS, especially since in CSS
selectors, it's best to use Ascii characters only.

I don't particularly like the idea of colored frames borders. It makes me
ask whether the scrollbars should be colored too, and then I'm on the way
to hel^H^H^Hcreati ng a user interface for myself and not for users.
Besides, that would be somewhat inconvenient, since apparently I would
need to put the (currently IE specific) scrollbar property settings into
body { ... } rules in a style sheet for each framed document, rather than
(as I first expected) into a frame { ... } rule in a style sheet for the
frameset document. And this would imply that I need to have separate
versions of the documents for framing, something that I normally avoid.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #4
On Fri, 2 Apr 2004 06:12:51 +0000 (UTC), Jukka K. Korpela
<jk******@cs.tu t.fi> wrote:
And the sample style
sheet for HTML 4 in the CSS 2 specification sets some properties for
FRAMESET, FRAME, etc., too.


I've heard mention of the sample CSS, but have not encountered it
documented. Where can I find this? Is it a local css file stored with the
browser, or available at WC3? Or am I totally off?
Jul 20 '05 #5
Neal wrote:
On Fri, 2 Apr 2004 06:12:51 +0000 (UTC), Jukka K. Korpela
<jk******@cs.tu t.fi> wrote:
And the sample style
sheet for HTML 4 in the CSS 2 specification sets some properties for ^^^^^^^^^^^^^^^ ^^^^^^^^^^^ FRAMESET, FRAME, etc., too.

I've heard mention of the sample CSS, but have not encountered it
documented. Where can I find this? Is it a local css file stored with
the browser, or available at WC3?


As Jukka said, it is "in the CSS 2 specification".
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #6
Neal <ne*****@spamrc n.com> wrote:
On Fri, 2 Apr 2004 06:12:51 +0000 (UTC), Jukka K. Korpela
<jk******@cs.t ut.fi> wrote:
And the sample style
sheet for HTML 4 in the CSS 2 specification sets some properties for
FRAMESET, FRAME, etc., too.


I've heard mention of the sample CSS, but have not encountered it
documented. Where can I find this? Is it a local css file stored with the
browser, or available at WC3? Or am I totally off?


It's part of the CSS spec, for example:
http://www.w3.org/TR/CSS21/sample.html
"Appendix A. A sample style sheet for HTML 4.0"

If you have Mozilla installed find html.css and have a look. That's
the default stylesheet used to render pages in that browser. Then look
at quirks.css and weep.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #7
On Fri, 02 Apr 2004 15:56:08 +0200, Johannes Koch <ko**@w3develop ment.de>
wrote:
Neal wrote:
I've heard mention of the sample CSS, but have not encountered it
documented. Where can I find this? Is it a local css file stored with
the browser, or available at WC3?


As Jukka said, it is "in the CSS 2 specification".


Thanks for being mildly helpful.

As I've been combing through the specs for months, and for the last half
hour specifically, but unsuccessfully, looking for this, a URL to that
specific information might be really helpful.

Or, if it's not collected into one document, that information would save
me a bit of time as well. The phrasing of my post was meant to reflect
that possibility.
Jul 20 '05 #8
Neal <ne*****@spamrc n.com> wrote:
On Fri, 02 Apr 2004 15:56:08 +0200, Johannes Koch <ko**@w3develop ment.de>
wrote:
Neal wrote:
I've heard mention of the sample CSS, but have not encountered it
documented. Where can I find this? Is it a local css file stored with
the browser, or available at WC3?
As Jukka said, it is "in the CSS 2 specification".


Thanks for being mildly helpful.

As I've been combing through the specs for months, and for the last half
hour specifically, but unsuccessfully, looking for this,


Really? So you looked at the home page of the CSS 2 spec?
http://www.w3.org/TR/CSS2/
And you looked at the table of contents part way down the page (linked
to from every page of the spec)?
http://www.w3.org/TR/CSS2/cover.html#minitoc
And you didn't see the item in the ToC that says
"Appendix A. A sample style sheet for HTML 4.0"
a URL to that specific information might be really helpful.


http://www.w3.org/TR/CSS2/sample.html

The changes between this version and the CSS 2.1 version I posted
earlier can be educational.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #9
On Fri, 02 Apr 2004 15:01:29 +0100, Steve Pugh <st***@pugh.net > wrote:
It's part of the CSS spec, for example:
http://www.w3.org/TR/CSS21/sample.html
"Appendix A. A sample style sheet for HTML 4.0"


Appreciated. I was looking through the CSS2, not the revision. It's
clearly available in the revision. Thanks.
Jul 20 '05 #10

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

Similar topics

2
1487
by: Frances Del Rio | last post by:
where I work they support Netscape 4.7, we use frames a lot, but framesets that look fine in IE look awful in N 4.7, can someone shed some light on what the deal is w/frames in N 4.7? in N 4.7 frames are different sizes from what they're supposed to be, etc.. thank you very much.. Frances Del Rio NYC
95
5784
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? For most markup I know when it's useful and when it's not, but regarding table markup I sure know when it isn't good, but can't really come up with a way it would be good. As you all are among the sharpest pencils in the bag, let me ask: Do you...
7
4261
by: Peter | last post by:
I have 3 frames on a web page and using C# <frame name="left" src="SideMenu.aspx" scrolling="no" noresize style="BACKGROUND-COLOR: #ffffcc"> <frameset rows="16%,84%"> <frame name="rtop" src="TopMenu.aspx"> <frame name="rbottom" src="MainScreen.aspx"> </frameset> I am trying to display another page in the rbottom frame when I click on the link in the left frame. How do I do that? Does anyone has an example?
2
1328
by: K.C. Brown | last post by:
I'm trying to finish up an app that uses a left and right frame extensively. The left frame contains a dynamically built menu and the right is used as the target for links selected from the left. Everything runs pretty well except for a 3rd party dll that is called when certain restricted aspx pages are loaded to perform a 2 factor authentication that throws a runtime error on line 105 'x' is not defined every time it is enabled when...
5
1190
by: Michael | last post by:
I'm new to ASP.Net but been a programmer for decades. I'm doing a new App and am intending to use an Item Listing Frame alongside a Data Input Frame (I hate in-Grid editing). I figure when I hit Save on the Input Frame the List will update (and who cares how long it takes) while the Entry Frame presents you with a blank form ready to go almost immediately. I've looked around for information/tutorials on Frames in .Net and it's pretty...
4
1783
by: lashnjo | last post by:
hello, is it possible to click on one frameset, (ex. an image) and then for it to load a new frame in two different framesets and a new one in itself
2
1548
by: Ralph | last post by:
I'm upgrading and rewriting an old site to asp.net 2.0. Most definately want to replace frames and framesets with Masterpages. There was one and really only one feature of frames that I prefered. It seemed with frames I could much easier limit people to one point of entry to my site. That being index.html. Assuming users didn't have java script disabled I could make sure that even if a user bookmarked somepage in my site they always...
14
7065
by: Mark | last post by:
Hi Guys, I am very new to ASP.NET world. I need to create three frames. One at the top, one on the left and another on the right side. I don't know how to do it. So please help me with it. I'll appreciate any help/example you can provide. I am using visual studio 2005. Thanks, Mark
0
10465
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10242
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5453
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4127
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.