Hi guys, Can u pls tell me, wht is CSS & how it is useful in blogging? Someone told me that it is used to float video in horizontal direction & putting text matter on the either side of it (video).... if yes, how it is done? Thnx in advance!
To get a picture or other element to justify right or left of text you would add: img.FloatLeft { float: left; margin: 5px; } img.FloatRight { float: right; margin: 5px; } Code (markup): in your style.css. Then in your html you would put something like: <img src="picture.png" class="FloatLeft"> <p>Text here would appear to the right of the picture</p> <img src="picture.png" class="FloatRight"> <p>Text here would appear to the left of the picture</p> Code (markup):
do u mean, i hv to choose css & html code? if i go for html code as u stated,-------------------- Code: <img src="picture.png" class="FloatLeft"> <p>Text here would appear to the right of the picture</p> <img src="picture.png" class="FloatRight"> <p>Text here would appear to the left of the picture</p>__________________ --------------------- ~ is it to write for once only in the blog? ~ where to put this code...at the place where i hv to put my video? ~ if i hv to add video in blog, i hv to add its embed code...so, where to put tht embed code & my comments in abv code? am new to this. pls explain.
Why is it useful in blogging? Well, every blogging platform I can think of uses CSS designs. Most blogging platforms use php/html templates which are controlled via the main stylesheet. Put simply, if you want to know how to modify your blog design you need to know the basics of CSS at the very least.
Also the code can be lighter too, easier to change something across a whole site with one small edit, once you have a basic understanding of it.