html question
- Started
- Last post
- 12 Responses
- samb
is it possible to place an image at the bottom of a page, so it stays at the bottom no matter what size browser?
- rasko40
no, unless you use frames
well, as far as I know, maybe t6here is some javascript watchamacallit
- weestu0
yes
body {
background-color: #ffffff;
background-image: url(http://example.com/yourbg.jp...
background-repeat: repeat-x;
background-position: bottom left;
background-attachment: fixed
}you could also use the shorthand background method
- stewart0
look at the "maat" logo, bottom right
http://www.stichtingmaat.nl/the script is a little heavily-built for that function though. (has something to do with customizability of the x-y movements, easing etc etc, it's all built in).
- samb0
cheers, what exactly do i do with this code??
- UndoUndo0
put it in yr css file and change the background URL to your image
- samb0
ok, that is sorted in internet explorer and safari, but it screws up and doesn't position right in firefox?? any ideas?
- UndoUndo0
add
padding:0px;
margin:0px;to the body class
ie.
body{
padding:0px;
margin:0px;
// rest of the code
- paraselene0
undoundo: the valient knight errant, saving all the flaxen-haired n00bs from certain fire-breathing codedragon doom
- fifty500
sounds like you need a crash course in CSS, buddy.
It's a bit overwhelming at first to have to learn something new but I promise, CSS is easy.
- fifty500
here's a good start:
- UndoUndo0
* rests on double edged code sword and wipes sweat from brow
- jamble0
you should be able to shorten the background code to something like:
background: #fff url(yourimg.gif) bottom right repeat-x;
It won't change how it works but it's a bit neater :)