I tried to find a subject on this subject, but I did not find it, so I thought that I would continue.
My question is, if you're ever right, just put your style directly in your HTML file, instead of using a .css file.
I mean, I understand that it is very useful to use your .css file when you have a lot of things that need to be repeated, or used across multiple pages. But in my case, I have one page where I am going to style something, which I'm sure only on this page. This is the width, height and small material for the div.
To show you what I mean, here is the code:
<div style="margin:0px auto; width:600px;"> <div style="float:left"> <p class="InputFieldsText">Brugernavn</p> <div class="InputFields"><input name="Text1" type="text" class="Medium" placeholder="Din e-mail adresse" /></div> <p class="InputFieldsUnderText"><a href="#">Glemt dit brugernavn?</a></p> <p class="InputFieldsText">Password</p> <div class="InputFields"><input name="Text1" type="password" class="Medium" /></div> <p class="InputFieldsUnderText"><a href="#">Glemt dit password?</a></p> <input onclick="window.location='user_page.html'" class="LargeIndent" name="Submit1" type="button" value="Log ind" /> </div> <div style="float:left; width:172px; text-align:center"> <img alt="" height="128" src="images/lock.png" width="128"> </div> </div>
So, as you can see, in some divs I entered it directly, instead of coming up with a name for my class and putting it on. I know that this is not so, because it will be the same if I used it in my .css file and named the class, but is there a βlandmarkβ or something like that, and this is not recommended, etc ..
I hope you understand my question. Actually not so much, I always wondered :)
Hi
source share