Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #24395
| From | Osmo Saarikumpu <osmo@weppipakki.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Omitting a bar |
| Followup-To | comp.infosystems.www.authoring.stylesheets |
| Date | 2014-05-25 15:53 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <llsp55$3qv$1@dont-email.me> (permalink) |
| References | <xWgKOeoOiNfTFwYm@invalid.uk.co.demon.merlyn.invalid> <lll05p$jls$1@dont-email.me> <tdj98eZBu6fTFwrA@invalid.uk.co.demon.merlyn.invalid> |
Followups directed to: comp.infosystems.www.authoring.stylesheets
On 23.5.2014 23:11, Dr J R Stockton wrote:
> I have a DIV which I want to be positioned absolutely near the top of
> the BODY and also floated right. Float and absolute seem incompatible,
> so I presumably need to absolutely position the DIV sideways at an
> offset computed from the BODY width and the DIV width. If anyone can
> provide actual code that works for that, it would help. The DIV does
> not need to be exactly at the float-right position, just near there
> where there is clear space.
IIUYC, this seems purely a CSS issue:
body {
/*set BODY as the nearest positioned ancestor and
establish a new block formatting context for it's contents:*/
position:relative;
}
div {
position: absolute;
/*adjust lengths as needed:*/
top:1em;
right:1em;
}
Followup: comp.infosystems.www.authoring.stylesheets
--
Best wishes, Osmo
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Omitting a bar Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-05-21 17:47 +0100
Re: Omitting a bar JJ <duh@nah.meh> - 2014-05-22 07:42 +0700
Re: Omitting a bar Osmo Saarikumpu <osmo@weppipakki.com> - 2014-05-22 17:04 +0300
Re: Omitting a bar Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-05-23 21:11 +0100
Re: Omitting a bar Osmo Saarikumpu <osmo@weppipakki.com> - 2014-05-25 15:53 +0300
csiph-web