|
Make your own header banner, follow the instructions below (it is related to the Modern theme).
1. Make a new banner image (in the shown example, mine is just plain white). The original size of the header field is: 960 x 90 pixels. Name it body_bg.gif.
2. Upload your header banner to this folder: skin/frontend/default/modern/images/
(before you do so, rename body_bg.gif that already is stored in the same folder to body_bgbackup.gif, in case you want to use it later).
3. Define the position of the new banner and set the background color for the other part of your page.
These changes are done in the RESET.CSS (under skin/frontend/default/modern/css/).
- background-color: #E6E6E6; defines the color for the other part of your page as well as the footer)
- background-position: top center; this will position your new header correct aligned with the rest of the body
Replace the original code under
/******************************************/
/***********[ Mage_CSS_A Reset ]***********/
/******************************************/
* { margin:0; padding:0; }
body { background:#f2f2f2 url(../images/body_bg.gif) 0 0 repeat; color:#444; font:11px/1.55em arial, helvetica, sans-serif; text-align:center; }
a { color:#ff0000; text-decoration:none; }
a:hover { color:#ff0000; text-decoration:underline; }
a img { border:0;}
:focus { outline:0; }
with this:
/******************************************/
/***********[ Mage_CSS_A Reset ]***********/
/******************************************/
* { margin:0; padding:0; }
body {
background-color: #E6E6E6;
background-image: url(../images/body_bg.gif); background-repeat: no-repeat;
background-position: top center;
font:11px/1.55em arial, helvetica, sans-serif;
text-align:center;
}
a { color:#CC0000; text-decoration:none; }
a:hover { color:#CC0000; text-decoration:underline; }
a img { border:0;}
:focus { outline: 0; }
4. How to move your logo image src to the wanted position inside the header banner (defined in BOXES.CSS)
Now, you might want to move the header logo image src to the wanted position.
You can easily define the position in boxes.css (skin/frontend/default/modern/css/). As you wil see, I have added my own margin definition to the .page-head (line 2), in this case I have moved the logo a little to the right:
/* Page heading */
.page-head { margin:0 0 16px 0; }
.page-head-alt { margin:0 0 12px 0; }
.page-head, .page-head-alt { text-align:right; }
.page-head h3, .page-head-alt h3 {
margin:0;
font-size:23px;
font-weight:normal !important;
text-transform:none !important;
text-align:left;
}
.button-level h3 { /* heading level with buttons */
float:left;
width:60%;
}
See the enclosed screen picture for how the final result can look.
Image Attachments
Click thumbnail to see full-size image
|