background images for tables using imageready

V

Victor Gil

Hi all, I'm using imageready's sectors to make tables for the html output,
but it always do the following with images in tables:

<td>
<img src="whatever.jpg">
</td>



And i want to get this:
<td background="whatever.jpg">
</td>



Does anyone know how to do it? Now I edit the html code and do it myself but
i think it has to be a way to tell imageready that this picture is a
background and not an image


thanks !
 
B

brucie

in post: <
Victor Gil said:
And i want to get this:
<td background="whatever.jpg">

the background attribute is invalid in anything except the <body>
element. use css

14.2 The background
http://www.w3.org/TR/REC-CSS2/colors.html
Does anyone know how to do it?

..td-background{background:#FFF url(image.png) no-repeat left center;}

i think it has to be a way to tell imageready that this picture is a
background and not an image

i don't use imageready. have you tried
 
V

Victor Gil

Yes I tried the other group but nobody answered.

The background attribute is valid in TD, not only in body, or I
misunderstood what you said?

this works perfectly to put a background picture

<td background="images/whatever.jpg">
 
B

brucie

in post: <
Victor Gil said:
Yes I tried the other group but nobody answered.

if you keep topposting that may happen here.

How am I supposed to post my replies in a newsgroup?:
http://allmyfaqs.com/faq.pl?How_to_post
The background attribute is valid in TD, not only in body, or I
misunderstood what you said?

this works perfectly

it works how you think it should because browsers have decided to
support it, they may decide to discontinue support, change the way its
supported or a new browser may come out not supporting it etc etc.

any number of things because the specs don't say what is supposed to
happen when its not in the <body> element and its deprecated for the
<body> element anyway. use css.
 
V

Victor Gil

Now I understand, thanks very much


:eek:)


brucie said:
in post: <

if you keep topposting that may happen here.

How am I supposed to post my replies in a newsgroup?:
http://allmyfaqs.com/faq.pl?How_to_post


it works how you think it should because browsers have decided to
support it, they may decide to discontinue support, change the way its
supported or a new browser may come out not supporting it etc etc.

any number of things because the specs don't say what is supposed to
happen when its not in the <body> element and its deprecated for the
<body> element anyway. use css.
 
S

SpaceGirl

Victor said:
Hi all, I'm using imageready's sectors to make tables for the html output,
but it always do the following with images in tables:

<td>
<img src="whatever.jpg">
</td>



And i want to get this:
<td background="whatever.jpg">
</td>



Does anyone know how to do it? Now I edit the html code and do it myself but
i think it has to be a way to tell imageready that this picture is a
background and not an image


thanks !

As dear Brucie said, use CSS

<td style="background:url(/images/mycellbackground.jpg) no-repeat top
left;"> blah </td>

Programs like PhotoShop (ImageReady) only have VERY basic HTML support,
which in really these days means "incorrect HTML". Slice and dice your
image how you want in IR, but generate the code by hand. You're visitors
will thank you, and ultimately it'll save you loads of time.

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
V

Victor Gil

Els Gil wrote:
You mean you don't know?

No, I mean my english is not perfect and first time I misunderstood it was
because I didn't understand the text properly.

Ok, let's finish the thread... just wanted some help
 
V

Victor Gil

SpaceGirl" said:
As dear Brucie said, use CSS

<td style="background:url(/images/mycellbackground.jpg) no-repeat top
left;"> blah </td>

Programs like PhotoShop (ImageReady) only have VERY basic HTML support,
which in really these days means "incorrect HTML". Slice and dice your
image how you want in IR, but generate the code by hand. You're visitors
will thank you, and ultimately it'll save you loads of time.


Thanks SpaceGirl, I only use Imageready and Photoshop to make parts of the
web, then I copy the html code and add PHP and others...

I use it in pages that have a complex layout and would take me more time
doing some parts by hand.


About css I always use it, but not for backgrounds in <td>. I'll change to
this way as it's much more better.

Thanks again
 
E

Els

Victor said:
No, I mean my english is not perfect and first time I
misunderstood it was because I didn't understand the text
properly.

Your English looks just fine to me, but anyway, yes, you
understood it right this time.
Ok, let's finish the thread... just wanted some help

You got the help, right?
 
M

Mitja

Victor Gil said:
Hi all, I'm using imageready's sectors to make tables for
the html output, but it always do the following with
images in tables:

<td>
<img src="whatever.jpg">
</td>



And i want to get this:
<td background="whatever.jpg">
</td>



Does anyone know how to do it? Now I edit the html code
and do it myself but i think it has to be a way to tell
imageready that this picture is a background and not an
image
As others suggested, use css. If you do lots of such slicing, you can write
a simple script that converts imageready's output to the desired form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top