Topic awaiting preservation: Centering Javascript in <head> tag of webpage (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
posted 04-26-2004 21:09
I have some javascript I got from dynamicdrive.com and I am trying to center the whole nav bar. code: <html> |
Maniac (V) Mad Scientist From: New California |
posted 04-26-2004 21:19
And??? Are you having a problem? If so, what exactly is the problem? |
Obsessive-Compulsive (I) Inmate From: |
posted 04-26-2004 22:46
The above code doesnt center the navbar. I just made it center by doing some math... but now my problem is it wont recenter after resize. |
Maniac (V) Mad Scientist From: New California |
posted 04-26-2004 22:52
Can you post a link to the page so I can see what's going on? Also, if the problem is just on the resize, then do you know whether this code is designed to handle the onresize event? I'm not familiar with the code on dynamicdrive because I'm usually too busy writing my own. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 04-27-2004 18:46
Here's what I'd do. |
Paranoid (IV) Inmate From: Den Haag, Netherlands |
posted 04-27-2004 19:07
how about code: <body onload="init()" onresize="init()">
|