A couple of tips for a typesetter, like a knife through butter
05.09.2011

A practical hostess has a whole arsenal of knives in the kitchen for all occasions, just for convenience, I don’t know some of the nuances, you can look for a solution to problems for a long time, it’s like a hostess with a dull knife. Today I offer you a couple of tips for the layout designer, which you should not forget about, they will help you deal with the code more conveniently so that your layout looks good, and it is easier to make it, sometimes even like a knife through butter.
html file.
1) Document encoding, usually utf-8 for Russian-language sites, for the rest windiws-1251;<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
css - styles.
1) In blocks with floating height (there may be more content in the block), set the property overflow: hidden; which will clear your float or display:inline elements inside the floating height block. #box { overflow: hidden; width: 247px; }
2) Limit the maximum width of photos in articles so that if there is a large photo, it does not go beyond the width of the block. .post img { max-width: 400px; }
3) use css3, of course it doesn't work in ie but if it doesn't affect the design a lot then it's worth it.
SUBSCRIBE TO NEWSLETTER
Last in our blog
Internet Marketing
04.11.2019
Internet Marketing
03.10.2019