|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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! |
|
||||
|
Change your logobox CSS to this:
Code:
.logobox {
width: 60px;
height: 20px;
margin-left: 30px;
margin-right: 30px;
margin-top: 20px;
margin-bottom: 20px;
padding: 0;
}
__________________
Toronto Web Design | Search Engine Friendly, Standards-Compliant Layouts | Walk on my Path (my blog) |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |