html ul overflow,html - Trouble with ul overflow - Stack Overflow

Here's the problem. I have one haml page with a list that looks like this: PQ3gp.png

It's a list with elements formed by a div (left side) and an ul of buttons (right side). Here's the summarized code:

%li.rutinas-li{style: "overflow:visible"}

%div{ style: "display: inline-block;" }

= link_to ...

...

%br

%p ...

%br

%span

= ...

.thumbs-container

=link_to ...

= icon('thumbs-up', ...)

%strong ...

.thumbs-container

=link_to ...

= icon('thumbs-down', ...)

%strong ...

.thumbs-container

=link_to ...

= icon('star', ...)

%ul.pull-right.without-bullets.no-padding

%li.inline-block= link_to ...

%li.inline-block= link_to ...

%li.inline-block= link_to ...

%li.inline-block.dropdown

%a.dropdown-toggle{"data-toggle": "dropdown", type: "button"}

= icon('share-alt', ...)

%ul.dropdown-menu{style: "min-width:0"}

%li{style: "padding: 15px"}

= link_to ...

= icon('envelope', ...}

%li{style: "padding: 15px"}

= link_to ...

= icon('twitter', ...")

%li{style: "padding: 15px;"}

= link_to ...

= icon('facebook', ...)

I need the line 1 {style: "overflow:visible"} because the last ul is a dropdown that looks like this:

haePF.png

And if I remove it the dropdown is cropped. However, this css property causes also that when the screen is smaller ( a mobile phone, for example), the list is displayed like this:

qricp.png

And I would like it like this instead:

XPgWV.png

As the overflow is permitted, the list of buttons on the right are overflowing the parent and his white separators, it is kind of ugly. But if I remove {style: "overflow:visible"} the dropdown won't be visible when I click on it

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值