Results 1 to 2 of 2
Oct 28, 2010, 22:08 #1
- Join Date
- Oct 2010
- 0 Post(s)
- 0 Thread(s)
Need an image to be fixed as the page scrolls?
Okay, so I know I have no idea what I'm doing... that's why I'm here!
I want the background image to stay fixed in one place, so there is no overflow of the text off the image. If you look at the code, it's just an image placed in the back, not an actual background image. I couldn't get the background image to work and be transparent also.
So either a way to fix the image on the page as it scrolls or a way to make a background image transparent would be useful.
Also... I know I'm div and br happy. Right now I just want to get the page up, and make it spiffy later... it's so ugly right now ;-)
Thanks for your help in advance! I'm exausted from trying to THINK!
Oct 29, 2010, 03:30 #2
- Join Date
- Aug 2007
- 44 Post(s)
- 1 Thread(s)
You should still at least fix your doctype.
<!DOCTYPE html PUBLIC "-//w3c//DTD HTML 1.0 Strict//EN"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
to make sure your future css etc don't get snagged by Quirks Mode.
Anyway, I think you should take desert image, and in your image editor, make it look semi-transparent (use your background colour and lower the opacity of the image above it in a new layer... then flatter and save). Set it as a background image on the body (or html) element.
Use the background css properties to set your desired settings... in this case, you'll want "fixed" for the position.
Double check that everything you have on the page is still readable with that background image behind it (even faded, it does reduce contrast somewhat).
As a side note, you may not want "Saddle" twice for your alt text. What does it mean if I'm listening to your page and I hear "saddle saddle"??? I'd consider leaving them alt="" since they are seemingly just decoration but in the HTML.
I didn't look further down the page.