I got a simple problem, should be easy to fix except I don't know much beyond basic HTML.
I'm trying to layer a text over an image, and have both be links to the same link. I used simple tables, with div tags for the text. I'm trying to avoid making an image for every link, trying to go for minimal data transfer needed. So instead of nine images, I have one that serves as the background for all of them. It works in IE, but not in Firefox. What gives?
Thanks for the reply. Unfortunately, if I make the image a background, then I can't use it as a link anymore. I would like to use both image and text as links if possible. Got any other methods?
Your code works pretty well, except when the text I put in there takes up more than one row. Do you have any ideas? I really appreciate your help so far. http://staco.net23.net/formcss.html
iRedMedia,
Can you show me some sample code? I have no idea how to implement what you are talking about... Thanks!
Note: using positions is tricky business. I usually don't like relative, because it removes the element from the flow, while leaving behind the space it previously took up, uninhabitable.
Ah, now I see what you're doing. His code will work. If you set the line height, and with w/h to the correct size of the image, using a BG image for the link is much more semantic. However, if you were using it like a portfolio or something (which i figured you were) then the other way would be more suitable. I recommend giving his way a shot first!
Bookmarks