Help with HTML background code?
What I have right now is this:
<style type="text/css">
body { background: url(http://_____) no-repeat center;}
</style>
Now, I want the background image to be centered horizontally, but not vertically, and I want it to not repeat. Please help.
1) This is for a personal web page, not a social networking site. Not sure why that matters though...
2) The background is 1024 pixels wide... not sure why that matters though either....
Public Comments
- What on? Youtube? Myspace? Facebook?
- how wide is your page? if you have a fixed width, like 750px, then {margin: 0 auto;} will center the body. Would be helpful to have more information.
- <style type="text/css"> body { background-image: url(file:///E|/pictures/animations/FILEMOVE_00.gif); background-position: center; background: no-repeat; } </style> also you can try 'topStylePro' to make any desired css style.
- Personally I use a WYSIWYG web page edit program and allow it to write the code. It's a lot simpler than trying to hand write HTML coding myself.
Powered by Yahoo! Answers