0
Should we use negative value in HTML or CSS? for example, margin-top: -200 px. If we use what will be the problems?
Please show us some light on it. At the beginning of my coding life I coded a psd to html template using negative values and then my client told me his programmers failed to implement that coded page with his website. Reasons were not clear to me? Would anyone help to clear this matter? In such case what will be better practice? Lots of thanks in advance 😊😊😊
2 Respuestas
+ 3
Negative values are totally valid. Here are some articles that explain how it works. Generally they are not so common, but they have several uses:
http://www.css-101.org/negative-margin/01.php
https://www.smashingmagazine.com/2009/07/the-definitive-guide-to-using-negative-margins/
I do not think the programmers have failed to adapt your design for that reason. In the same way it would be useful if the client specified the reasons, since otherwise the others can disqualify your work without a valid reason and even for reasons that may not be concerning you (such as the ability of the other people involved in the draft).
I have a personal experience of a designer friend as an example of the latter: he delivered a design to a client and the person responsible of implementing it rejected it and underestimated his work. The reason? He did not have the knowledge to implement it. Another programmer implemented his design without problems later.
+ 1
Mickel, Thank you so much for your answer. Up to this days I was feeling that moment and feeling guilty. Now I am feeling relaxed and burden free 😃