3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How makey "wrap around" bg/banner in blogger?

I'm having a bit of trouble trying to figure out how to do an awesome background/header in Blogger that rolls beyond the width of the columns and doesn't get off-center/out-of-line with the blog content when the browser is resized.  You can see the problem here:  http://dangerplants.blogspot.com/

The blog isn't done or anything.  It's just an example of what happens the browser is resized, and it bothers me a lot.

I don't know if the column code needs to be adjust or the background code needs to be changed or what.  I'm not good at CSS, and I don't know JavaScript, which blogger allows.

I'm attaching a rough idea of what I'd like to be able to do.  Les sigh.

BGHeaderProblem.png
6 answers
sort by: active | newest | oldest
Jun 25, 2011. 6:58 AMspike3579 says:
This looks like it might help:

http://ilook12.blogspot.com/2009/11/easiest-way-to-add-fixed-background.html

Adding the "fixed" attribute ought to tell the image to stay still.
Jun 25, 2011. 8:28 AMspike3579 says:
First, my advice from before is useless b/c you already have "fixed" as one of the attributes for the background image.

Your image has a "center" attribute which is why it's moving when you resize the window.  It keeps trying to center itself.  Also, I think the "fixed" attribute is keeping it from scrolling up and down with the rest of the content.

Does blogger let you edit the css files?  Wordpress doesn't in their free version but you can pay for the privilege.  If you are constrained to a few built-in options that come w/ blogger you may be screwed.  If you can edit css (or override the defaults) you have options.

I would try setting the image absolutely which is usually done by describing the position in css for the top left hand corner of the image. If you wanted the picture at the very top and 100 pixels from the left of the window it would look like:

body {
  background: url("link to your picture here");
  position: absolute;
  top: 0;
  left: 100px;
}

or you can float the image which means that if nothing is in it's way it will display to the left or right side of the screen or whatever containing element it is inside of. In your case I would try floating left and adding padding to the picture to position it which would look like:

body {
  background: url("link to your picture here");
  padding-left: 100px;
  float: left;
}

I am by no means a CSS pro. I just learn enough to get what I need done which means lots of stumbling around. It generally gets the job done w/ some perseverance.

FWIW- Like many people I use the firebug extension with firefox to figure out what's going on.  It lets you click on an element on your page and tells you what rules are being applied to it.  It takes a bit to get used to using it but is fantastic for troubleshooting.  I also refer to the sitepoint css & html reference constantly to refresh my memory on what tags/attributes to use.
Hope this helps...
Jun 24, 2011. 10:36 AMjustjonty says:
I don't personally use blogger but would it be possible to have the black background as separate from the plant tray header image??? I mean if you simply crop your red tray with cactus and insert it as a header image aligning it to the right of the blog title... then it wouldn't move when your browser window is resized (as the background image does at present)... your background is the free to be centred if required, yet your cool header image will stay where it should be...

There is a good description of aligning your header image here

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!