<div> tag help

Discussion in 'HTML & Website Design' started by surya, Jun 10, 2008.

  1. #1
    hello all..:)
    <div align="right"> will place anything on the right most corner..
    now, i want to place something at the right, but not extreme right..
    i want to leave some pixels at the right corner..
    is it possible??:rolleyes:
     
    surya, Jun 10, 2008 IP
  2. sofunny

    sofunny Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i hope i can.
     
    sofunny, Jun 10, 2008 IP
  3. LazerUK

    LazerUK Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    right padding in css ?
     
    LazerUK, Jun 10, 2008 IP
  4. surya

    surya Peon

    Messages:
    720
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    mind telling me how??
     
    surya, Jun 11, 2008 IP
  5. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Should be something like <div style="padding: 0px 10px 0px 0px;">

    Replace the 10 with what amount of padding you need..
     
    diligenthost, Jun 11, 2008 IP
    surya likes this.
  6. surya

    surya Peon

    Messages:
    720
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #6
    got it..
    thanks bro:)
     
    surya, Jun 11, 2008 IP
  7. artflutter

    artflutter Member

    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #7
    probably better of separating your html and css code.
    HTML
    <div id="stuff">some stuff here</div>

    CSS
    #stuff {
    padding-right: 10px;
    }
     
    artflutter, Jun 11, 2008 IP
  8. surya

    surya Peon

    Messages:
    720
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i already got it..
    but thanks anyway pal..
    its always better to know any alternatives..:)
     
    surya, Jun 11, 2008 IP