School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,456 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,640 people online right now. Registration is fast and FREE... Join Now!




Div won't position where i want in FF, but it does in IE.

2 Pages V  1 2 >  

Div won't position where i want in FF, but it does in IE.

livium

2 Jul, 2009 - 06:08 AM
Post #1

D.I.C Regular
***

Joined: 21 Dec, 2008
Posts: 294


My Contributions
I have this css for a div:

CODE

#apDiv45 {
    position:absolute;
    width:273px;
    height:auto;
    z-index:13;
    left: 92px;
    top: -28px;
    background-color: #FFFFFF;
}


I move it with my mouse in dreamweaver and in IE it is positioned where i have moved it. But in FF it is not. In FF it is positioned somewhere on the bottom of the page. I've tried position:relative and static but the problem is still the same. Why is that?

User is offlineProfile CardPM
+Quote Post


neit

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 06:20 AM
Post #2

D.I.C Head
**

Joined: 13 Feb, 2009
Posts: 137



Thanked: 12 times
My Contributions
Can you post a link to site so we can see an example of the problem.
User is offlineProfile CardPM
+Quote Post

livium

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 06:42 AM
Post #3

D.I.C Regular
***

Joined: 21 Dec, 2008
Posts: 294


My Contributions
my site is still in development on my localhost.

User is offlineProfile CardPM
+Quote Post

gregwhitworth

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 07:07 AM
Post #4

(this).problem + "sucks";
Group Icon

Joined: 20 Jan, 2009
Posts: 1,131



Thanked: 82 times
Dream Kudos: 50
Expert In: HTML, CSS, Web Design

My Contributions
Can you give us 2 screen shots then, because I can't tell what to do from here.
User is offlineProfile CardPM
+Quote Post

livium

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 07:13 AM
Post #5

D.I.C Regular
***

Joined: 21 Dec, 2008
Posts: 294


My Contributions
There's no need to put a picture. Furthermore, how can i put it. I've tried but they don't show up.

This post has been edited by livium: 2 Jul, 2009 - 07:15 AM
User is offlineProfile CardPM
+Quote Post

papuccino1

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 07:37 AM
Post #6

C# Programmer
Group Icon

Joined: 2 Mar, 2008
Posts: 943



Thanked: 33 times
Dream Kudos: 50
My Contributions
LOL! We need a picture to see what's going on. We aren't psychic.
User is offlineProfile CardPM
+Quote Post

livium

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 07:40 AM
Post #7

D.I.C Regular
***

Joined: 21 Dec, 2008
Posts: 294


My Contributions
well, if you read my first post you will understand that is no need for a picture.

The problem is that the div is positioned in one place in dreamweaver and in FF appears in another place. In IE apears where it should be.
User is offlineProfile CardPM
+Quote Post

papuccino1

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 07:42 AM
Post #8

C# Programmer
Group Icon

Joined: 2 Mar, 2008
Posts: 943



Thanked: 33 times
Dream Kudos: 50
My Contributions
Your loss. amirite? tongue.gif
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 09:39 AM
Post #9

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
Seriously livium, post an image of what the issue is, we have no relevant content to test this with.

Alternatively post all of your code here.
User is offlineProfile CardPM
+Quote Post

Quin

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 12:42 PM
Post #10

D.I.C Head
Group Icon

Joined: 16 Oct, 2008
Posts: 212



Thanked: 9 times
Dream Kudos: 50
My Contributions
Its been a while since I used positioning (temperamental at times), but get rid of the -28px.
O.o... and possibly the auto height.
(Never used z-index, cannot comment)

You shouldn't need to overlap layers.

Apart from that... we need something more substantial to work from.

This post has been edited by Quin: 2 Jul, 2009 - 12:44 PM
User is offlineProfile CardPM
+Quote Post

livium

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 01:35 PM
Post #11

D.I.C Regular
***

Joined: 21 Dec, 2008
Posts: 294


My Contributions
This picture is in FF:

and this in IE:





How to put pictures? I put the picture adress from my hard disk in tags and it doesn't work.

This post has been edited by livium: 2 Jul, 2009 - 01:36 PM
User is offlineProfile CardPM
+Quote Post

