开发者

Drupal Gmap Views - Popups are too big

开发者 https://www.devze.com 2023-02-14 12:25 出处:网络
I\'m using GMAP module and its views counterpart.The issue I\'m having, is I\'m using a custom text field to display fields wrapped in html that I have pulled in from the query.However, the popup, won

I'm using GMAP module and its views counterpart. The issue I'm having, is I'm using a custom text field to display fields wrapped in html that I have pulled in from the query. However, the popup, won't size correctly, it ends up being t开发者_如何学运维oo big. Here's my code for Custom Text Field:

<div id="col1">
[field_thtr_img_fid]
</div>
<div id="col2">
<h5>[title]</h5>
[address_1]
</div>

Any help would be greatly appreciated!


If you wrap the whole chunk in a div with a class then you can target that class with a width.

e.g.

<div class='foo'>
  .. YOUR HTML ..
</div>

And add this css to your page:

.foo {
  width: 75px;
}

That works for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消