Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"background:" not working... 1

Status
Not open for further replies.

webmigit

Programmer
Aug 3, 2001
2,027
US
I have a table cell that is 250 pixels wide (by definition) and an image that is 141 pixels wide... I'd like to display the image as a background on the right side of the table cell...

Code:
style="background: url(/phmanip/imagehash.php?amount=500&mo=123886&hres=2A723B71BBE8D7D6002BD095D061599C"

works... it displays the image, but because alignment is not specified, it doesn't align.

style="background: url(/phmanip/imagehash.php?amount=500&mo=123886&hres=2A723B71BBE8D7D6002BD095D061599C) no-repeat middle right"

displays the image and does not repeat it, but it does not align it.

I've tried many variations.. sometimes trying to put values in parentheses, sometimes not, but the only attributes I can get it to be aware of is no-repeat and the image.

Any thoughts?

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Code:
style="background: url(/phmanip/imagehash.php?amount=500&mo=123886&hres=2A723B71BBE8D7D6002BD095D061599C) no-repeat [b][red]center[/red][/b] right"

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
It worked!

I honestly didn't think it was going to.. nothing against you, let me explain..

As far as I'm aware, the values available to the valign attribute of tags is "top, middle or bottom" isn't it?

Even though these two have very little in common, you'd think they would have kept that a standard, just to make developers' lives easy.

But who said developers' lives are supposed to be easy. :)

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
yes, the in-line deprecated attribute 'valign' had possible values of top, middle and bottom.

However, the stylistic approach allows for top, center and bottom.


*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top