Public Voice Network
- Pic of the Day 5937259372
- Shit QBNers Say 122122
- intern -> job 2121
- Your Last Concert 375375
- the gif animation thread 1132211322
- blog 5557855578
- Steve Jobs FBI file 66
- Shit QBNers think 6969
- What are you listening to… 41734173
- Park Slope 22
- The Elder Scrolls V: Skyr… 7676
- Vid of the Day 1096010960
- ♥ Things girls like ♥ 9696
- AE shadows won't work 99
- Suggest a good movie... 935935
- Politics 1759717597
- Chick of the Day 1431414314
- Skateboarding. 598598
- TYPO San Francisco 44
- Shit Photographers Say 44
- Trailer Of The Day 388388
- Skillz of the day 2121
- Smart Phone #2 88
- Show some recent work 47664766
HTML Curses!! 1212 Responses
Last post: 2 years ago | Thread started: Jan 24, 10, 2:23 p.m.
- janne76
So how would i put block level elements inside inline level elements without being arrested by the W3C police and get 20 years to life?
I just want to make some boxes to be covered entirely by one and the same <a> tag.
is this possible? workaround? hax0rs?
thanks.
- Jan 24, 10, 2:23 p.m. – Permalink
- bigtrickagain
don't use an <a> tag - use an onclick event on a <div> instead?

- Dog-earJan 24, 10, 2:24 p.m. – Permalink
- bigtrickagain
ok i'm not sure that putting block elements inside an <a> tag will make your page not validate. if you want block things inside an <a>, why don't you make the <a> with display:block? that should be consistent across browsers, and as far as i know does pass validation.


- Dog-earJan 24, 10, 2:46 p.m. – Permalink
- alicetheblue
block levels can't live inside inline elements - so I've learned :(
(isn't <a> an inline element, too?)

- Dog-earJan 24, 10, 2:52 p.m. – Permalink
- bigtrickagain
oh booo i guess you're right.
well, use spans instead of divs, and override the span's display with display:block in the css then - that seems to validate when i try it out.

- Dog-earJan 24, 10, 3:24 p.m. – Permalink
- bigtrickagain
like this:
http://lithegiant.com/temp/janne…

- Dog-earJan 24, 10, 3:26 p.m. – Permalink
- bigtrickagain
(:


- Dog-earJan 24, 10, 3:47 p.m. – Permalink


