How to create Div and how to use in designing

Discussion in 'HTML & Website Design' started by pnkyverma, Sep 8, 2008.

  1. #1
    Pls help me, can anybody tell me about what is div and how to use in designing and can u give me any e-book for basic knowledge of designing for create a web-page.

    I am very thank full if anybody help me.

    Thanks.
     
    pnkyverma, Sep 8, 2008 IP
  2. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Dodger, Sep 8, 2008 IP
  3. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #3
    nicangeli, Sep 8, 2008 IP
  4. kapinder

    kapinder Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The other site you can visit for reference is yourhtmlsource.com.
     
    kapinder, Sep 9, 2008 IP
  5. darkmessiah

    darkmessiah Peon

    Messages:
    500
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Think of DIV's as a container for your content. You place the content in the container, then you apply style to the container, which affects the attributes of anything in the container.

    
    <div style="color:#ff0000;">
    <div style="float:right;">hello</div><div style="float:left;">world</div>
    
    <div style="clear:both;"></div> 
    
    <div style="float:right;">world</div> <div style="float:left;">hello</div>
    </div>
    
    Code (markup):
     
    darkmessiah, Sep 9, 2008 IP