On 5 Jun 2011, at 21:33, Martin <mhe...@gmail.com> wrote:

> Hi there.
> 
> I know it's not strictly css, but perhaps some kind person will help me with 
> this small problem.
> 
> <div class="columns">
> <a href="training.php">
> <h6>Training</h6>
> <p>blah blah blah.</p>
> </a>
> </div>
> 
> I get the error:
> document type does not allow element "h6" here; missing one of "object", 
> "ins", "del", "map", "button" start-tag
> 
> Is there any workaround so that the whole block of text, ie. h6 + p was a 
> link?

Strictly speaking, no: in HTML 4, a link may not contain a block-level element. 
Note that there's a subtle, but significant, difference between a block-level 
element and an element with the CSS style "display: block".

In html5, however, the above markup would be valid.

- bobby
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to