html frames question
Peter
plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Mon May 22 13:24:20 UTC 2006
On Mon, 22 May 2006, tech wrote:
> Hi Peter,
> I think we traded in frames for css long ago.
> In answer to your question, frames are spec'd in pixels or % so depending on
> your need the % might handle your needs if they are straightforward. From
> http://www.w3.org/TR/REC-html40/present/frames.html
> Attribute definitions
> rows = multi-length-list [CN]
> This attribute specifies the layout of horizontal frames. It is a
> comma-separated list of pixels, percentages, and relative lengths. The
> default value is 100%, meaning one row.
> cols = etc...
> I know zip about TCL but just checked out a random example "Sets up vertical
> or horizontal panes. Two frames, <i>f1</i> and 36 # <i>f2</i>, are placed
> inside another frame". ... That looks like html frames to me. However,
> after a quick glance around the web (is that possible?) I'd say that fans of
> frams are on the run ... screaming.
> best,
> john
Thanks for answering that. My problem is that I have a toolbar-like
thing that loads content into a <gasp> frame on the page. This turns out
to be painful. I will actually have to specify everything (and I mean
everything) in pixels in CSS and then I will know the size of the bar so
I can tell the dumb frame positioner. Gack.
The TCL trick is like:
--snip--
#!/usr/bin/wish
button .b1 -text "Yada"
button .b2 -text "Bada"
button .b3 -text "Badoo"
button .bQuit -text "Quit Right Now" \
-background "#ffa0a0" -command {exit 0}
## the trick is -fill x
pack .b1 .b2 .b3 .bQuit -in . -side top -fill x
update
after 1000
.b1 configure -font {Helvetica -14 bold}
update
after 1000
.b1 configure -font {Helvetica -18 bold}
update
after 1000
.b1 configure -font {Helvetica -24 bold}
--snap--
Peter
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list