[SOLVED] Positioning Header ?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
cyberpaws
Forum Members
Forum Members
Posts: 16
Joined: Sat Aug 25, 2007 7:18 pm

[SOLVED] Positioning Header ?

Post by cyberpaws »

Hello all,  I'm running version 1.1 and am having a little trouble positioning my header.  I'm relatively new to CSS so I'm sure it's something simple.  I just cut out the code for the body and header that I"m using.


Code: Select all


body {
   background-color: #FEF35D
 ;
   color: #333;
   margin:2em;    /* gives some air for the pagewrapper */
}

/* center wrapper, min max width */
div#pagewrapper {
   border: 10px solid black;
   margin: 0 auto;       /* this centers wrapper */
   max-width: 80em;   /* IE wont understand these, so we will use javascript magick */
   min-width: 60em;
   background-color: #fff;;
   color: black;
}
/*** header ***
we will hide text and replace it with a image
we need to assign a height for it so that the image wont cut off
*/
div#header {
   height: 210px;    /* adjust according your image size */
   background: #fe2aa2; 
       
}

div#header h1 a {
/* you can set your own image here */
   background: #ffffff url(images/auntlaura/header.gif) no-repeat 0 12px; 
   display: block;
   height: 205px;             /* 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 */

}
My problem is that I have white space ABOVE my header that I can't seem to get rid of.  Please see here: http://sacredpaws.org/auntlaura/

See how the puzzle pieces on the top are cut off?  I'd love to have that sit up tight to the black border created with the 10px solid black in the pagewrapper and all the way to the right.

Can someone please explain to me how to make that happen?  I'm obviously missing something simple. 

Thank you for your help!
Last edited by cyberpaws on Sat Aug 25, 2007 10:39 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Positioning Header ?

Post by RonnyK »

Change the

Code: Select all

no-repeat 0 12px;
to

Code: Select all

no-repeat 0 0;
in the "div#header h1 a {"

Ronny
cyberpaws
Forum Members
Forum Members
Posts: 16
Joined: Sat Aug 25, 2007 7:18 pm

Re: Positioning Header ?

Post by cyberpaws »

oh my dawg.. I knew it was right there in front of me!  Thank you !!!!!!!!
Post Reply

Return to “Layout and Design (CSS & HTML)”