473,797 Members | 3,204 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with position: fixed; layout

I have been trying to do a CSS liquid layout imitating a frame, using
position: fixed for header, footer, and side navigation, and a fixed
background image. Page is valid HTML 4.01 Strict, and is at
http://www.ericlindsay.com/palmtop/palmnote.htm and the CSS is valid
(with colour warnings but no errors) at
http://www.ericlindsay.com/palmtop/palmtoptest.css
All the other pages in that directory use my four year old stylesheet
(so don't worry about them).

I am having some problems with Firefox 1.0.7 on Macintosh. In the
header and the footer, I am trying to confine the material to one line.
This works with Safari and Opera (Macintosh). However Firefox shows the
material at the right hand side as somewhat lower than the first
material in the header and footer. I can't really see what I am doing
wrong. Thanks.

In the header, the links are in an ordered list, and use display:
inline. The item to the right hand side is one of the list items pulled
out of the normal list position with a float: right The only unusual
thing is that I am displaying my pipe characters, and my angle brackets
from CSS with #header li:before { }

In the footer the bread crumbs are an ol, and the other links are in the
address tag. I am pretty sure they stayed in line when I had the bread
crumbs in the header div and didn't use a list.

P.S. I know this won't work in IE6 and earlier. Plan to worry about an
IE stylesheet after I get standards based ones working. However if
anyone is running an IE7 beta and cares to check? Or is anyone is using
a PocketPC browser?

--
http://www.ericlindsay.com
Dec 27 '05 #1
2 2402
Eric Lindsay wrote:

I am having some problems with Firefox 1.0.7 on Macintosh. In the
header and the footer, I am trying to confine the material to one line.
This works with Safari and Opera (Macintosh). However Firefox shows the
material at the right hand side as somewhat lower than the first
material in the header and footer. I can't really see what I am doing
wrong. Thanks.

You are welcome.

In the header one of the list items, "palmtop," has an ID of "folder"
which is floated right. You must list that one separately and physically
place it before the <ol>.
The same applies to <address> in the footer.

"Web Developer" is a very useful extension for Firefox and Mozilla. One
of its many features is "Outline Block Level Elements."
<http://chrispederick.c om/work/webdeveloper/>

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Dec 27 '05 #2
In article <M4************ *************** ***@giganews.co m>,
Jim Moe <jm************ ***@sohnen-moe.com> wrote:
Eric Lindsay wrote:

I am having some problems with Firefox 1.0.7 on Macintosh. In the
header and the footer, I am trying to confine the material to one line.
This works with Safari and Opera (Macintosh). However Firefox shows the
material at the right hand side as somewhat lower than the first
material in the header and footer. I can't really see what I am doing
wrong. Thanks.
You are welcome.

In the header one of the list items, "palmtop," has an ID of "folder"
which is floated right. You must list that one separately and physically
place it before the <ol>.
The same applies to <address> in the footer.


Thanks Jim,

Well, I guess you are right about that being why Firefox is treating the
Folder and the address as being a separate block level element. However
as I am declaring Folder and Address (and their containers) as display:
inline; I think I should get the presentation I wanted. Doesn't exactly
explain why both Safari and Opera picked up on display: inline; and
displayed the way I hoped.

However the trouble is that I did the HTML that way deliberately, in an
attempt to have the site follow a logical structure, rather than lay out
the HTML in presentational order, which would be much easier to style.

You probably noticed my HTML is laid out with main content, navigation,
header, footer, and not the more visually oriented header, main,
navigation, footer. That is mostly for search engine positioning, and
also to get content up front for anyone using accessibility technology.

The current folder is part of the list of site folders, therefore
logically it goes in order in the list of site folders. That list
should be a constant through the entire site. The whole idea of using
an ID on the current location was so I could have a content management
system add an ID to whatever is the current folder, and then have the
CSS pull it out of the regular presentation order.

Likewise, I could just avoid using Address, however it seems to me that
the semantics of the page indicate that Contact details should be in
Address, and not just in a Footer div (OK, including the link to the
problems page - when I write it - could be a straight error on my part).
"Web Developer" is a very useful extension for Firefox and Mozilla. One
of its many features is "Outline Block Level Elements."
D'oh! I really blew that. I have the Web Developer extension, but
don't use Firefox very often. I was looking at Display Topographic
Information (which I find hard to see), and totally forgot to look in
Outline. Again, notice that Folder isn't a separate division, although
it has been pulled out of the list block. I don't believe it should be
pulled out of the list block.

I would guess I could get the presentation lined up if I were to drop
the idea of using lists for the menus (and just have links inside a
div). However logically they are a list of links, therefore list is
appropriate.
<http://chrispederick.c om/work/webdeveloper/>


It is a great resource. I hadn't really realised how handy Firefox
could be. Thank you for your comments.

--
http://www.ericlindsay.com
Dec 27 '05 #3

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

Similar topics

2
2606
by: CJM | last post by:
I'm developing a site for a charity which I am aiming to make standards-compliant, accessible and cross-browser compatible. I'm doing OK so far and have the workings of a respectable site, but I still have a few little niggly problems: Site: http://www.aif-advocacy.org.uk/index.asp CSS: http://www.aif-advocacy.org.uk/aif.css
7
11654
by: Matt Kruse | last post by:
This is a typical layout, but I have specific requirements. I'm trying to figure out a) if it's possible to meet the requirements and b) if so, how. +---------------+ | header | +---------------+ | body | | (scrollable) | +---------------+ | footer |
3
19783
by: Markus Ernst | last post by:
Hello Reading the follwing document: http://www.w3.org/TR/WD-positioning-970131#In-flow it seems very clear that position:relative should be relative to the parent element. So in the following test case element1 and element2 should be placed side by side inside a centered white container element: http://www.markusernst.ch/test.htm
12
2263
by: news | last post by:
I'm having a heck of a time, and I'm hoping someone can take a quick look and see if they can recognize what might be the problem and point me the right direction. My blog page: http://www.celticbear.com/weblog/ looks fine in Firefox and Opera, but in IE6, the main body block positions itself below the left menu bar. I've W3C validated the XML Schema, HTML, and CSS and fixed a couple of errors and all three now give me a "valid"...
7
3701
by: Patrick.O.Ige | last post by:
Can i use Frameset in ASP.NET?What are other options I have a question :- I have an asp.net page and i'm using TreeView control as links The links are on the left side of the page inside a iframe! I used iframe b-cos the links are too long and they shift the page to the right. Is there a way that if a user clicks a link on the Treeview it can target to the table of the main window on the right (I DOUBT IF ITS POSSIBLE) What other ways are...
3
2400
by: Ali Sahin | last post by:
Hi there, I'd like to transform a XML-File to PDF. The XML-File ist build like followed: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <?xml-stylesheet type="text/xsl" href="D:\app\jboss-3.2.5\server\default\deploy\xifs.war\WEB-INF\classes\de\xifs\resource\xml\de\xifs\resource\xml\dunningaccountreport_de.xsl"?> <!DOCTYPE entities >
19
60396
by: derelicten | last post by:
hello , I have an issue positionating some pics I want to anchor to an existing table cell but I cant just place regular position on the cell because the background is fixed height and the set of pics is bigger then fixed space. SO I put them in a position:absolute div and I gave a position:relative to the container td. This seems to work in IE but in Firefox position is relative to the browser window, not the cell. I need a compatible solution...
2
2207
by: soulmach | last post by:
Hello forum friends. I performed a search on this topic, but I couldn't find anything useful. I wasn't really sure what to search. First I'll state what I am trying to do. I recently agreed to make a site for a friend. It's good practice for me. The site will have (among other things) a biography. I told him to look at Zen Garden and find some layouts, and I'd see what I can do. His favorite layout for Biography is: ...
3
3325
by: KimberlyM | last post by:
This has been driving me crazy. I hope someone can help. The site displays perfectly in FF but all div's do not show in IE. Please help me find the problem! Thanks! Here is my css. .node-unpublished, .comment-unpublished { background-color : #594133; } .preview .node, .preview .comment { background-color : #ffffea; }
0
10469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10246
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10209
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9066
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7560
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.