how do you create a background that is not tiled nd is centered using HTML?![]()
how do you create a background that is not tiled nd is centered using HTML?![]()
Centering vertically and horizontally is difficult to do, but can be done with CSS. Are you using CSS on your site?
You could also make a table I suppose and to a <td valign="center"><center>picname.jpg code here</center></td>
Something like that...
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
I'd say: remake your background in PhotoShop and place it centered ..
Easiest and you're always sure about it.
Er, who says s/he has Photoshop? That's some expensive software. Besides, it won't stay centred if the user's screen resolution (or window size) is something other than that for which s/he created the image.I'd say: remake your background in PhotoShop and place it centered ..
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Hi there dezii1,
does this example help...
cootheadCode:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- * { margin:0; padding:0; } html,body { height:100%; color:#fff; background-color:#003; background-image:url(http://mysite.orange.co.uk/azygous/images/buddha.jpg); background-repeat:no-repeat; background-position:center center; } --> </style> </head> <body> <div></div> </body> </html>
Thank you guys for your help
Hi there dezii1,
are you in Time Warp.
There is a fourteen month time span between your original post and your second.
coothead
Bookmarks