How CSS is helpful in blogging?

Discussion in 'Blogging' started by asawari_in, Jun 4, 2008.

  1. #1


    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!
     
    asawari_in, Jun 4, 2008 IP
  2. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    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):
     
    mizaks, Jun 4, 2008 IP
  3. asawari_in

    asawari_in Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    :confused: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.
     
    asawari_in, Jun 4, 2008 IP
  4. System0

    System0 Well-Known Member

    Messages:
    168
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #4
    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.
     
    System0, Jun 4, 2008 IP
  5. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #5
    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.
     
    pipes, Jun 4, 2008 IP