View Single Post
  #13 (permalink)  
Old Dec 11th, 2007, 21:59
Lchad Lchad is offline
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Making centred div hug content

Is this what you want it to do?
CSS
Code: Select all
.center {
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
    width: 600px;
}
 .t {float: left; background: url(dot2.gif) 0 0 repeat-x } /* just remove float for non hugging version */ 
.b {background: url(dot2.gif) 0 100% repeat-x}
.l {background: url(dot2.gif) 0 0 repeat-y}
.r {background: url(dot2.gif) 100% 0 repeat-y}
.bl {background: url(bl2.gif) 0 100% no-repeat}
.br {background: url(br2.gif) 100% 100% no-repeat}
.tl {background: url(tl2.gif) 0 0 no-repeat}
.tr {background: url(tr2.gif) 100% 0 no-repeat; }
No change to html
Reply With Quote