If I have a table with 100 rows, and every 10 rows is a title (ex. Chemistry) Is it possible on just 1 row to have that cell FILL with an image and I can lay the word Chemistry over it?
In other words, can I have individual cells of tables have different background images in them?
If you use the Add Selector Action to add an ID or a classname to that cell, then you can target that with a tag-only style. Freeway’s Inspector doesn’t let you apply an image to a table cell, and I am not sure if the Extended dialog does what you need to insert it inline.
Walter
On Jun 15, 2012, at 8:51 PM, Hoffman wrote:
Hi,
If I have a table with 100 rows, and every 10 rows is a title (ex. Chemistry) Is it possible on just 1 row to have that cell FILL with an image and I can lay the word Chemistry over it?
In other words, can I have individual cells of tables have different background images in them?
For even more magic, you can use the nth-child selector to apply the header behavior to every 10th row without having to add the class manually to those rows.
This will naturally fail in an elderly browser (or one from Washington State, where the lack of sunshine stunts their growth). But this lack of support will not keep the content from being visible. If IE is a huge part of your audience, you can use JavaScript to add the style.
They are trying to style the table row (the html tag for which is ). An
easier way to style the background image of a table cell (html is )
would be to first create a normal class style (Name field in Style Editor,
not tag), then select each cell that you want to have that background and
apply it.
–
Ernie Simpson
On Sat, Jun 16, 2012 at 9:22 AM, DeltaDave email@hidden wrote:
Can you not insert an html item in your cell and apply a bg image to that?
I appreciate that but I am also aware of Barry’s knowledge level when it comes to editing styles/creating styles and he might be more comfortable with a simpler approach.
That is certainly something well worth remembering Dave, however Barry mentioned that he wanted to place the word chemistry over the top of the image which means it has to be done with a background image (or by overlaying the table over a regular image). Certainly if it weren’t for the text then placing an image in the table cell would also have done the job wonderfully well - and with a lot fewer steps.
Regards,
Tim.
On 16 Jun 2012, at 16:41, DeltaDave wrote:
I appreciate that but I am also aware of Barry’s knowledge level when it comes to editing styles/creating styles and he might be more comfortable with a simpler approach.
will I be able to FILL the cell with the picture and have text over it?
Try it
Insert an html item into your table cell, apply a bg image to it (adjust the position using the tiling options) and then stick in some text. You will need to use some padding etc. to position your text but that shouldn’t be too difficult.
What you say is true, however I would point out that a table cell is also
an html container, just a different kind.
Table elements already have everything needed – they hold text and can be
styled with CSS. Inserting a container inside another container just to do
what can already be easily done is an unnecessary and inelegant solution.
–
Ernie Simpson
On Sat, Jun 16, 2012 at 7:07 PM, DeltaDave email@hidden wrote:
just to do what can already be easily done is an unnecessary and inelegant solution
Easy for you and easy for me but not necessarily easy for Barry who is a science teacher and not a web developer.
Dont get me wrong - I think he is perfectly capable of increasing his knowledge of CSS and styling but he wants to get his site up and running and some of the niceties may come later.