View Single Post
  #1 (permalink)  
Old 11-18-2005, 12:10 AM
kerer99's Avatar
kerer99 kerer99 is offline
WebProWorld Member
 
Join Date: Apr 2005
Location: Calgary, Canada
Posts: 93
kerer99 RepRank 0
Default Centering Elements in CSS box

Hello,

Can somebody please help me with this? I'm creating some logo boxes in css - here is my code so far:

.logobox {
width: 120px;
height : 60px;
border: 1px solid Silver;
background-color: White;
}

I want to place a logo into the box using the code above, but I automatically want it centered both horizontally and vertically within the box. The html code would be:

<div class="logobox">[img]images/logohere.gif[/img]</div>

What would I add to the CSS code to make this work?

Thank you SO much.
__________________
Free Online Paid Surveys - Americans, Canadians, Australians, UK residents, International residents, Kids - anyone can join!
Reply With Quote