最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Change Linkedin Company Profile plugin Width - Stack Overflow

programmeradmin5浏览0评论

I have been trying to figure out how to change the size of the Linkedin Company Profile width which we can create here. They will give you two script tag which will create the widget for you in your site. Nothing else. So you have no control over your css.

I had been struggling for days and finally figured it out. I tried to add inline styling on the site even with the !important tag but it still took the styles from the linkedin.css. I tried styling it every possible way but didn't work.

Since SO allows to share knowledge as Q&A format I thought of sharing this. Please see the answer below.

I have been trying to figure out how to change the size of the Linkedin Company Profile width which we can create here. They will give you two script tag which will create the widget for you in your site. Nothing else. So you have no control over your css.

I had been struggling for days and finally figured it out. I tried to add inline styling on the site even with the !important tag but it still took the styles from the linkedin.css. I tried styling it every possible way but didn't work.

Since SO allows to share knowledge as Q&A format I thought of sharing this. Please see the answer below.

Share Improve this question edited Feb 14, 2013 at 5:35 Techie asked Feb 14, 2013 at 5:29 TechieTechie 45.1k44 gold badges163 silver badges247 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 21

Here's an example of how to provide the width to a plugin:

<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="http://www.linkedin.com/in/xxx" data-format="inline" data-width="400"></script>

You can add a data-width="400" attribute to the script tag. That's all.

发布评论

评论列表(0)

  1. 暂无评论