Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Js problems, getting centered
Old 08-19-2004, 10:56 PM Js problems, getting centered
morphius2's Avatar
Experienced Talker

Posts: 31
Trades: 0
I'm working on a javascript footer, and have run into some problems, I guess you'd say. I've just started using footers like this, I've tried using it as a text file and a js file. The js file is working, however, I cannot get part of it centered like I want it.

When it's all done in html, it is perfectly centered. But when I have it in the js file, it aligns to the left, and nothing I'm doing is getting it centered

Any help would be appreciated!

Code:
 
document.write("<table align='center' width='60%'>")
document.write("<tr><td><p align='center'>")
document.write("<script language='Javascript' src='http://www.truefresco.org/referrers.js'>")
document.write("</script></p></td></tr></table>")
Thanks!
__________________
- Morphius2
morphius2 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-20-2004, 07:49 AM
webwoRRks's Avatar
Ultra Talker

Posts: 426
Location: I hope so
Trades: 0
make the td align to the center as well, then see. Also, check your table isn't in something thats forcing it to align left.
__________________
Theres 10 types of people; those who understand binary, and those who don't.
webmaster and webdeveloper resources,
Please login or register to view this content. Registration is FREE
webwoRRks is offline
Reply With Quote
View Public Profile Visit webwoRRks's homepage!
 
Reply     « Reply to Js problems, getting centered
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13850 seconds with 12 queries