|
Page 1 of 1
|
[ 2 posts ] |
|
| Author |
Message |
|
maggiee
N00b
Joined: Tue Apr 26, 2011 9:29 am Posts: 1
|
 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 |
|
 |
|
Echo419
Site Admin
Joined: Fri Mar 28, 2008 2:40 pm Posts: 325
|
 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)"
_________________
 Supporting Soviet Union since 1922!
www.FreeSteam.org
|
| Sat Apr 30, 2011 6:42 am |
|
|
|
Page 1 of 1
|
[ 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
|
|