473,385 Members | 1,343 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,385 software developers and data experts.

positioning/Netscape..

I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are positioned
consistently in IE and Netscape, in Netscape (7.1) the bar div ONLY is
about 10px ABOVE where it should be.. code:

HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>

CSS:
#bar {position:absolute; top:160px; left:20px}

in Netscape this bar div shows up 10px above from where it should be..
(EXACTLY 10px, in fact, I took screen-shot and measured in Photoshop..)
(all other divs fine -- show up in same position in both Netscape and
IE..) I validated CSS code here,
http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it checks
fine..

was wondering what is causing this, thank you..

Frances Del Rio


Jul 21 '05 #1
9 1791
Frances Del Rio wrote:
I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are positioned
consistently in IE and Netscape, in Netscape (7.1) the bar div ONLY is
about 10px ABOVE where it should be.. code:

HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>

CSS:
#bar {position:absolute; top:160px; left:20px}

in Netscape this bar div shows up 10px above from where it should be..
(EXACTLY 10px, in fact, I took screen-shot and measured in Photoshop..)
(all other divs fine -- show up in same position in both Netscape and
IE..) I validated CSS code here,
http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it checks
fine..

was wondering what is causing this, thank you..


Netscape 7.1 uses the Gecko 1.4.x browser engine, and this version has
problems with positioning. I was unable to resolve them, though someone
else might have a work-around.

Netscape 7.2 uses the Gecko 1.7.x browser engine, and should have no
problems.
Jul 21 '05 #2
C A Upsdell > wrote:
Frances Del Rio wrote:
I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are
positioned consistently in IE and Netscape, in Netscape (7.1) the bar
div ONLY is about 10px ABOVE where it should be.. code:

HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>

CSS:
#bar {position:absolute; top:160px; left:20px}

in Netscape this bar div shows up 10px above from where it should be..
(EXACTLY 10px, in fact, I took screen-shot and measured in Photoshop..)
(all other divs fine -- show up in same position in both Netscape and
IE..) I validated CSS code here,
http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it
checks fine..

was wondering what is causing this, thank you..

Netscape 7.1 uses the Gecko 1.4.x browser engine, and this version has
problems with positioning. I was unable to resolve them, though someone
else might have a work-around.

Netscape 7.2 uses the Gecko 1.7.x browser engine, and should have no
problems.


The OP said that only one div, among others, is positioned 10px higher
than it should be. NS7.2 has no problem and I recall no problem in this
regard with NS7.1. In any case, it works reportedly perfectly well for
the other (lots of) divs. I suggest that something in the code somewhere
is affecting this. Another thing is that there is no reason to place the
gif in a div simply for positioning - the image may be positioned directly.

--
Gus
Jul 21 '05 #3


Gus Richter wrote:
C A Upsdell > wrote:
Frances Del Rio wrote:
I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are
positioned consistently in IE and Netscape, in Netscape (7.1) the bar
div ONLY is about 10px ABOVE where it should be.. code:

HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>

CSS:
#bar {position:absolute; top:160px; left:20px}

in Netscape this bar div shows up 10px above from where it should
be.. (EXACTLY 10px, in fact, I took screen-shot and measured in
Photoshop..)
(all other divs fine -- show up in same position in both Netscape and
IE..) I validated CSS code here,
http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it
checks fine..

was wondering what is causing this, thank you..


Netscape 7.1 uses the Gecko 1.4.x browser engine, and this version has
problems with positioning. I was unable to resolve them, though
someone else might have a work-around.

Netscape 7.2 uses the Gecko 1.7.x browser engine, and should have no
problems.

The OP said that only one div, among others, is positioned 10px higher
than it should be. NS7.2 has no problem and I recall no problem in this
regard with NS7.1. In any case, it works reportedly perfectly well for
the other (lots of) divs. I suggest that something in the code somewhere
is affecting this. Another thing is that there is no reason to place the
gif in a div simply for positioning - the image may be positioned directly.


really? how? outside a div? absolute positioning? pls explain..
thank you.. Frances
Jul 21 '05 #4
Frances Del Rio wrote:


Gus Richter wrote:
C A Upsdell > wrote:
Frances Del Rio wrote:

I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are
positioned consistently in IE and Netscape, in Netscape (7.1) the
bar div ONLY is about 10px ABOVE where it should be.. code:

HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>

CSS:
#bar {position:absolute; top:160px; left:20px}

in Netscape this bar div shows up 10px above from where it should
be.. (EXACTLY 10px, in fact, I took screen-shot and measured in
Photoshop..)
(all other divs fine -- show up in same position in both Netscape
and IE..) I validated CSS code here,
http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it
checks fine..

was wondering what is causing this, thank you..


Netscape 7.1 uses the Gecko 1.4.x browser engine, and this version
has problems with positioning. I was unable to resolve them, though
someone else might have a work-around.

Netscape 7.2 uses the Gecko 1.7.x browser engine, and should have no
problems.


The OP said that only one div, among others, is positioned 10px higher
than it should be. NS7.2 has no problem and I recall no problem in
this regard with NS7.1. In any case, it works reportedly perfectly
well for the other (lots of) divs. I suggest that something in the
code somewhere is affecting this. Another thing is that there is no
reason to place the gif in a div simply for positioning - the image
may be positioned directly.

