473,473 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Position {top: X%;} problem

I have been having a problem styling a page, which you can see live at my
test site:

Designer Page (http://home.ne.rr.com/thespar/)

(Ignore the missing pictures, which have not been uploaded.)

The page renders correctly in TopStyle and Dreamweaver 4, and also online in
my test website, i.e., the 5 successive navigation divs are correctly
rendered one after another.

The problem occurs when I preview the page in Dreamweaver MX 2004 or Front
Page 2000. In that case, the declarations "top: X%;" which appear in the 4
navigation divs (#s2-5), are ignored, resulting in placing all 5 navigation
divs on top of each other, all with "top: 0;"

Thanks in advance for your expert advice.

The relevant stylesheet is "side.css", which follows:

#left{ position: relative; }
#navigation{position: absolute; top: 0; left: 0; width:7.7em;
background-color: #930;}
#navigation2{position: absolute; top:20%; left: 0; width:7.7em;
background-color: #930;}
#navigation3{position: absolute; top:40%; left: 0; width:7.7em;
background-color: #930;}
#navigation4{position: absolute; top:60%; left: 0; width:7.7em;
background-color: #930;}
#navigation5{position: absolute; top:80%; left: 0; width:7.7em;
background-color: #930;}
#content{ margin-left: 7.7em; }
#sidelist
{padding: .3em 0em .1em 0em;
margin-left: 0;
background: #930;
width:7.7em;}
#sidelist li
{list-style: none;
margin: 0;
border-top: 1px solid #930;
text-align: left;}
#sidelist li a
{ display: block;
text-decoration: none;
background: #930;
padding: .35em 0.5em .35em 0em;
border-left: 1em solid #930;
font:bold 0.61em Verdana, Arial, Helvetica, sans-serif;}
#sidelist li a:link { color: #FFF; }
#sidelist li a:visited { color: #FFF;}
#sidelist li a:hover
{border-color: #FE3;
color: #FFF;
background: #332;}
The HTML markup follows. The only relevant part is the first one third, up
to the "content" div.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Vintage Clothing: Designer & Couture clothing</title>
<meta name="keywords" content="vintage clothing,designer vintage
clothing,couture,historic costume,designer fashion,antique apparel,Victorian
jewelry,estate jewelry,Kashmir shawls,Chinese shawls,piano shawls,estate
linens,lace,antiques,collectibles,textiles">
<meta name="description" content="Specializing in Fine Vintage
Clothing, Decorative Textiles, and Antique Jewelry for the
discriminating collector.">
<meta name="revisit-after" content="15 days">
<link rel="stylesheet" type="text/css" href="style_sheets/side.css">
<link rel="stylesheet" type="text/css" href="style_sheets/categories.css">
<base target="_self">
</head>
<body>
<div id="left">
<div id="navigation">
<ul id="sidelist">
<li><a href="Earlyall.htm" title="early clothing" target="_top">EARLY
</a></li>
<li><a href="victall.htm" title="Victorian clothing" target="_top">VICTORIAN
</a></li>
<li><a href="EdwardianVintageClothing.htm" title="Edwardian clothing"
target="_top">EDWARDIAN </a></li>
<li><a href="20sall.htm" title="1920's clothing" target="_top">1920's
</a></li>
<li><a href="30sall.htm" title="1930's-1950's clothing"
target="_top">1930's-1950's </a></li>
<li><a href="Designer_Vintage_Clothing.htm" title="designer clothing"
target="_top">DESIGNER </a></li>
<li><a href="Jewelry.htm" title="jewelry" target="_top">JEWELRY </a></li>
<li><a href="AntiqueTextiles.htm" title="textiles" target="_top">TEXTILES
</a></li>
<li><a href="shawlall.htm" title="shawls" target="_top">SHAWLS </a></li>
<li><a href="treasure hunt.htm" title="treasure hunt" target="_top">TREASURE
HUNT </a></li>
<li><a href="articlesall.htm" title="Articles" target="_top">ARTICLES
</a></li>
<li><a href="gallery.htm" title="Vintage Textile gallery" target="_top">THE
GALLERY </a></li>
<li><a href="mailto:Li***@vintagetextile.com" title="email contact">EMAIL
</a></li>
<li><a href="orderall.htm" title="orders" target="_top">TO ORDER </a></li>
<li><a href="index.html" title="home page" target="_top">HOME </a></li>
</ul>
</div>
<div id="navigation2">
<ul id="sidelist">
<li><a href="Earlyall.htm" title="early clothing" target="_top">EARLY
</a></li>
<li><a href="victall.htm" title="Victorian clothing" target="_top">VICTORIAN
</a></li>
<li><a href="EdwardianVintageClothing.htm" title="Edwardian clothing"
target="_top">EDWARDIAN </a></li>
<li><a href="20sall.htm" title="1920's clothing" target="_top">1920's
</a></li>
<li><a href="30sall.htm" title="1930's-1950's clothing"
target="_top">1930's-1950's </a></li>
<li><a href="Designer_Vintage_Clothing.htm" title="designer clothing"
target="_top">DESIGNER </a></li>
<li><a href="Jewelry.htm" title="jewelry" target="_top">JEWELRY </a></li>
<li><a href="AntiqueTextiles.htm" title="textiles" target="_top">TEXTILES
</a></li>
<li><a href="shawlall.htm" title="shawls" target="_top">SHAWLS </a></li>
<li><a href="treasure hunt.htm" title="treasure hunt" target="_top">TREASURE
HUNT </a></li>
<li><a href="articlesall.htm" title="Articles" target="_top">ARTICLES
</a></li>
<li><a href="gallery.htm" title="Vintage Textile gallery" target="_top">THE
GALLERY </a></li>
<li><a href="mailto:Li***@vintagetextile.com" title="email contact">EMAIL
</a></li>
<li><a href="orderall.htm" title="orders" target="_top">TO ORDER </a></li>
<li><a href="index.html" title="home page" target="_top">HOME </a></li>
</ul>
</div>
<div id="navigation3">
<ul id="sidelist">
<li><a href="Earlyall.htm" title="early clothing" target="_top">EARLY
</a></li>
<li><a href="victall.htm" title="Victorian clothing" target="_top">VICTORIAN
</a></li>
<li><a href="EdwardianVintageClothing.htm" title="Edwardian clothing"
target="_top">EDWARDIAN </a></li>
<li><a href="20sall.htm" title="1920's clothing" target="_top">1920's
</a></li>
<li><a href="30sall.htm" title="1930's-1950's clothing"
target="_top">1930's-1950's </a></li>
<li><a href="Designer_Vintage_Clothing.htm" title="designer clothing"
target="_top">DESIGNER </a></li>
<li><a href="Jewelry.htm" title="jewelry" target="_top">JEWELRY </a></li>
<li><a href="AntiqueTextiles.htm" title="textiles" target="_top">TEXTILES
</a></li>
<li><a href="shawlall.htm" title="shawls" target="_top">SHAWLS </a></li>
<li><a href="treasure hunt.htm" title="treasure hunt" target="_top">TREASURE
HUNT </a></li>
<li><a href="articlesall.htm" title="Articles" target="_top">ARTICLES
</a></li>
<li><a href="gallery.htm" title="Vintage Textile gallery" target="_top">THE
GALLERY </a></li>
<li><a href="mailto:Li***@vintagetextile.com" title="email contact">EMAIL
</a></li>
<li><a href="orderall.htm" title="orders" target="_top">TO ORDER </a></li>
<li><a href="index.html" title="home page" target="_top">HOME </a></li>
</ul>
</div>

<div id="navigation4">
<ul id="sidelist">
<li><a href="Earlyall.htm" title="early clothing" target="_top">EARLY
</a></li>
<li><a href="victall.htm" title="Victorian clothing" target="_top">VICTORIAN
</a></li>
<li><a href="EdwardianVintageClothing.htm" title="Edwardian clothing"
target="_top">EDWARDIAN </a></li>
<li><a href="20sall.htm" title="1920's clothing" target="_top">1920's
</a></li>
<li><a href="30sall.htm" title="1930's-1950's clothing"
target="_top">1930's-1950's </a></li>
<li><a href="Designer_Vintage_Clothing.htm" title="designer clothing"
target="_top">DESIGNER </a></li>
<li><a href="Jewelry.htm" title="jewelry" target="_top">JEWELRY </a></li>
<li><a href="AntiqueTextiles.htm" title="textiles" target="_top">TEXTILES
</a></li>
<li><a href="shawlall.htm" title="shawls" target="_top">SHAWLS </a></li>
<li><a href="treasure hunt.htm" title="treasure hunt" target="_top">TREASURE
HUNT </a></li>
<li><a href="articlesall.htm" title="Articles" target="_top">ARTICLES
</a></li>
<li><a href="gallery.htm" title="Vintage Textile gallery" target="_top">THE
GALLERY </a></li>
<li><a href="mailto:Li***@vintagetextile.com" title="email contact">EMAIL
</a></li>
<li><a href="orderall.htm" title="orders" target="_top">TO ORDER </a></li>
<li><a href="index.html" title="home page" target="_top">HOME </a></li>
</ul>
</div>

<div id="navigation5">
<ul id="sidelist">
<li><a href="Earlyall.htm" title="early clothing" target="_top">EARLY
</a></li>
<li><a href="victall.htm" title="Victorian clothing" target="_top">VICTORIAN
</a></li>
<li><a href="EdwardianVintageClothing.htm" title="Edwardian clothing"
target="_top">EDWARDIAN </a></li>
<li><a href="20sall.htm" title="1920's clothing" target="_top">1920's
</a></li>
<li><a href="30sall.htm" title="1930's-1950's clothing"
target="_top">1930's-1950's </a></li>
<li><a href="Designer_Vintage_Clothing.htm" title="designer clothing"
target="_top">DESIGNER </a></li>
<li><a href="Jewelry.htm" title="jewelry" target="_top">JEWELRY </a></li>
<li><a href="AntiqueTextiles.htm" title="textiles" target="_top">TEXTILES
</a></li>
<li><a href="shawlall.htm" title="shawls" target="_top">SHAWLS </a></li>
<li><a href="treasure hunt.htm" title="treasure hunt" target="_top">TREASURE
HUNT </a></li>
<li><a href="articlesall.htm" title="Articles" target="_top">ARTICLES
</a></li>
<li><a href="gallery.htm" title="Vintage Textile gallery" target="_top">THE
GALLERY </a></li>
<li><a href="mailto:Li***@vintagetextile.com" title="email contact">EMAIL
</a></li>
<li><a href="orderall.htm" title="orders" target="_top">TO ORDER </a></li>
<li><a href="index.html" title="home page" target="_top">HOME </a></li>
</ul>
</div>

</div>

<div id="content">
<h1>Designer Vintage Clothing <span class="at">at</span></h1>
Jul 20 '05 #1
5 2662
On Fri, 11 Jun 2004 20:18:54 GMT, "CMAR" <cm***@yahoo.com> wrote:
I have been having a problem styling a page, which you can see live at my
test site:

Designer Page (http://home.ne.rr.com/thespar/)
It's easier if you give the URL of the actual page concerned.
The page renders correctly in TopStyle and Dreamweaver 4, and also online in
my test website, i.e., the 5 successive navigation divs are correctly
rendered one after another.
Which browser?
The problem occurs when I preview the page in Dreamweaver MX 2004 or Front
Page 2000. In that case, the declarations "top: X%;" which appear in the 4
navigation divs (#s2-5), are ignored, resulting in placing all 5 navigation
divs on top of each other, all with "top: 0;"

Thanks in advance for your expert advice.


How to approach these problems:
- first validate your HTML and CSS;
- then view the page using Mozilla and/or Opera (which have far fewer
bugs than IE).

If this doesn't give you sufficient clues, get back to us. I don't know
about Dreamweaver, but if a valid page renders as you want in Mozilla
and erroneously in Front Page, then it's about a 99.9% probability of
being a Front Page bug.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #2
CMAR wrote:
I have been having a problem styling a page, which you can see live at my
test site:

Designer Page (http://home.ne.rr.com/thespar/)

(Ignore the missing pictures, which have not been uploaded.)

The page renders correctly in TopStyle and Dreamweaver 4, and also online in
my test website, i.e., the 5 successive navigation divs are correctly
rendered one after another.

The problem occurs when I preview the page in Dreamweaver MX 2004 or Front
Page 2000. In that case, the declarations "top: X%;" which appear in the 4
navigation divs (#s2-5), are ignored, resulting in placing all 5 navigation
divs on top of each other, all with "top: 0;"


I have had a few differences when previewing in DW MX 2004 than when I
view online. I came to the conclusion that this was a DW bug, and so
long as it works online in all browsers correctly, then I can ignore the
DW preview bugs
Jul 20 '05 #3
Thanks, Ian, and Steven, for the posts.
Using "Preview in browser" to check either IE6 or Navigator 7, the page
does not render correctly in either DW MX 2004 or Front Page 2000. It looks
fine in Top Style and, as you can see, on my test site.
So it remains a mystery.
Cheers, CMA

"Ian Watts" <iw****************@ntlworld.com.and.this> wrote in message
news:yw*************@newsfe1-gui.server.ntli.net...
CMAR wrote:
I have been having a problem styling a page, which you can see live at my test site:

Designer Page (http://home.ne.rr.com/thespar/)

(Ignore the missing pictures, which have not been uploaded.)

The page renders correctly in TopStyle and Dreamweaver 4, and also online in my test website, i.e., the 5 successive navigation divs are correctly
rendered one after another.

The problem occurs when I preview the page in Dreamweaver MX 2004 or Front Page 2000. In that case, the declarations "top: X%;" which appear in the 4 navigation divs (#s2-5), are ignored, resulting in placing all 5 navigation divs on top of each other, all with "top: 0;"


I have had a few differences when previewing in DW MX 2004 than when I
view online. I came to the conclusion that this was a DW bug, and so
long as it works online in all browsers correctly, then I can ignore the
DW preview bugs

Jul 20 '05 #4
The live site is http://home.ne.rr.com/thespar/designerNx.htm

The page renders fine there, despite the fact that the markup incorrectly
uses id="sidelist" multiple times, instead of only once, as allowed by CSS.

The problem is that when previewing in browser (IE6 and Navigator 7) in DW
MX 2004 or FP2000, the navigation <div>s are stacked one toop of each other.

I tried switching the "sidelist" style to a class ,but that didn't help the
problem: displaying incorrectly with the nav <divs> stacked on top of one
another, instead of following one another (according to declarations
"top"X%;").

I suspect that the solution may be to use contextual selectors but I am
not sure what they should be.

Cheers, CMA
Jul 20 '05 #5
On Sun, 13 Jun 2004 01:38:48 GMT, "CMAR" <cm***@yahoo.com> wrote:
The live site is http://home.ne.rr.com/thespar/designerNx.htm

The page renders fine there, despite the fact that the markup incorrectly
uses id="sidelist" multiple times, instead of only once, as allowed by CSS.

The problem is that when previewing in browser (IE6 and Navigator 7) in DW
MX 2004 or FP2000, the navigation <div>s are stacked one toop of each other.

I tried switching the "sidelist" style to a class ,but that didn't help the
problem: displaying incorrectly with the nav <divs> stacked on top of one
another, instead of following one another (according to declarations
"top"X%;").

I suspect that the solution may be to use contextual selectors but I am
not sure what they should be.


It looks like your problem is that you are positioning the elements x%
down the 'left' div, but the left div doesn't have any size, and 40% of
0 is 0.

I suggest you try removing the positioning from the navigation divs and
float them instead, and give 'left' an explicit width.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #6

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

Similar topics

0
by: STB | last post by:
Hi To all the forum!!! I have a question... How i can do to know a top position of a frame in frameset... independently from the resolution of Video mode??? I go to explain better... i have a...
8
by: Jaime Rios | last post by:
Hi, I created a COM AddIn for Word that performs the functions that it needs to, but I needed to add the ability for the toolbar created by the COM AddIn to remember it's last position and...
0
by: ibsuzanne | last post by:
hello there, I am having a really diffuclt time positioning the toolbars where I want them in Access 2000. I have a main toolbar open and docked at the top, and I want to open an additional...
6
by: | last post by:
Hi all, I have a long web form on asp.net 2.0. When I go at the bottom and click on submit, a postback occurs and if there are any validation errors (no client-side checking being done), the...
2
by: agbee1 | last post by:
Hello: I've finally made the effort to ween myself from overly using tables and use CSS for my positioning. However, I am having a problem with my navigational menu properly aligning in Firefox,...
0
by: crisscross27 | last post by:
Hi, I found a page called "myflashfetish" where you chan choose mp3 players for my space, well the problem is this, I wanted to place 2 or more players in myspace in a particular place, I read...
5
by: DL | last post by:
Hi, My research on this NG hasn't produced a satisfactory answer. Here's what I want to do: move two div (s) (each has an image tag within) to another location on the same page. // no...
10
by: VividWeb | last post by:
Hi. I am relatively new to CSS and HTML but have a basic understanding of most things. One of my backgrounds is not positioning correctly in IE 7 or AOL. The background behind the content...
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
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,...
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
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 ...

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.