text Padding in css box

Discussion in 'HTML & Website Design' started by login, Sep 28, 2007.

  1. #1
    On this site mineoppskrifter.no I need to make padding so that the text in the two boxes inn he middle dont go all the way to the sides. The problem is that if I make padding in the css file the boxes are moving also following the text. Greatful for any help on this.
     
    login, Sep 28, 2007 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What do you mean the boxes follow the text? They stick out further?
     
    Stomme poes, Sep 28, 2007 IP
  3. longhornfreak

    longhornfreak Well-Known Member

    Messages:
    2,067
    Likes Received:
    95
    Best Answers:
    0
    Trophy Points:
    140
    #3
    You define the padding in div styles and in css styles on several occasions

    here is where you need to change your padding

    .spiffy{display:block}
    .spiffy *{
    display:block;
    height:1px;
    overflow:hidden;
    font-size:.01em;
    background:#D3D997}
    .spiffy1{
    margin-left:3px;
    margin-right:3px;
    padding-left:1px;
    padding-right:1px;
    border-left:1px solid #D3D997;
    border-right:1px solid #D3D997;
    background:#D3D997}
    .spiffy2{
    margin-left:1px;
    margin-right:1px;
    padding-right:1px;
    padding-left:1px;
    border-left:1px solid #D3D997;
    border-right:1px solid #D3D997;
    background:#D3D997}
    .spiffy3{
    margin-left:1px;
    margin-right:1px;
    border-left:1px solid #D3D997;
    border-right:1px solid #D3D997;}
    .spiffy4{
    border-left:1px solid #D3D997;
    border-right:1px solid #D3D997}
    .spiffy5{
    border-left:1px solid #D3D997;
    border-right:1px solid #D3D997}
    .spiffyfg{
    background:#D3D997}
     
    longhornfreak, Sep 28, 2007 IP
    login likes this.
  4. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #4
    1000 thanks longhornfreak, green to you. What should coder noobs as me do without people like you? :)
     
    login, Sep 28, 2007 IP