![]() Topic awaiting preservation: Centering Javascript in <head> tag of webpage (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
![]() 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 |
![]() And??? Are you having a problem? If so, what exactly is the problem? |
Obsessive-Compulsive (I) Inmate From: |
![]() 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 |
![]() 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 |
![]() Here's what I'd do. |
Paranoid (IV) Inmate From: Den Haag, Netherlands |
![]() how about code: <body onload="init()" onresize="init()">
|