AnsweredAssumed Answered

Anchor a div?

Question asked by Debra Mansperger on Aug 7, 2018
Latest reply on Aug 18, 2018 by Adam Craik

Inspired by Tom Gibbons course on HTML I am trying to come up with a grid based home page for my courses.  He, very smartly, uses graphics files to layout his grid and anchors them to course content.  I'm too lazy to write all the 'alt' content so I decided to try and use flexbox grid classes from the styleguide.  I've gotten to the point where I like my layout and now I'm trying to anchor each item to a page in my course.  Here's the layout:

Home page grid layout

I haven't set it to the home page yet - I'm still playing with it.

The top box has been anchored - or rather, the text is anchored.  I would really like the whole div that contains it to be an active link, but every time I try to wrap an "<a>" tag around the div, the code gets stripped when I save it. :-(

 

Here's the code for the top box.  Any ideas on how to make the whole 'div' a link?

 

 

code to make responsive grid box

 

Or should I just use gifs and anchor them?

Outcomes