really? how? outside a div? absolute positioning? pls explain..
thank you.. Frances


Really. I believe my reasoning to be sound. Something, other than what
you've shown, is affecting the div or img for that particular div/img. I
don't have a crystal ball in order to go further. Neither do I intend to
rattle off a list of possibilities for 'discussion' fodder. You either
check and find it yourself, or if you want me to find the specific
item/reason for you, then let me look at it with a URL.

--
Gus
Jul 21 '05 #5
Frances Del Rio wrote:


Gus Richter wrote:
C A Upsdell > wrote:
Frances Del Rio wrote:

I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are
positioned consistently in IE and Netscape, in Netscape (7.1) the
bar div ONLY is about 10px ABOVE where it should be.. code:

HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>

CSS:
#bar {position:absolute; top:160px; left:20px}

in Netscape this bar div shows up 10px above from where it should
be.. (EXACTLY 10px, in fact, I took screen-shot and measured in
Photoshop..)
(all other divs fine -- show up in same position in both Netscape
and IE..) I validated CSS code here,
http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it
checks fine..

was wondering what is causing this, thank you..


Netscape 7.1 uses the Gecko 1.4.x browser engine, and this version
has problems with positioning. I was unable to resolve them, though
someone else might have a work-around.

Netscape 7.2 uses the Gecko 1.7.x browser engine, and should have no
problems.


The OP said that only one div, among others, is positioned 10px higher
than it should be. NS7.2 has no problem and I recall no problem in
this regard with NS7.1. In any case, it works reportedly perfectly
well for the other (lots of) divs. I suggest that something in the
code somewhere is affecting this. Another thing is that there is no
reason to place the gif in a div simply for positioning - the image
may be positioned directly.

really? how? outside a div? absolute positioning? pls explain..
thank you.. Frances


