Log message #4101770

# At Username Text
# Dec 7th 2017, 11:06 neon1024 Things which are not inline
# Dec 7th 2017, 11:06 hmic besides, what elements are block level in html5 at all? :D
# Dec 7th 2017, 11:05 hmic makes sense, as it's an arbitrary limitation and html5 is way more relaxed than the strict xhtml...
# Dec 7th 2017, 11:05 neon1024 Well it seems that putting block level elements into an a tag is invalid in XHTML, but is valid in HTML5
# Dec 7th 2017, 11:04 neon1024 http://html5doctor.com/block-level-links-in-html-5/
# Dec 7th 2017, 11:03 saeideng good by
# Dec 7th 2017, 11:03 saeideng lunch time :slightly_smiling_face:
# Dec 7th 2017, 11:02 saeideng what this say?
# Dec 7th 2017, 11:01 neon1024 https://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_a.content
# Dec 7th 2017, 11:00 saeideng I'll try to use span here at this time
# Dec 7th 2017, 11:00 dereuromark doesnt make it any better
# Dec 7th 2017, 11:00 saeideng I use this just for admin area :)
# Dec 7th 2017, 10:59 dereuromark also will invalidate in any html spec checker
# Dec 7th 2017, 10:59 dereuromark it might work, but it is not valid according to specs and might not work in all browsers for that reason, or break at any point in time. do it as you should and you have less to wry
# Dec 7th 2017, 10:58 dereuromark its not about what you can do, but what you should do
# Dec 7th 2017, 10:58 saeideng both have btn class
# Dec 7th 2017, 10:58 dereuromark seideng: you are missing my pont
# Dec 7th 2017, 10:58 saeideng right is button , left is <a .. > <div .. > </a>
# Dec 7th 2017, 10:57 dereuromark even "a" can, as I just explained :slightly_smiling_face:
# Dec 7th 2017, 10:57 saeideng File uploaded https://cakesf.slack.com/files/U51A5M2DS/F8AD7H4G0/btn-bootstrap.png / https://slack-files.com/T053DPNCM-F8AD7H4G0-2c324ec373
# Dec 7th 2017, 10:56 joopm works like a charm
# Dec 7th 2017, 10:56 joopm thank youuu ['class' => 'button success']
# Dec 7th 2017, 10:55 saeideng I'm not sure span can receive btn class or no
# Dec 7th 2017, 10:54 dereuromark thats why people use span here then
# Dec 7th 2017, 10:54 dereuromark but it is still invalid to have block elements inside inline ones according to specs afaik
# Dec 7th 2017, 10:54 saeideng this works for me
# Dec 7th 2017, 10:53 dereuromark I would rather go with the recommended style approach I mentioned above.
# Dec 7th 2017, 10:53 dereuromark is div even allowed inside a? i dont think so
# Dec 7th 2017, 10:53 saeideng ``` <?= $this->Html->link('<div class="btn btn-warning">back</div>', ['action'=>'index'],['escape'=>false]); ?> ``` my code
# Dec 7th 2017, 10:51 saeideng just dont use `<button ... >` for links
# Dec 7th 2017, 10:50 dereuromark actually class "btn" I think.. or with foundation: e.g. echo $this->Html->link('Preview', ['action' => 'preview'], ['class' => 'button success']);
# Dec 7th 2017, 10:48 dereuromark if you use bootstrap it is rather easy. Html->link() with class=>'button'
# Dec 7th 2017, 10:47 joopm can i do that just in cake?or shoul i style the link?
# Dec 7th 2017, 10:47 joopm so basicly what just link has but has button style
# Dec 7th 2017, 10:47 joopm but without submit
# Dec 7th 2017, 10:46 joopm i need a button with link(controller and action)
# Dec 7th 2017, 10:46 joopm i have a little issue
# Dec 7th 2017, 10:46 joopm have a great day to all community members
# Dec 7th 2017, 10:46 joopm hello there
# Dec 7th 2017, 10:41 skor ok solved it :grinning: nvm
# Dec 7th 2017, 10:38 kryptonita @dereuromark thanks