<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Does an anchor &lt;a&gt; around a block-level &lt;div&gt; work with CSS styling as expected?]]></title><description><![CDATA[<p dir="auto">I'm in the process of building a new HTML5 website with my own backend and Boostrap 3.3.7 as responsive framework.</p>
<p dir="auto">The site is 'mobile first' and presents lists of clubs to users - as its intended primarily for mobile I use summary blocks that tap through to detailed views.</p>
<p dir="auto">The summary blocks are in the form of an anchor &lt;br&gt;w&lt;a&gt;rapped around a block-level &lt;/a&gt;&lt;div&gt;&lt;a&gt; and this renders fine on Chrome, Firefox and IE but doesn't work on Opera - or at least doesn't with my website.</p>
<p dir="auto">When I say 'doesnt work' I mean that the block level &lt;/a&gt;&lt;div&gt;&lt;a&gt; part works in-so-much-as they are clickable and go to the href in the anchor but no style from the CSS is applied to the &lt;/a&gt;&lt;div&gt;&lt;a&gt; leaving them naked.</p>
<p dir="auto">There is no style applied to the outer anchor &lt;/a&gt;&lt;a&gt; but there is style applied to the wrapped &lt;div&gt; and it is this styling that appears to be missing.</p>
<p dir="auto">The HTML and CSS pass validation on W3C with no warnings.</p>
<p dir="auto">Any ideas?</p>
<p dir="auto">Mike&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</p>
]]></description><link>https://forums.opera.com/topic/23575/does-an-anchor-a-around-a-block-level-div-work-with-css-styling-as-expected</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 02:25:38 GMT</lastBuildDate><atom:link href="https://forums.opera.com/topic/23575.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Nov 2017 00:42:50 GMT</pubDate><ttl>60</ttl></channel></rss>