- From: <bugzilla@jessica.w3.org>
- Date: Fri, 10 Jun 2011 16:41:42 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12933
Summary: Other tags should be allowed inside an img tag
Product: HTML.next
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: default
AssignedTo: dave.null@w3.org
ReportedBy: bero@arklinux.ch
QAContact: public-html-bugzilla@w3.org
CC: plh@w3.org, mike@w3.org
Currently, it is hard to position an element relative to an image of unknown
width/height without using JavaScript.
If you wish to have an element on top of an image (e.g. an icon to trigger an
activity), it would be nice to do something along the lines of
<img src="whatever.png" alt="something">
<div style="position: relative; left: 5%; top: 5%; width: 45%; height: 45%;
background-color: green; opacity: 0.8;">something</div>
</img>
(Replacing the img with a div with the image set as background-image works for
placing the inner div, but there doesn't seem to be a way to force the div to
have the exact size of the image without JavaScript.)
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 10 June 2011 16:41:47 UTC