<table> - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: <table> (/showthread.php?tid=8746) |
<table> - sidotij - 2016-09-26 another interesting find in ckeditor and tinymce I am seing that if I use a <table> it displays in the live editor but not in gs ie: Code: <table border="1"> should display with a 1px border and it does in the editor, but when displayed the border is is gone almost like it was set to <table border=0> Is this expected behavior? John RE: <table> - shawn_a - 2016-09-26 ckeditor uses its own stylesheet, your theme has its own as well. so if you mean that it does not look the same then yeah thats expected. themes CAN make their own content.css for ckeditor, as can users if this is a problem. RE: <table> - sidotij - 2016-09-26 interesting... I would have thought that if something displayed in the editor it would display on the site as well I switched to the cardinal theme and it indeed shows the table frame... now I just have to look at why RE: <table> - shawn_a - 2016-09-27 content yes, css no RE: <table> - Raeven - 2016-09-27 As Shawn mentioned the editor and the theme use separate CSSes. Cardinal's css does not style tables in any particular way so the 1 pixel border that the editor added is not being replaced by anything. Themes can include a second css sheet, editor.css, that control how things are displayed in the editor. Many themes you download do not, but you can add one. If you want the look to be the same as the pages you need to add the same styles to editor.css that you have in styles.css The quickest/easiest way is to do this is to have the editor.css load up styles.css (and any other relevant style sheets). Code: @import url("style.css"); Then you start fixing anything that is incompatible or did not load up properly. If your content area uses a different background than the body you'll want to add a body tag to your editor css so it can simulate the background used by your main content area. Code: body {background:#fff;} Custom fonts seem to need to be loaded up here as well. I guess by the time it gets to loading up the imported styles.css it's too late to start adding fonts in Code: @import url(https://fonts.googleapis.com/css?family=Rosarivo); And I sometimes have to add some stuff for images as well, if I'm remembering correctly. RE: <table> - shawn_a - 2016-09-27 editor.css not content.css my bad RE: <table> - sidotij - 2016-09-27 thanks for the tips guys I appreciate it RE: <table> - sidotij - 2016-09-27 added the table define to css of the theme Code: table, th, td { again thanks for the lead.. I never would have thought to add it by hand John |