Forum Moderators: open
At the bottom of each page is a little signature image which links back to my personal homepage. So I have the following div:
<a href"#"><div class="tymSig"> </div></a>
.tymSig {height:55px;width:66px;cursor:pointer;background:url('./images/tymSig.png');position:relative;z-index:2}
Although this works, my problem is that if I ever change the signature image I'd have to go back and edit the size of the transparent gif inside the span on every page instead of just a quick change in the stylesheet.
Can anyone give me some suggestions?
I try to reduce the whole document to headings, paragraphs, lists, tables, and forms; so the semantic structure is correct. I apply the styling to those blocks.
Occasionally, and it is very occasionally there may be a need to put a div around several blocks, or include a span; but I find this to be very rare.
In many cases there is a way to style the blocks you already have. In the example above I would enclose the link in <p> ... </p> tags, and add the class to the <p> tag. No need for a div at all.
I tried the P tag... but my problem was the same as when I tried to use the span. Declaring height and width so you could be the image does nothing in Netscape and Firefox. I was able to put a 1x1 transparent gif inside the link tags and strech it to be the desired size.