![]() |
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 -- >;"> Quote:
|
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. |
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.
|
Re: need help understanding a line of code
Quote:
It is inside the style attribute, so I believe the correct way to comment this is /* 300px */. Quote:
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.