X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   need help understanding a line of code (https://forum.x-cart.com/showthread.php?t=69108)

keystone 05-01-2014 10:20 AM

need help understanding a line of code
 
I was validating my code with w3c validator and it pops up this line.
Code:

<div class="details" style="margin-left: 1px <-- 300px -- >;">
I'm not sure what it means, I have not seen the extra
Quote:

<-- 300px -- >

before, what does it do?

totaltec 05-01-2014 10:40 AM

Re: need help understanding a line of code
 
<-- 300px -- > is probably doing nothing. It is commented out using html comments, and done improperly at that. :-)

It should be <!-- 300px -- >

Sorry for the w3fools link:
http://www.w3schools.com/tags/tag_comment.asp

I would just remove the offending little bugger.

keystone 05-01-2014 10:42 AM

Re: need help understanding a line of code
 
I wondered if that was the case. I didn't want to delete it without checking first.

qualiteam 05-05-2014 09:36 PM

Re: need help understanding a line of code
 
Quote:

Originally Posted by totaltec
It is commented out using html comments, and done improperly at that. :-)

It should be <!-- 300px -- >


It is inside the style attribute, so I believe the correct way to comment this is /* 300px */.

Quote:

I would just remove the offending little bugger.

I would do the same, unless there is a chance you will revert the change (from 300px to 1px margin) back :)


All times are GMT -8. The time now is 11:17 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.