473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Fixed nav menu for media type projection

X-posted to opera.page-authoring, because this is a bit Opera-specific for
the moment. F'up to ciwas.

I am playing around with dedicated styling for the projection media type..
Currently the only browser to support it is Opera, which uses projection
when in full-screen mode.

On a website I maintain (http://www.jules-verne.nl/), I have set up some
special styles for projection. Not that this specific website really needs
it, but I'm just trying to get some experience before starting to do my
professional presentations this way.

Some of the things I do are fairly straightforward: a larger font size,
sans-serif font, having the h1 of each page display as a full-width
coloured header, idem for copyright and last modified info in the footer,
etc.

Another thing I did, which took some more trial and error, was to put the
navigation menu as a popup menu in the lower left corner. In the end, I
made this work, although I haven't yet looked at accessibility for
keyboard navigation. Basically, the menu is in a special div like this:

<div id="menu">
<h1>Navigation menu</h1>
<ul>
... menu ...
</ul>
</div>

I fix the header in the lower left corner of the screen:
div#menu h1 { display: block; position: fixed; bottom: 0; left: 0;
height: 2em; width: 10.5em; }
and put the menu above it:
#menu ul { position: fixed; bottom: 2.5em; left: 0; width: 13.2em; }
Now I hide the menu until the h1 is hovered, and keep the menu displayed
as long as it is hovered:
#menu ul { display: none; }
#menu h1:hover + ul { display: block; }
#menu ul:hover { display: block; }

(That same menu is displayed as a sidebar on the left in screen media, as
a normal list at the bottom of the page in handheld, and not at all in
print.)

The next thing I wanted to try is page breaks. Just as an experiment, I
put a
h2, h3 { page-break-before: always; }
in my projection CSS. This makes a new "slide" start at each h2 or h3. I
think if a document is well structured, you don't need special <div
class="slide"along with div.slide { page-break-before: always; }.

Now the page breaking in itself works great, but there's a strange effect
on the menu ul. Look for example at <http://www.jules-verne.nl/>: at the
first page, the menu shows up as it should, but after a few PageDowns, it
loses its background colour and its fixed position at the bottom left.

I created a test document without h2 and h3
<http://www.jules-verne.nl/test.html>. There are no page breaks here, and
the document just scrolls vertically at PageDown. Now the menu stays where
it is, and looks good even after PageDowning all the way to the end of the
document.

I would expect a block element that is fixed at bottom: 0 and left: 0 to
stay there. And all block-level descendants should be positioned with
respect to this fixed box, right? But it doesn't seem to happen like that
in Opera.

Is there something I'm overlooking here? Or is this a bug in Opera?

--
Garmt de Vries-Uiterweerd
Jul 14 '06 #1
0 1458

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rob McLennan - ZETLAND | last post by:
Hi, I have set up an external stylesheet, named "print.css", to format the style of all pages printed from my company's website. I've been previewing my changes to the stylesheet by doing...
179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
1
by: Garmt de Vries | last post by:
For a long time, I've used CSS to style my webpages, but only for media "screen" and "print". Now I've started looking into styling them for other media like "projection" and "handheld". I'd be...
26
by: Thomas Mlynarczyk | last post by:
Hi, Could some kind person using Mac or Linux (or others) please take a look at http://www.mlynarczyk-webdesign.de/tmp/menu/menu.html and tell me if the page renders as it should (screenshot...
10
by: Richard | last post by:
The style sheet shown below is from the suckerfish vertical menu. http://www.htmldog.com/articles/suckerfish/dropdowns/example/vertical.html I've added in a few minor changes to color code the...
9
by: boclair | last post by:
In a discussion between AJ Flavel and Spartanicus, The later said. "Layouts that work well on the desktop and on small screen devices are single column layouts. Layouts that use more than one...
11
by: Wolfgang Meier | last post by:
Hi, I really hope I'm not hitting a frequently asked question here, because I think almost every author must have made that decision. Anyway, here goes: Would it be better to write one global...
1
by: Luciano A. Ferrer | last post by:
look at http://relojurbano.com.ar/ver.html the idea is to obtain something like the bottom example using ul & li... with a few breaks, and right aligned... without change the 1234567890 order...
1
by: tehweb | last post by:
Background: I have a fixed position div on the bottom om my page. I have then added a dialog-div into this fixed position one. When I bring up the dialog, everything works if the the scrollTop is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.