Reputation: 271
I have three shares: facebook, google, twitter. In large screens it works ok, but in small ones twitter share hides behind the limits and I would like the item to autoposition himself to another line.
The jsfiddle above will probably work perfectly cool on your screen. But imagine you have a smaller one, this is how it looks: http://quirktools.com/screenfly/#u=http%3A//jsfiddle.net/ruhnq/46/&w=1024&h=600
<table style='border: 1px solid #ccc; float: right; width: 37%; display: block'>
How can I avoid this?
Upvotes: 0
Views: 90
Reputation: 1363
Don't use tables, use divs and floats instead
.social-container{
border:1px solid #ccc;
float:right;
}
.social-item{
float:left;
}
Upvotes: 0
Reputation: 7784
Don't use tables for non tabular data.
You could wrap the buttons in a div
, and give it a width.
For example:
.test { width: 25%; border:1px solid red; }
Upvotes: 1