how to add padding around logo
Posted: Sat Mar 13, 2010 4:51 am
My logo looks kind of scrunched up there in the left-hand corner. How do I add some padding without messing everything else up??
http://www.quuf.org
header code:
div#header {
background-image: url(images/cms/bg_header.jpg);
background-repeat:repeat-x;
width:100%;
height: 120px;
position: relative;
}
div#header h1 {
background-image: url(images/cms/logo.jpg);
background-repeat:no-repeat;
background-position:top left;
display: block;
height: 120px;
width: 324px;
position:absolute;
top:0;
left: 0;
}
div#header h1 a {
/* you can set your own image here */
background-image: url(images/cms/logo.jpg);
background-repeat:no-repeat;
background-position:top left;
display: block;
height: 120px; /* adjust according your image size */
text-indent: -999em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}
div#header h1 a:hover {
background:none;
}
div#logotext {
color:#696d6;
text-align:center;
padding-top: 40px;
}
/* position for the search box */
div#search {
float: right;
width: 27em; /* enough width for the search input box */
text-align: right;
margin: 0 1em;
white-space:nowrap;
}
http://www.quuf.org
header code:
div#header {
background-image: url(images/cms/bg_header.jpg);
background-repeat:repeat-x;
width:100%;
height: 120px;
position: relative;
}
div#header h1 {
background-image: url(images/cms/logo.jpg);
background-repeat:no-repeat;
background-position:top left;
display: block;
height: 120px;
width: 324px;
position:absolute;
top:0;
left: 0;
}
div#header h1 a {
/* you can set your own image here */
background-image: url(images/cms/logo.jpg);
background-repeat:no-repeat;
background-position:top left;
display: block;
height: 120px; /* adjust according your image size */
text-indent: -999em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}
div#header h1 a:hover {
background:none;
}
div#logotext {
color:#696d6;
text-align:center;
padding-top: 40px;
}
/* position for the search box */
div#search {
float: right;
width: 27em; /* enough width for the search input box */
text-align: right;
margin: 0 1em;
white-space:nowrap;
}