Hi,
I'm trying to make a clickable link, which is the full size of the outer div, but it also must contain positioned text items inside it. These positioned text items need to have maximum widths, as it is filled with dynamic content from a database, so the height may change but the width not.
I'm having some trouble with how inline and block level elements should be done properly. please help :)
I have been positioning the text items using divs, as I've read that the <span> tag cannot have a width property. Though I have also tried using <span> tags inside.
I have read that placing a <div> inside <a href> is incorrect. Is this the case?
I have set the href as display:block, in external css - is this enough to make it a block level element? And then does that mean I can put a div inside an href?
The strange thing is, it often displays how I want it to (though I may be writing invalid code), but sometimes on a page reload things go weird lol
Any help or articles I can go read up on, much appreciated :)
Thanks :)