mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
bab1d09d92
Make the existing algorithm recursive, accounting for boxes which contain line boxes indirectly. Fixes some button alignment issues on Wikipedia.
25 lines
No EOL
424 B
HTML
25 lines
No EOL
424 B
HTML
<style>
|
|
.ib {
|
|
display: inline-block;
|
|
}
|
|
|
|
.label {
|
|
display: inline-block;
|
|
border: 1px solid black;
|
|
font-size: 20px;
|
|
}
|
|
|
|
button {
|
|
display: inline-block;
|
|
border: 1px solid black;
|
|
background-color: transparent;
|
|
font-size: 40px;
|
|
}
|
|
</style>
|
|
|
|
<div class="ib">
|
|
<div class="label">A</div>
|
|
<button>
|
|
<div>B</div>
|
|
</button>
|
|
</div> |