| Pages: [1] |
|
|
Author |
Topic: <Center> tags (Read 45 times) |
|
Roger
Posts: 36
|
Windows XP (SP2), IE6, Snippetmaster Beta
I have a rather old fashioned, but very effective WYSIWYG Web editor (IBM Websphere Homepage builder) which gives me <center> tags. Snippetmaster seems to strip them out unfortunately (notepad file comparisons on request). And then I could not find a way to center my table following the disappearing <center> tag!
Roger
|
|
|
|
|
|
Jenkinhill
|
Roger, <center> tags should not be used now, which I guess is why they are stripped out. Usually centralising text or objects is achieved using styles or CSS, but <div align="center">, <table align="center"> or <p align="center"> are frequently used alternatives, although depracated in XHTML1.0 transitional.
|
Kelvyn
|
|
|
|
Roger
Posts: 36
|
Many thanks,
Yes, Snippetmaster does understand tags like <table align="center" border="0"> and saves them ok after editing elsewhere in the table.
I'll aslo have a closer look at the use of CSS for my tables.
Another little problem I noticed is that my original table contained the tag <TD>Gabriel Fauré</TD> the famous French composer, which displayed fine in IE6. This was translated by SnippetMaster into <td>Gabriel Faur鼯TD> </td> which IE6 could no longer understand! I could easily clean up the cell by deleting the junk and inserting the special character 'e acute', but is this behaivour a bug or another shortcoming of my ancient web editor? My site does need the ability to occasionally display the names of European composers containing special characters and my members are quite likely to paste these in from outside editors.
Roger
|
|
|
|
|
|
Jenkinhill
|
With an e acute in the name the tag should have been <td>Gabriel Fauré<td> before editing. I checked this and Snippetmaster worked just fine with that. Note that you can also use the SnippetMaster editor to enter special characters into text, and this element works OK - I just wish it would say "OK" or "done" when it has inserted the character as there is a tendency to think that nothing has happened.
I tried copying Gabriel Fauré from here and pasting it into a page using SM - it worked just fine and used é. I have also tried copying and pasting from Word, and special characters were handled OK with that.
|
Kelvyn
|
|
|
admin
Forum Administrator

Posts: 1430
SnippetMaster Author
|
I have a rather old fashioned, but very effective WYSIWYG Web editor (IBM Websphere Homepage builder) which gives me <center> tags. Snippetmaster seems to strip them out unfortunately (notepad file comparisons on request). And then I could not find a way to center my table following the disappearing <center> tag!
Roger
Hello Roger,
Can you give me a code sample that uses the center tag? I'm trying to recreate the problem, but with no success yet.
Thanks!
|
|
|
|
|
|
Roger
Posts: 36
|
I attach two notepad filres, the original HTMl code and the 'cleaned up' version from SnippetMaster after 'save'.
Roger
|
|
|
|
|
|
|
Pages: [1]
|
|
|
|