Dennasz1 Posted September 30, 2014 Share Posted September 30, 2014 Hello, I am trying to make a category page on one of the CMS pages. I have made some test code in dreamweaver and it works OK. But when i am pasting the code in the HTML function on cms pages and see it in the front office it gets totally messed up. It automaticly makes a spacing between my picture and the description I have attached 2 files to make it clear. 1 is the code i have which is right and 2 is the outcome of the html editor. I hope that someone can explain the issue. Thanks in advance, Dennis bouten.html Link to comment Share on other sites More sharing options...
vekia Posted September 30, 2014 Share Posted September 30, 2014 your code contains a lot of weirdy spaces and line breaks, for example, code: <div style=" position: absolute; top: 8px; left: 8px; "><img src="MIJN ijzerwaren/bouten.jpg" width="205" height="140" style=" border: 1px solid #ff0000; "> should looks like: <div style="position: absolute; top: 8px; left: 8px;"><img src="MIJN ijzerwaren/bouten.jpg" width="205" height="140" style="border: 1px solid #ff0000;"> you also use images with relative paths in src params, like below: <img src="MIJN ijzerwaren/bouten.jpg" width="205" height="140" style="border: 1px solid #ff0000;"> does the file: "MIJN ijzerwaren/bouten.jpg" exists on your host? note that it's a relative path! and there are CAPITALS and space in name. remote directory and file name must look exactly the same Link to comment Share on other sites More sharing options...
Dennasz1 Posted October 1, 2014 Author Share Posted October 1, 2014 Aha, i understand now! thank you Link to comment Share on other sites More sharing options...
Dennasz1 Posted October 1, 2014 Author Share Posted October 1, 2014 I have a new problem. I cant use css in the html boxes on the cms pages. When i use it in the code and save it automaticly the css part goes away. When i use css in the htmlbox it works fine Anyone? Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2014 Share Posted October 1, 2014 default tinymce editor doesnt accept styles, if you want to save styles you have to save them in .css files (like global.css) or if you want to allow save styles inside native editor - you have to extend tinyMCE editor Link to comment Share on other sites More sharing options...
Dennasz1 Posted October 2, 2014 Author Share Posted October 2, 2014 Thanks for your reply, I already have extended tinymce. I will check later if it works OK Dennis Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now