[I guess Google hickupped and did not log/receive articles between
approximately 17:30 PST - 21:30 PST, so I'll repost this from 17:50:]

Really. I believe my reasoning to be sound. Something, other than what
you've shown, is affecting the div or img for that particular div/img. I
don't have a crystal ball in order to go further. Neither do I intend to
rattle off a list of possibilities for 'discussion' fodder. You either
check and find it yourself, or if you want me, or anyone else, to try to
find the specific item/reason for you, then let me look at it with a URL.

--
Gus
Jul 21 '05 #6
Gus Richter wrote:
Frances Del Rio wrote:


Gus Richter wrote:
C A Upsdell > wrote:

Frances Del Rio wrote:

> I have a pg with lots of divs, one of them is a gray bar about
> 150px down from the top and 20px from the left... this bar (an
> image) is 767px wide and 1px high.. however, even though all divs
> are positioned consistently in IE and Netscape, in Netscape (7.1)
> the bar div ONLY is about 10px ABOVE where it should be.. code:
>
> HTML:
> <div id="bar">
> <img src="images/bar.gif" width="768" height="1" border="0">
> </div>
>
> CSS:
> #bar {position:absolute; top:160px; left:20px}
>
> in Netscape this bar div shows up 10px above from where it should
> be.. (EXACTLY 10px, in fact, I took screen-shot and measured in
> Photoshop..)
> (all other divs fine -- show up in same position in both Netscape
> and IE..) I validated CSS code here,
> http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it
> checks fine..
>
> was wondering what is causing this, thank you..

Netscape 7.1 uses the Gecko 1.4.x browser engine, and this version
has problems with positioning. I was unable to resolve them, though
someone else might have a work-around.

Netscape 7.2 uses the Gecko 1.7.x browser engine, and should have no
problems.


The OP said that only one div, among others, is positioned 10px
higher than it should be. NS7.2 has no problem and I recall no
problem in this regard with NS7.1. In any case, it works reportedly
perfectly well for the other (lots of) divs. I suggest that something
in the code somewhere is affecting this. Another thing is that there
is no reason to place the gif in a div simply for positioning - the
image may be positioned directly.


really? how? outside a div? absolute positioning? pls explain..
thank you.. Frances


[I guess Google hickupped and did not log/receive articles between
approximately 17:30 PST - 21:30 PST, so I'll repost this from 17:50:]


[I guess *CIWAS* hickupped and did not log/receive articles between
approximately 17:30 PST - 21:30 PST, so I'll repost this from 17:50:]

--
Gus
Jul 21 '05 #7


Gus Richter wrote:
Frances Del Rio wrote:


Gus Richter wrote:
C A Upsdell > wrote:

Frances Del Rio wrote:

> I have a pg with lots of divs, one of them is a gray bar about
> 150px down from the top and 20px from the left... this bar (an
> image) is 767px wide and 1px high.. however, even though all divs
> are positioned consistently in IE and Netscape, in Netscape (7.1)
> the bar div ONLY is about 10px ABOVE where it should be.. code:
>
> HTML:
> <div id="bar">
> <img src="images/bar.gif" width="768" height="1" border="0">
> </div>
>
> CSS:
> #bar {position:absolute; top:160px; left:20px}
>
> in Netscape this bar div shows up 10px above from where it should
> be.. (EXACTLY 10px, in fact, I took screen-shot and measured in
> Photoshop..)
> (all other divs fine -- show up in same position in both Netscape
> and IE..) I validated CSS code here,
> http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it
> checks fine..
>
> was wondering what is causing this, thank you..

Netscape 7.1 uses the Gecko 1.4.x browser engine, and this version
has problems with positioning. I was unable to resolve them, though
someone else might have a work-around.

Netscape 7.2 uses the Gecko 1.7.x browser engine, and should have no
problems.


The OP said that only one div, among others, is positioned 10px
higher than it should be. NS7.2 has no problem and I recall no
problem in this regard with NS7.1. In any case, it works reportedly
perfectly well for the other (lots of) divs. I suggest that something
in the code somewhere is affecting this. Another thing is that there
is no reason to place the gif in a div simply for positioning - the
image may be positioned directly.
really? how? outside a div? absolute positioning? pls explain..
thank you.. Frances


Really. I believe my reasoning to be sound.

don't get me wrong, pls, I do believe your reasoning to be sound, I just
wanted you to show me how to absolute-position an img outside a div
(this is what you meant, right?..) I can't post code w/o altering it a
bit (it's for corp site at work, which has not been published..) but
will continue to investigate... thank you all for you responses.. Frances
Something, other than what you've shown, is affecting the div or img for that particular div/img. I
don't have a crystal ball in order to go further. Neither do I intend to
rattle off a list of possibilities for 'discussion' fodder. You either
check and find it yourself, or if you want me to find the specific
item/reason for you, then let me look at it with a URL.


Jul 21 '05 #8
Frances Del Rio wrote:


Gus Richter wrote:
Another thing is
that there is no reason to place the gif in a div simply for
positioning - the image may be positioned directly.

really? how? outside a div? absolute positioning? pls explain..
thank you.. Frances


I just
wanted you to show me how to absolute-position an img outside a div
(this is what you meant, right?..) I can't post code w/o altering it a
bit (it's for corp site at work, which has not been published..) but
will continue to investigate... thank you all for you responses.. Frances


All I said was that instead of wrapping the img in a div and then
positioning the div, you can position the img directly, like so:

<style type="text/css">
#bar {position:absolute; top:160px; left:20px}
</style>

<img id="bar" src="images/bar.gif" width="768" height="1" border="0">

--
Gus
Jul 21 '05 #9
Gus Richter wrote:
Frances Del Rio wrote:


Gus Richter wrote:
> Another thing is that there is no reason to place the gif in a div
> simply for positioning - the image may be positioned directly.
really? how? outside a div? absolute positioning? pls explain..
thank you.. Frances


I just wanted you to show me how to absolute-position an img outside a
div (this is what you meant, right?..) I can't post code w/o altering
it a bit (it's for corp site at work, which has not been published..)
but will continue to investigate... thank you all for you responses..
Frances


All I said was that instead of wrapping the img in a div and then
positioning the div, you can position the img directly, like so:

<style type="text/css">
#bar {position:absolute; top:160px; left:20px}
</style>

<img id="bar" src="images/bar.gif" width="768" height="1" border="0">


I had no idea you could do this.. (id inside img tag..)
thank you very much.. Frances



Jul 21 '05 #10

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

Similar topics

0
by: crjr | last post by:
I'm having trouble with positioning in Netscape 7.02. It looks the way I want it to in IE 6, Opera and iRider, but in Netscape and Mozilla, the MENU drops way too low. Also, in Netscape the...
4
by: Jane Withnolastname | last post by:
I am trying to re-work an old site by replacing the html with css. On the main page, I have a logo image which I needed centred on the initial screen. I found the solution here:...
6
by: Linda Antonsson | last post by:
Hi, I am wondering if there are any good resources for how to tweak a design based on CSS-positioning so that it will work in IE? I believe position : fixed is still a bit of a problem in IE,...
0
by: miked | last post by:
Hi, I'm using relative positioning, and trying to shift the position of two gifs used to link to other pages on my site. The end result is fine in IE and Opera (the link gifs move to the...
1
by: Frances Del Rio | last post by:
don't know if I'll succeed, have spent a lot of time already trying to figure this out: I would like to position a footer (co. name, address, etc..) at the bottom of browser page, in such a way...
1
by: JKenyon | last post by:
I am attempting to display two images on a web page. The second "image" is actually two images, one overlaid on the other. The first one is aligned on the left using float:left. I have enclosed...
1
by: Chris McGarry | last post by:
Hello, I'm new to style sheets and have been fighting with browser compatibility for two days. I'm developing a image selection page (similar to Ebay where the visitor can select and enlarge 1-6...
17
by: George Hester | last post by:
http://tinyurl.com/5uj6w The lower middle icon the "block" should not drop down when the mouse is over it. How can I stop that? Also the navigation divs both top and bottom should follow the...
9
by: Bill Norton | last post by:
I've been experimenting with floats, positioning and offsets (top, left, etc.) to see what happens when you mix the properties together. All this may be old news to most of you, but it was...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.