Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Frameset Borders

Reply
Thread Tools

Frameset Borders

 
 
eric.olstad@gmail.com
Guest
Posts: n/a
 
      08-30-2006
I just thought I'd post this for any that care. I'm sure it has been
explained before.


This topic deals with the differences in framesets between IE (Internet
Explorer) and Firefox.

Why framesets?
Well they may be a pain to program with, but they provide a nice
interface.

I recently spend a handful of minutes trying to determine the
differences between how IE handles framesets versus how Firefox does.

Framesets have a few non-standard properties that are relevant here.

frameborder
framespacing
border
bordercolor

These attributes are not documented on W3C, but firefox and IE both
understand them.

frameborder
This attribute tells the browser to render a border on the frames or
not. It can have a value of 0 or 1. 0 = hide borders, 1 = show
borders

framespacing
This attribute is only understood by IE. It tells the browser how wide
to render the borders. A wider border is easier to grab if the frames
allow resize.

border
This attribute is understood by IE and Firefox. However, IE will
override this value if the framespacing value is present.

bordercolor
This attribute tells the browser to render the borders with the given
color.

Then, on top of that IE actually renders the borders a few pixels wider
than Firefox. So a border="5" will render at around 7 or 8 on IE and 5
on Firefox. We can actually use these incompatibilities to our
advantage. Take the following HTML:

<frameset rows="80px,*" frameborder="1" framespacing="3" border="5"
bordercolor="#C00000">
<frame noresize="noresize" bordercolor="#C00000" />
<frameset cols="100px, *">
<frame />
<frame />
</frameset>
</frameset>

This will render borders of equal sizes on both browsers. Also, it is
important to note that though these attributes are properties of the
frame element, the browsers recognize them fine on the frameset
element. Any frames or framesets child to a frameset inherit its
properties. So adding these attributes to the root frameset
effectively gives us the options we want.

Go here to test this:
http://www.w3schools.com/tags/tryit....tml_frame_cols

Hope this helped someone...

 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      08-30-2006
In article
< .com>,
wrote:

> I just thought I'd post this for any that care. I'm sure it has been
> explained before.
>
>
> This topic deals with the differences in framesets between IE (Internet
> Explorer) and Firefox.


Put the info at a URL and leave it there for those who are
interested in the quirks of frames, can bookmark it etc. Set up a
form for feedback in case you need to improve the info. Just
check that the issues and info is not set out in other
established tutes... and, I suppose, to spoil the party a bit,
read up on the disrepute that this fine form is in these days...

--
dorayme
 
Reply With Quote
 
 
 
 
eric.olstad@gmail.com
Guest
Posts: n/a
 
      08-31-2006
> Put the info at a URL and leave it there for those who are
> interested in the quirks of frames, can bookmark it etc. Set up a
> form for feedback in case you need to improve the info. Just
> check that the issues and info is not set out in other
> established tutes... and, I suppose, to spoil the party a bit,
> read up on the disrepute that this fine form is in these days...
>
> --
> dorayme


Yeah that was another option. Google retains these usenet topics long
after they've been removed from usenet. So this will be searchable for
some time to come. Thanks for the feedback though.

 
Reply With Quote
 
 
 
Reply

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing to a frameset causes the frameset to resize xzzy ASP .Net 4 03-23-2006 10:31 PM
Tables with different color left and right borders, no top or bottom borders, etc. George HTML 9 10-25-2004 04:25 PM
Frameset, Selected Index, Target Frameset relchatt@comcast.net ASP .Net 0 09-29-2004 09:37 PM
Changing src of a frame of a frameset within another frameset? Julius Mong Javascript 1 05-10-2004 07:35 PM
How do you make sure a frameset is loaded? I'm trying to open a frameset in a new window which shows a specific html page in a specific frame ck388 Javascript 1 09-24-2003 08:32 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57