Reputation: 9152
I have a small problem here. I have a Div and I would like the text to float either side in the centre.
I include a screenshot of it presently and how I would like it to look does anyone have any idea if this is achievable or do I need to make it an actual image?
JS Fiddle >> http://jsfiddle.net/DU4u4/
Upvotes: 1
Views: 65
Reputation: 1336
Hope, this is something you need...
Check DEMO
HTML
<div id="socialConnect">
<div class="fbConnect">Follow us on</div>
<div class="twitterConnect">OR</div>
</div>
CSS
.fbConnect{
background-image:url('http://www.seedaneed.com/images/fb_btn.png');
background-repeat:no-repeat;
background-position:right;
height:32px;
width:125px;
float:left;
padding-top:10px;
}
.twitterConnect{
background-image:url('http://www.boson.com/images/twitter-button.jpg');
background-repeat:no-repeat;
background-position:right;
height:32px;
width:60px;
float:left;
padding-top:10px;
padding-left:5px;
text-align:left;
}
Upvotes: 1
Reputation: 32172
..........................................
Now used to line-height
for this
Upvotes: 2