473,396 Members | 2,030 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,396 software developers and data experts.

Firefox and Netscape

If I try the following

div
{
position: relative;
top: 50%;
left: 40%;
}

It shows different in IE 6.0 , Firefox 1.5 and Netscape 8.0.4 .

I have tried everything from 50% to 350% and in Firefox and Netscape the top
remains positioned in the same spot. In IE it moves.

Could someone tell me what the problem is.
Jan 20 '06 #1
4 1297
Deciding to do something for the good of humanity, News
<warren@no_S_P_A_M_wyght.com> spouted in
comp.infosystems.www.authoring.stylesheets:
I have tried everything from 50% to 350% and in Firefox and Netscape the top
remains positioned in the same spot. In IE it moves.

Could someone tell me what the problem is.


Not really without a URL.

--
Mark Parnell
================================================== ===
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/
Jan 20 '06 #2

"Mark Parnell" <we*******@clarkecomputers.com.au> wrote in message
news:43**********************@per-qv1-newsreader-01.iinet.net.au...
Deciding to do something for the good of humanity, News
<warren@no_S_P_A_M_wyght.com> spouted in
comp.infosystems.www.authoring.stylesheets:
I have tried everything from 50% to 350% and in Firefox and Netscape the
top
remains positioned in the same spot. In IE it moves.

Could someone tell me what the problem is.


Not really without a URL.

--
Mark Parnell


I don't have it in a URL as of yet, I did try changing it from

div
{
position: relative;
top: 50%;
left: 40%;
}

TO
div
{
position: absolute;
top: 50%;
left: 40%;
}

It works in all of them, which tells me that IE is willing to make up for my
errors or lazy code where as the others are not. I will "try" to find the
reason absolute works and relative does not.

Thanks for your help
Jan 20 '06 #3
News wrote:

div
{
position: relative;
top: 50%;
left: 40%;
}

It shows different in IE 6.0 , Firefox 1.5 and Netscape 8.0.4 .


I suspect you are misusing position:relative. Chances are you didn't
read the CSS specs, so you are probably making some false assumptions on
what relative positioning does.

<URL:http://www.w3.org/TR/CSS21/visuren.html#propdef-position>

You might actually be wanting position:absolute, but that opens up a
whole new can of worms and shouldn't be used unless you understand the
repercussions.

It is even possible you don't need explicit positioning at all, but it's
hard to say without knowing what you are trying to accomplish.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jan 20 '06 #4

"kchayka" <us****@c-net.us> wrote in message
news:43*************@individual.net...
News wrote:

div
{
position: relative;
top: 50%;
left: 40%;
}

It shows different in IE 6.0 , Firefox 1.5 and Netscape 8.0.4 .


I suspect you are misusing position:relative. Chances are you didn't
read the CSS specs, so you are probably making some false assumptions on
what relative positioning does.

<URL:http://www.w3.org/TR/CSS21/visuren.html#propdef-position>

You might actually be wanting position:absolute, but that opens up a
whole new can of worms and shouldn't be used unless you understand the
repercussions.

It is even possible you don't need explicit positioning at all, but it's
hard to say without knowing what you are trying to accomplish.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.


I am ONLY trying to learn how to do this, I have not begun to apply CSS to a
URL yet as I am a C++ coder and only just moved into this field.

I will read that thanks
Jan 26 '06 #5

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

Similar topics

6
by: Geoff | last post by:
When trying to focus a field in Firefox, I get the following error: Error: " nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::...
6
by: christian9997 | last post by:
Hi I would be very helpful if someone could help me with this code. It works fine in IE but when I display it in Netscape or Firefox and I move the mouse from one menu to the other the gap...
1
by: RC | last post by:
I know DTD (Document Type Definition) is supported by Netscape/Firefox and IE. But I typed some examples from http://www.w3schools.com/schema/default.asp Seems no effect on those browsers.
4
by: Laurent Compere | last post by:
Hi all, I try to make a logo fade in. I wrote the code below that is simple and supposed to be compatible with IE6,Firefox and Netscape. It works pretty well under IE6 but under Firefox and...
6
by: msuk | last post by:
All, I have created some ASP.NET/C# webpages that displays pefectly in internet explorer 6.0 but when I use Firefox 1.0 and Netscape 7.1 the page does not display correctly i.e the text and text...
3
by: Arne | last post by:
I have a dropdownlist/select box with an autopostback to code behind. It works great in Internet Explorer, but doesn't work in Netscape and Firefox. What kind of support does ASP.net promise for...
5
by: SPE - Stani's Python Editor | last post by:
Hi, During optimizing SPE for Ubuntu, I found something strange. I have Ubuntu 5.10 "The Breezy Badger" and unfortunately this code is not working: >>> import webbrowser >>>...
16
by: Dobedani | last post by:
Dear All, I found the code added below at: http://simplythebest.net/sounds/sound_guide.html Unfortunately, the code doesn't seem to work in Firefox. These are the error messages I can see in...
5
by: Martijn Saly | last post by:
I'd like to test in my script, if it's going to be possible to enable priviliges. If I use this... netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") ....it presents a...
6
by: scotty | last post by:
I have a script that loops through an existing table list and prepares each href element node to trigger a function when an image is clicked. The function that will be run passes a property value...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
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...
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
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,...

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.