This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I get my website icons in the same row? (HTML)?
10-03-2012, 04:51 PM
Post: #2
 
<div id="Fter">
<div class="ShareBttn"><span class='st_facebook_large' ></span></div>
<div class="ShareBttn"><span class='st_twitter_large' ></span></div>
<div class="ShareBttn"><span class='st_google_large' ></span></div>
</div>

Here I have contained each button within a div and then all of those within a container div "Fter". The container div will be what you use to position the footer on the page and relative to other page content rather than each button separately. Its then easier to line them up within this div using their div class. Here is the CSS which is what controls the positioning:

#Fter {
width: 210px;
height: 50px;
border: 0;
margin: 0;
margin-left: 321px;
padding: 0;
padding-left: 50px;
position: relative;
background-color: #666;
}

.ShareBttn {
width: 40px;
height: 40px;
border: 0;
margin: 0;
padding: 0;
padding-top: 10px;
padding-left: 10px;
position: relative;
float: left; ------------- this is what actually pulls them all inline.
}

This is what you get in situ: http://www.robcampdriving.co.uk/

Ads

Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[] - Carrick - 10-03-2012 04:51 PM
[] - Mr Ed - 10-03-2012, 04:51 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)