We help IT Professionals succeed at work.
Get Started

responsive header image

dgrafx
dgrafx asked
on
56 Views
Last Modified: 2015-08-26
I have a header
.siteheader {
      height : 155px;
      width : 100%;
      max-width: 1200px;
      margin:0 auto;
      background-repeat : no-Repeat;
      background-image : url("../images/header1.png");
      background-position : 0px 0px;
      background-size: 100% auto !important;
      /*border-bottom:1px solid #999;*/
}
as you can see I have the image resize according to browser size

I REALLY want this border-bottom but have commented it out because as the image height decreases then I have empty blank space within the header because the header itself is not resizing - so removing the border looks like the empty space belongs to the content area below the header.

question is how can I resize the header as the browser window changes size
I can then probably use background-size 100% 100%
I've tried
.siteheader {
      max-height : 155px;
      height : auto;
      min-height : ???;
what would i put for min-height?

or actually what should I do here with this situation?
thanks
Comment
Watch Question
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2017
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE