Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
<table>
#5
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 Smile
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.
Reply


Messages In This Thread
<table> - by sidotij - 2016-09-26, 09:02:22
RE: <table> - by shawn_a - 2016-09-26, 14:42:11
RE: <table> - by sidotij - 2016-09-26, 23:17:17
RE: <table> - by shawn_a - 2016-09-27, 01:41:36
RE: <table> - by Raeven - 2016-09-27, 03:10:49
RE: <table> - by shawn_a - 2016-09-27, 05:20:25
RE: <table> - by sidotij - 2016-09-27, 08:06:40
RE: <table> - by sidotij - 2016-09-27, 08:57:40



Users browsing this thread: 1 Guest(s)