Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14223
| Message-ID | <1750700.sGQGJBOIHu@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-05-29 23:06 +0200 |
| Subject | Re: Shading a <div> |
| Newsgroups | comp.lang.javascript |
| References | <4fc5370c$0$6907$e4fe514c@news2.news.xs4all.nl> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Tom de Neef wrote: > […] > Shading the whole client area apart from the focal <div> is not an option. > It should be per <div>. > > I know how to make a <div> element semi-transparent. And I know how to add > such a veil to the document and position it over a target <div>. > But I would like it to be 'attached to' the target <div> so that it stays > over it even when the target div resizes or moves (e.g. as a result of > window resizing or server instructions). > Can you think of an elegant way to do this and give suggestions, please. Position the target `div' element relative and the blocking `div' element absolute as its child with left: 0, right: 0, top: 0, bottom: 0. Did I miss anything? PointedEars -- Prototype.js was written by people who don't know javascript for people who don't know javascript. People who don't know javascript are not the best source of advice on designing systems that use javascript. -- Richard Cornford, cljs, <f806at$ail$1$8300dec7@news.demon.co.uk>
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Shading a <div> "Tom de Neef" <tdeneef@qolor.nl> - 2012-05-29 22:52 +0200
Re: Shading a <div> Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-29 23:06 +0200
Re: Shading a <div> "Tom de Neef" <tdeneef@qolor.nl> - 2012-05-29 23:35 +0200
Re: Shading a <div> "Tom de Neef" <tdeneef@qolor.nl> - 2012-05-29 23:37 +0200
Re: Shading a <div> "Tom de Neef" <tdeneef@qolor.nl> - 2012-05-30 09:13 +0200
Re: Shading a <div> Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-05-30 10:14 +0200
csiph-web