Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / February 2005



Tip: Looking for answers? Try searching our database.

positioning/Netscape..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frances Del Rio - 18 Feb 2005 21:01 GMT
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/validator-uri.html.en, and it checks
fine..

was wondering what is causing this, thank you..

Frances Del Rio
C A Upsdell - 18 Feb 2005 21:24 GMT
> 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
[quoted text clipped - 18 lines]
>
> 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.
Gus Richter - 18 Feb 2005 22:10 GMT
>> 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
[quoted text clipped - 25 lines]
> 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.

Signature

Gus

Frances Del Rio - 18 Feb 2005 22:19 GMT
>>> 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
[quoted text clipped - 33 lines]
> 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
Gus Richter - 18 Feb 2005 22:50 GMT
>>>> 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
[quoted text clipped - 37 lines]
> 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.

Signature

Gus

Frances Del Rio - 19 Feb 2005 04:36 GMT
>>>>> 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
[quoted text clipped - 39 lines]
>
> 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.
Gus Richter - 19 Feb 2005 12:47 GMT
>>>> Another thing is
>>>> that there is no reason to place the gif in a div simply for
[quoted text clipped - 8 lines]
> 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">

Signature

Gus

Frances Del Rio - 25 Feb 2005 03:13 GMT
>>>>> Another thing is that there is no reason to place the gif in a div
>>>>> simply for positioning - the image may be positioned directly.
[quoted text clipped - 16 lines]
>
> <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
Gus Richter - 19 Feb 2005 03:50 GMT
>>>> 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
[quoted text clipped - 37 lines]
> 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.

Signature

Gus

Gus Richter - 19 Feb 2005 03:55 GMT
>>>>> 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
[quoted text clipped - 40 lines]
> [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:]

Signature

Gus

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.