margin: 0 auto; >> How to set position?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
netizen
Beginner
Beginner
Posts: 4
Joined: Fri Nov 12, 2004 12:31 am
Location: Belgrade, Serbia and Montenegro
Contact:

margin: 0 auto; >> How to set position?

Post by netizen »

Hi all... this is my first post here :)

exemple

Please see this link in mozilla and IE.
It is totali diferent :(

How I can make it work well?

And second question: Why menu don't want to scrool down when I put "followscroll="1";" ?

Thanks...
Toni
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

followscroll=1;

exactly as written, I can't check the link right now.

maz
User avatar
netizen
Beginner
Beginner
Posts: 4
Joined: Fri Nov 12, 2004 12:31 am
Location: Belgrade, Serbia and Montenegro
Contact:

Post by netizen »

Maz wrote:followscroll=1;

exactly as written, I can't check the link right now.

maz
yes :)
It was mistake...

I still have same problem ... please see example link
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Toni,

My first thought is that your positioning problem is because you've followed the directions for embedding a menu in a table cell, but instead of a table, you have your main menu inside of a div that's nested inside of another div. The menu doesn't like to be put inside of divs. Can you remove the main menu from the divs and position it using the menu system's built-in positioning functions?

The followscroll problem is because you've set position="relative"; Relative positioning and scrolling are sort of mutually exclusive (i.e., a relatively positioned menu won't follow the scroll).

Kevin
User avatar
netizen
Beginner
Beginner
Posts: 4
Joined: Fri Nov 12, 2004 12:31 am
Location: Belgrade, Serbia and Montenegro
Contact:

Post by netizen »

ok thanks...

I apply everything you write...

on same exemple

but same problem again :(

Image
Image

Code: Select all

body
	{
	margin: 0 auto;
	}
I must use that auto to center a div.
User avatar
netizen
Beginner
Beginner
Posts: 4
Joined: Fri Nov 12, 2004 12:31 am
Location: Belgrade, Serbia and Montenegro
Contact:

Post by netizen »

help :)
Post Reply