Hi,
A lot of times when I design I thinking about the question:
Which html elements should be wrapped with div and in which cases?
(<img>,<input>,<textarea>,<form>, <ul>
, etc..)
Example A- input text:
option1 without div:
<input class="input-wrapper" type="text" />
option2 with div around input:
<div class="input-wrapper"><input type="text" /></div>
Example B- img:
option1 without div:
<img class="image-wrapper" src="MyPic.jpg" alt="my pic" />
option2 with div around input:
<div class="image-wrapper"><img src="MyPic.jpg" alt="my pic" /></div>
Edit:
I talking about cases that as designer and programmer we have time to do best way with use of position: relative absolute, float and without <br/>
etc..
Thanks