Reply to topic  [ 2 posts ] 
I can't use CSS in 
Author Message
N00b

Joined: Tue Apr 26, 2011 9:29 am
Posts: 1
Post I can't use CSS in
How would you center a background image *not* using css? I need to center a background image, the problem is that I can't use CSS in order to do it. The image can't tile, and it has to be centered. So what would be the proper code in HTML?

_________________
yahoo keyword tool ~ overture ~ traffic estimator ~ adwords traffic estimator


Sat Apr 30, 2011 6:16 am
Profile
Site Admin
User avatar

Joined: Fri Mar 28, 2008 2:40 pm
Posts: 325
Post Re: I can't use CSS in
Why can't you use CSS lol? Do you mean you can't use an external style sheet or you want to sue it in an email?

HTML

<div align="center" style="background-image: url('image.jpg');"></div>

Or you could use JS to do it :

object.style.backgroundImage="url(image.jpg)"

_________________
Image
Supporting Soviet Union since 1922!

www.FreeSteam.org


Sat Apr 30, 2011 6:42 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.