Quin

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 01:36 PM
Post #12

D.I.C Head
Group Icon

Joined: 16 Oct, 2008
Posts: 212



Thanked: 9 times
Dream Kudos: 50
My Contributions
You have to upload the images to a website (Photobucket, ImageShack)
Then [*img]URL[*/img] - without asterisk's.

Or you could try add an attachment (though I'd go with the IMG).

This post has been edited by Quin: 2 Jul, 2009 - 01:37 PM
User is offlineProfile CardPM
+Quote Post

livium

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 01:41 PM
Post #13

D.I.C Regular
***

Joined: 21 Dec, 2008
Posts: 294


My Contributions
i know that, but i don't have images on the net. Only on my hard disk. I have attached them. The first one in Form IE where the div is beneath the search text, and the second one where the image is below.Attached ImageAttached Image
User is offlineProfile CardPM
+Quote Post

neit

RE: Div Won't Position Where I Want In FF, But It Does In IE.

2 Jul, 2009 - 03:13 PM
Post #14

D.I.C Head
**

Joined: 13 Feb, 2009
Posts: 137



Thanked: 12 times
My Contributions
You are using divs to create drop down selection lists you should be
using <select>


Example

CODE

<select>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>


Your other drop down options should be similar.


User is offlineProfile CardPM
+Quote Post

livium

RE: Div Won't Position Where I Want In FF, But It Does In IE.

3 Jul, 2009 - 02:53 AM
Post #15

D.I.C Regular
***

Joined: 21 Dec, 2008
Posts: 294


My Contributions
I wanna make a similar stuff like google sugestions. I don't wanna use select because it shows me that arrow. So what are you recomending me to use for creating something like google sugestions?
User is offlineProfile CardPM
+Quote Post

neit

RE: Div Won't Position Where I Want In FF, But It Does In IE.

3 Jul, 2009 - 06:55 AM
Post #16

D.I.C Head
**

Joined: 13 Feb, 2009
Posts: 137



Thanked: 12 times
My Contributions
They use a standard input box is that what you are using?
Then driving to display a list if in a div if I type s.

The code would be helpful. posting what you did at the start is not enough as we cannot see its relation to the reset of the code.

This post has been edited by neit: 3 Jul, 2009 - 07:03 AM
User is offlineProfile CardPM
+Quote Post

livium

RE: Div Won't Position Where I Want In FF, But It Does In IE.

3 Jul, 2009 - 07:50 AM
Post #17

D.I.C Regular
***

Joined: 21 Dec, 2008
Posts: 294


My Contributions
well... now i'm trying to use a drop-down list (select) and see if it works. I put this list in that div that has the positioning problem in FF which i mentioned above.
User is offlineProfile CardPM
+Quote Post

RudiVisser

RE: Div Won't Position Where I Want In FF, But It Does In IE.

3 Jul, 2009 - 07:52 AM
Post #18

.. does not guess solutions
Group Icon

Joined: 5 Jun, 2009
Posts: 1,872



Thanked: 137 times
Dream Kudos: 125
Expert In: PHP, MySQL, HTML, CSS, C#

My Contributions
Just make sure that the containing div of the search box has position:relative defined in the CSS, then positioning will be, well, relative smile.gif
User is offlineProfile CardPM
+Quote Post

livium

RE: Div Won't Position Where I Want In FF, But It Does In IE.

3 Jul, 2009 - 01:07 PM
Post #19

D.I.C Regular
***

Joined: 21 Dec, 2008
Posts: 294


My Contributions
It doesn't work with relative either. I just cannot believe this. I think this css was made to piss people off. What a stupidity. I've tried all ways of positioning and it FF still positions my div where he wants.
User is offlineProfile CardPM
+Quote Post

Ryanmiller

RE: Div Won't Position Where I Want In FF, But It Does In IE.

3 Jul, 2009 - 01:12 PM
Post #20

New D.I.C Head
*

Joined: 20 Jun, 2009
Posts: 16


My Contributions
The only thing that looks weird to me about your code is the fact that top: is a negative number when you're using position absolute.

Unless inside a div, position absolute sends it to the top of the page. It cannot go into the toolbar, that's now how it works! lol
User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 02:05AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month