From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Rudin Subject: Re: [html-export question] location with JS. Date: Wed, 17 Dec 2014 10:29:50 +0000 Message-ID: <871tny1sdd.fsf@rudin.co.uk> References: <87wq5rwl5n.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Rasmus writes: > Hi, > > For my CV I'm trying to place a box (div, whatever) at the left edge of > the content-div. My org-file looks like > > - year0–year1 :: FooCorp > - note1 > - note2 {{{BOL(year½)}}} > > And I want the ouput to look like: > > year0–year1 FooCorp > - note1 > year½ - note2 > > In the attached example I have the desired output for LaTeX, and the > output for html is also fine *as long as you don't zoom*. The issue is > that the javascript that I use absolute position in pixels, and the > browser doesn't update the location when zooming... > > Any ideas on how to solve this? Hoping for pixel perfect rendering for html is fraught with difficulty - it's not really designed for that sort of thing. If that's what you want then you may be better off producing a pdf.