center some code in a table |
center some code in a table |
finnstones |
Nov 6 2008, 06:28 PM
Post
#1
|
Group: Members Posts: 8 Joined: 6-November 08 Member No.: 7,064 |
how can i center the script below??
<table> <tr align="center"> <script src="http://tag.contextweb.com/TagPublish/getjs.aspx?action=VIEWAD&cwrun=200&cwadformat=300X250&cwpid=510467&cwwidth=300&cwheight=250&cwpnet=1&cwtagid=41771"></script> </tr></table> this can be seen on my site englishtrunkshowco ---click any category on home page, then scroll down and you will see the misalignment of the ad |
pandy |
Nov 6 2008, 06:41 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
To start with that table need a TD where you should put the script. You can't put randome markup between the elements that make up a table.
QUOTE this can be seen on my site englishtrunkshowco ---click any category on home page, then scroll down and you will see the misalignment of the ad Would that be http://www.englishtrunkshowco.com? |
finnstones |
Nov 6 2008, 07:37 PM
Post
#3
|
Group: Members Posts: 8 Joined: 6-November 08 Member No.: 7,064 |
yes, that is the site. any ideas?
|
finnstones |
Nov 6 2008, 07:40 PM
Post
#4
|
Group: Members Posts: 8 Joined: 6-November 08 Member No.: 7,064 |
also, how can i add something to the right of this ad box, but in the same row.? thanks.
|
pandy |
Nov 6 2008, 07:42 PM
Post
#5
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Have you done what I said?
|
finnstones |
Nov 6 2008, 09:13 PM
Post
#6
|
Group: Members Posts: 8 Joined: 6-November 08 Member No.: 7,064 |
yes
|
finnstones |
Nov 7 2008, 09:43 AM
Post
#7
|
Group: Members Posts: 8 Joined: 6-November 08 Member No.: 7,064 |
??
|
Frederiek |
Nov 7 2008, 12:56 PM
Post
#8
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
I get javascript errors:
Resource interpreted as script but transferred with MIME type text/html. http://www.englishtrunkshowco.com/css/controls.js Resource interpreted as script but transferred with MIME type text/html. http://www.websitealive3.com/1133/Visitor/...epartmentid=318 Resource interpreted as script but transferred with MIME type text/html. http://www.englishtrunkshowco.com/css/dragdrop.js Resource interpreted as script but transferred with MIME type text/html. http://www.englishtrunkshowco.com/css/builder.js Resource interpreted as script but transferred with MIME type text/html. http://www.englishtrunkshowco.com/css/slider.js SyntaxError: Parse error http://www.englishtrunkshowco.com/css/builder.js (line 1) SyntaxError: Parse error http://www.englishtrunkshowco.com/css/dragdrop.js (line 1) SyntaxError: Parse error http://www.englishtrunkshowco.com/css/controls.js (line 1) SyntaxError: Parse error http://www.englishtrunkshowco.com/css/slider.js (line 1) What is actually supposed to be centered? |
finnstones |
Nov 10 2008, 10:59 AM
Post
#9
|
Group: Members Posts: 8 Joined: 6-November 08 Member No.: 7,064 |
how did you generate those errors? what browser? thanks!!
the ad with the global warming image (bottom of page) is meant to be centered. |
Frederiek |
Nov 10 2008, 01:22 PM
Post
#10
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
I use Safari on Mac, which has a Error Console/Web Inspector integrated. I simply copied from there. (The errors are still there.)
What global warming image? You mean the "my new book" (ad13.jpg)? And centered? I see the pad with small images and the table containing the "Antiques" text on the left and all the rest of the content on the right of that. Or are you seeing it differently? |
finnstones |
Nov 10 2008, 01:32 PM
Post
#11
|
Group: Members Posts: 8 Joined: 6-November 08 Member No.: 7,064 |
you have to click a category page. the error is not on the homepage.
|
Frederiek |
Nov 11 2008, 07:17 AM
Post
#12
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
Ok, I clicked the first icon. Although the homepage on itself has no HTML markup errors, the category page does have markup errors. The other errors I posted still apply.
The image is in a table, which has no styling. Only the TR and TD are centered. You need to center the entire table, but I'm not able to decypher how. Maybe through its parent container. On second thought, that table is the only one without a style. Try setting the width of that table to 100%, like you did for other tables. This post has been edited by Frederiek: Nov 11 2008, 07:40 AM |
finnstones |
Nov 11 2008, 08:52 PM
Post
#13
|
Group: Members Posts: 8 Joined: 6-November 08 Member No.: 7,064 |
awesome. thank you. that worked.
|
Frederiek |
Nov 12 2008, 03:36 AM
Post
#14
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
Great, I'm glad that helped.
You should do something about those missing .js files though, as the pages request them. I don't know to which extend they are actually used, but you seem to be using a lot of them! I counted 15 in all (besides the google ads)! Do you really need all that? |
Lo-Fi Version | Time is now: 23rd April 2024 - 01:44 AM |