Title: HeaderImage outside my limits
Last modified: August 19, 2016

---

# HeaderImage outside my limits

 *  [neszz](https://wordpress.org/support/users/neszz/)
 * (@neszz)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/headerimage-outside-my-limits/)
 * Hey Guys!!
 * I am having trouble resizing my image to fit between the lines of my page. Also,
   the white background of the image is covering other images that I have on the
   blog. Any advice? the website: [http://www.26doors.com](http://www.26doors.com)
 * Second question: How can I add links to the headerimage if I break up the large
   image into smaller sizes and adding text on it such as home, links, contact, 
   etc.
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [neszz](https://wordpress.org/support/users/neszz/)
 * (@neszz)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/headerimage-outside-my-limits/#post-845436)
 * I spent many hours on trying to fix this problem. I am not sure what I am doing
   wrong. I have been messing around with the css code in style.css. The thing that
   puzzles me is trying to resize the background image and make sure it is center
   and not overlapping with other images.
 * Here is the code:
 *     ```
       #headerimg 	{
       	margin: 7px 9px 0;
       	height: 192px;
       	width: 740px;
       }
       #header {
   
       	background-color: #73a0c5; /* will change the color, but makes it easier to understand where this box is at.
       	margin: 0 0 0 1px;
       	padding: 0;
       	height: 180px;
       	width: 720px; 
   
       	}
   
       #headerimg {
       	margin: 0;
       	height: 200px;
       	width: 100%;
       	}
       ```
   
 * The website is [](http://www.26doors.com)
 * Any advise?
 *  [wd4a](https://wordpress.org/support/users/wd4a/)
 * (@wd4a)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/headerimage-outside-my-limits/#post-845437)
 * CSS cannot be used to resize images. when you define the width of #headerimg 
   you only say that that div should be 740px wide, not the image inside it.
 * You need to resize the image in an image editor (Photoshop, GIMP etc.). I would
   advise you *not* to use Paint, as it doesn’t resample the image, and also creates
   images that are both low-quality and big.
 * Hope this helps!
 * Isaac
 *  [andyux](https://wordpress.org/support/users/andyux/)
 * (@andyux)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/headerimage-outside-my-limits/#post-845440)
 * I havent really looked at your code, but what i do is quick creative solutions.
   Get rid of the blue background or add the same blue to your header image. or 
   just use a different theme altogether and then deal with it.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/headerimage-outside-my-limits/#post-845456)
 * You appear to be using the default theme. This may be of some assistance;
 * [http://codex.wordpress.org/Designing_Headers#Changing_the_Header_Image](http://codex.wordpress.org/Designing_Headers#Changing_the_Header_Image)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘HeaderImage outside my limits’ is closed to new replies.

 * 4 replies
 * 4 participants
 * Last reply from: [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/headerimage-outside-my-limits/#post-845456)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
