Jump to content

Issue with HTML in CMS editor


Recommended Posts

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

post-226488-0-92322900-1412076644_thumb.jpg

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...