Changing a list's icon's size and position

Hi there!
I have been trying to follow this tutorial to add social media icons to my site:
http://www.webtutorialplus.com/elegant-social-media-menu-with-css/
I have managed to do this, however am now trying to rearrange it (I think its in a list format), so that the icons are vertically aligned, rather than horizontally.
I am also trying to change the size of them, preferably so that they resize according to the fluid grid layout that I am using.
HTML:
<div class="social">
          <ul>
                    <li><a href="#" title=""><span class="icon"><i aria-hidden="true" class="icon-facebook">
                    </i></span><span>Like</span> </a></li>
                    <li><a href="#" title=""><span class="icon"><i aria-hidden="true" class="icon-twitter">
                    </i></span><span>Follow</span></a> </li>
                    <li><a href="#" title=""><span class="icon"><i aria-hidden="true" class="icon-mail">
                    </i></span><span>Email</span></a> </li>
          </ul>
</div>
CSS:
.social
          width: 480px;
          margin-top: 60px;
          margin-right: auto;
          margin-bottom: 60px;
          margin-left: auto;
.social ul
    padding: 0;
    list-style: none;
    font-size: 16px;
.social li
    float: left;
    width: 60px;
    text-align: center;
.social li span
    display: block;
.social a
    display: block;
    color: #ffffff;
    text-decoration: none;
    -moz-transition: .3s;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
.social ul:hover a
    color: rgba(255, 255, 255, 0.6);
.social ul:hover a:hover
    color: #ffffff;
.social li:nth-child(1) i
    background: rgb(59, 89, 152);
    box-shadow: 0 0 0 0 rgba(59, 89, 152,0.6);
.social li:nth-child(2) i
    background: rgb(0, 172, 238);
    box-shadow: 0 0 0 0 rgba(0, 172, 238, 0.6);
.social li:nth-child(3) i
    background: rgb(210, 64, 46);
    box-shadow: 0 0 0 0 rgba(210, 64, 46,0.6);
.social i
    position: relative;
    display: inline-block;
    margin: 0 auto;
    padding: 12px;
    border-radius: 50%;
    font-size: 30px;
    transition: box-shadow .4s ease-in-out;
    -moz-transition: box-shadow .4s ease-in-out;
    -webkit-transition: box-shadow .4s ease-in-out;
    -o-transition: box-shadow .4s ease-in-out;
.social a:hover i, .social a:active i
    box-shadow: 0 0 0 25px transparent;
.social .icon + span
    margin-top: 20px;
    opacity: 0;
    -webkit-transition: all 500ms cubic-bezier(1.000, 0.000, 1.000, 0.650);
    -moz-transition: all 500ms cubic-bezier(1.000, 0.000, 1.000, 0.650);
    -ms-transition: all 500ms cubic-bezier(1.000, 0.000, 1.000, 0.650);
    -o-transition: all 500ms cubic-bezier(1.000, 0.000, 1.000, 0.650);
    transition: all 500ms cubic-bezier(1.000, 0.000, 1.000, 0.650);
.social a:hover span, .social a:active span
    opacity: 1;
/* ICOMOON Starts Here */
@font-face {
          font-family: 'icomoon';
          src:url('fonts/icomoon.eot');
          src:url('fonts/icomoon.eot?#iefix') format('embedded-opentype'),
                    url('fonts/icomoon.woff') format('woff'),
                    url('fonts/icomoon.ttf') format('truetype'),
                    url('fonts/icomoon.svg#icomoon') format('svg');
          font-weight: normal;
          font-style: normal;
/* Use the following CSS code if you want to use data attributes for inserting your icons */
[data-icon]:before {
          font-family: 'icomoon';
          content: attr(data-icon);
          speak: none;
          font-weight: normal;
          font-variant: normal;
          text-transform: none;
          line-height: 1;
          -webkit-font-smoothing: antialiased;
/* Use the following CSS code if you want to have a class per icon */
Instead of a list of all class selectors,
you can use the generic selector below, but it's slower:
[class*="icon-"] {
.icon-mail, .icon-facebook, .icon-twitter {
          font-family: 'icomoon';
          speak: none;
          font-style: normal;
          font-weight: normal;
          font-variant: normal;
          text-transform: none;
          line-height: 1;
          -webkit-font-smoothing: antialiased;
.icon-mail:before {
          content: "\e000";
.icon-facebook:before {
          content: "\e001";
.icon-twitter:before {
          content: "\e002";
Many thanks
Max

Many thanks for your help Nancy. That works well.
Do you know how to change the size of the icons, I have been trying everything!
Many thanks
Max

Similar Messages

  • Can you change the units used for size and position in layout editor?

    Hello,
    In Aperture 3.4, does anyone know if you can change the units used for size and position in layout editor?  The page is set in inches, but the image size and position are given in centimetres and I would prefer to work all in inches to create custom layouts.  I can't see any way to change this.  If anyone knows how it would be much appreciated.  Thanks!

    Aperture uses the unit settings defined in the System Preferences.  Set the "Measurement Units" in the "Region" tab of the "Language & Text" preferences to "US"; the Aperture will display the Size & Position in inches, if it is the "Book" layout manager you are asking about.
    Merry Christmas!
    Léonie

  • [svn:osmf:] 10017: Adding a style sheet, adding a backdrop to the examples list, adding icons to play and pause icons.

    Revision: 10017
    Author:   [email protected]
    Date:     2009-09-04 06:43:44 -0700 (Fri, 04 Sep 2009)
    Log Message:
    Adding a style sheet, adding a backdrop to the examples list, adding icons to play and pause icons. Setting theme color to red.
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/ExamplePlayer.mxml
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/openvideoplayer/view/MainWindowLayout .mxml
    Added Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/ExamplePlayer.css
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/assets.swf

    Revision: 10017
    Author:   [email protected]
    Date:     2009-09-04 06:43:44 -0700 (Fri, 04 Sep 2009)
    Log Message:
    Adding a style sheet, adding a backdrop to the examples list, adding icons to play and pause icons. Setting theme color to red.
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/ExamplePlayer.mxml
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/openvideoplayer/view/MainWindowLayout .mxml
    Added Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/ExamplePlayer.css
        osmf/trunk/apps/samples/framework/ExamplePlayer/assets/assets.swf

  • How to change size and position of default TOC

    Is it possible to change the width, height and position of the default TOC menu in Captivate 6? 
    Currently the default TOC menu goes from the top of the window to the bottom.  In order to fit better with the graphic UI we are using for the course it would be better if the TOC could be positioned about 40px from the top of the window and end about 50px short of the bottom. I can find no way to change the size and position of the TOC from within Captivate.
    I have tried changing the CSS stylesheet for the HTML version and that will work but it does not work for the SWF version.
    Thanks,
    Richard

    Hi Rod,
    I am hoping that you are still following this thread.  I have a client who really wants to be able to changes the size and position of the default TOC and you mentioned that it would require extensive AS3 coding. I am hoping that you can give me some idea of where the AS3 files are located that I would need to take a look at.  I am working on a Mac using OSX 10.7
    Thanks,
    Richard

  • Software to restore apps window size and position after change in screen resolution

    I use a 27' iMac'10 with SL 10.6.8, running it at 2560x1440 screen resolution.
    Whenever I have to attend meetings via GoToMeeting or Webex and need to present, the resolution is too high, since most participants are on 15' laptops or even iPad's these days.  Therefore, I reset the screen resolution to 1600x900 for the time of the presentation.
    After the meeting is over, I reset the resolution back to 2560x1440.
    Problem: After the reset, all my apps are scaled and out of place, so I need to manually reset them to their original sizes and positions.  I use Divvy to make this a bit less painful, but still it's a manual chore.
    Is there any software out there that let's me restore my windows to the exact settings they were the last time before I changed screen resolution?

    I agree, the ability to remember window sizes and positions when switching between laptop and using the Thunderbolt display would be very useful.  It's like your Mac remembering the volume level depending on whether you have headphones plugged in or not.

  • Object Size and Position values not being retained

    Hi,
           I'm trying to set the size and position of a picture object in a report. This logo, should appear on the top right corner of the report.
    The margins of the report are Left - .79 in, Right - 0.79 in, Top - 0.79 in and Bottom - 0.39 in.
    The size of the picture object should be 1.574 x 0.79 inches.
    I have ensured that File -> Page Setup -> dimensions are in INCHES.
    I right click the logo and select 'Size and Position'.
    I set 'Y' (distance between top of object and top margin) = 0. This is to perfectly align the object with the top margin.
    Now, i set the height of the object = 0.79 inches. Ok the dialog and close.
    The strange thing happening is, when i re-open the size and position dialog, i see that the values i set are not being retained.
    0.79 becomes 0.810
    and
    0 become -0.010.
    What am i doing wrong here? How can i make sure the values i specify in the size and position dialog are  retained.
    Thanks.

    Ensure File | Options | Layout tab has the following UNMARKED!!!!
    Design View
      Guidelines
      Grid
    Preview
      Guidelines
      Grid
    Ensure that "Snap to Grid" is turned off.
    Make your grid size larger (.5 inches for example)
    What is occurring (I suspect) is that your objects are snapping to the grid - thus changing the position and possibly size due to the Snap to Grid being turned on.

  • Aarrrghh - can't find image size and position in captivate 8!

    I was using Captivate 8 and it was under a tab in properties (don't remember the name of the "sub-tab").
    Now, I'm using a newly downloaded version and cannot find size and position (x, y, width, length, etc.).
    This should NOT be so hard
    Any suggestions?

    Totally agree, don't like the UI change neither. One of the reasons I'm happy to know all moving and resizing shortcuts by heart, they still work in CP8. But wouldn't it be wonderful to have rulers?
    Shortcut Keys: Moving and Resizing Objects - Captivate blog
    It is not as simple neither, because it is in a different location for a normal and for a responsive project.
    For the normal project it is under the Options tab, for responsive projects you need the Position panel, both for Size and Location.

  • [GeForceFX] WDM video capture image size and position

    Hello to all.
    When I do video capture with my MSI FX5900-VTD128, the picture is not centered correctly and not at the right size either.
    Let's take for example that I want to record TLC. I always get a black vertical bar on the left side of the capture video and the TLC watermark is also missing on the screen. In other words, if I could move video capture screen to the left, I would regain the full video frame.
    One of my friend has a different video capture card and he is able to correct the screen size and position. Is this possible with my video card ???
    I have a lot of shaded options in my nVidia WDM setup. Things that I cannot change. Any clue on how I can resize my capture video and how to eneble shaded option ???
    Thanks !

    Man... I have VHS tapes that I want to put on DVD... It reallly does not work... It looks like if the image was zoomed in and a little bit to much on the left... 
    Does someone know if it is possible to adjust zoom level and image centering on the nVidia WDM capture video screen ???
    Need some help here ! 

  • Size and position of Finder Window at reboot

    I realize this issue has been covered, but I haven't been able to find and answer to my specific problem. Recently I have noticed that when I reboot my MacBook(10.6.8) the Finder Window opens in its default size and position.  I set the size and position as required and it maintains that setting until I shut down. The next time I boot up the same thing happens, finder window is back to the default setting.  All other settings(view etc) are OK, it's just the size/position that doesn't hold at shutdown. This is becoming a real nuisance and I would like to find a fix if possible.  I have trashed the finder.plist and that doesn't work.  Also tried some of the listed possible cures, to no avail.  Does anyone have a fix for this problem?
    Thanks in advance for any and all suggestions.

    I have been searching the internet for more information and it appears that others have been faced with this problem.
    I have found a couple of possible answers but I am not sure how to do them.
    http://forums.macosxhints.com/showthread.php?t=64059
    http://forums.macrumors.com/archive/index.php/t-119915.html
    The first link seems more relavent but I am not sure how to do what it is talking about.
    Can anyone help?
    I have recently moved from a PC to MAC and this problem is really getting in the way of my work.

  • Size and position of Safari windows

    I don't think anyone's noticed the problem discussed at the end of a thread, outlined here:
    K H N Lim, "Enlarge Window Size" #3, 01:44pm Jul 28, 2005 CDT
    It's a problem a lot of people (okay, four of us) are having. Quick summary:
    "I launch Safari, resize the window and position it at the upper lefthand corner. Quit Safari and relaunch. Initially the window stays put, but after a while, the position shifts. And keeps shifting more and more toward the right of the screen with each subsequent launch."
    I've had the same problem and it makes it hard to switch from one app to another, with Safari shifting all over the screen and refusing to remember how it was positioned from launch to launch. Any ideas what's up?

    I used to be bugged by this too. Then I saw a message from someone who suggested the following applescript (with changes to coords to match your screen size and position you want). Mine is set for 1600 x 1024 resolution on my 22" cinema display. The coords are for top left corner and bottom right corner of the Safari window.
    Make a new bookmark, i.e. press COMMAND-D
    Specify that it should go in the bookmarks bar.
    Go to the bookmarks screen in Safari.
    Find the bookmark.
    Select the name (left side) and edit it to something like Window Position.
    Select the URL (right side) and paste in (without the quotes)
    "javascript:self.moveTo(190,0);self.resizeTo(1150,995)"
    Close the bookmarks window/screen.
    Click on "Window Position" in the bookmarks bar and the window will resize to specified size and position.

  • Restoring the window size and position of Disk Utility

    I took my mac-mini to a memory upgrade this afternoon, and the guy, who was testing the new configuration of my mini, started, and changed the size of the disk utility window. I hate so much if someone tweaks my personal stuff/setting in their image so much, that I could explode! How can I restore it to the default size and position? I cannot find anything about this on the net, and this is the only setting, I could not restore.

    I'm sorry, ignore that Applescript Snippet, use this one instead (make sure to open disk utility before you run it!):
    tell application "System Events"
              tell process "Disk Utility"
                        set theSize to size of window 1
                        set theNiceSize to (item 1 of theSize) & "x" & (item 2 of theSize) as string
      display dialog theNiceSize
              end tell
    end tell

  • Locking Chart Size and Position

    I have a document that contains multiple workspaces with 2 charts on every page. I can scroll through each chart and the data changes when I do so. I have set width, lenth, and position sizes and once I set them and go through a few more, when I go back, the sizes and positions have changed/adjusted on their own to numbers I didn't set.
    Why is this?
    How can I lock size and position?

    "Workspace" is not a Numbers term that I am familiar with. Do you mean "Sheet"? You say you are using Numbers for OSX, but what you are describing sounds like an iWork for iOS complaint.
    Sorry, but I don't have enough information to go on to make a suggestion.
    Jerry

  • Can Frame remember size and position of window when it is reopened?

    When I re-open the chapters in a book, I want each to open with the same size and position it had when it closed. Frame seems to randomly pick a size and location for each window. In a big book, I can end up with chapters strewn all over. Some are huge, some are small, and they overlap each other.
    An exception is chapters that were minimized the last time they were saved, in which case they re-open minimized, which is good behavior.
    Any way to tell Frame to remember where the window was last time I was using it?
    I'm using FrameMaker 8.0p277, unstructured.

    FWIW, I keep the .book file open on the side of the screen and use it to select a chapter to work on. The other chapters are kept minimized. I've found that this is the most efficient way to work and I can bounce between chapters quickly. So I guess I'm using the .book file like the "list of all open files" you mention.
    In FM 8, you can see a list of all open files by clicking Windows>More Windows. That shows a list of everything. The biggest problem with that is that it's not in any order that I can discern. If it were in alphabetical order or in the same order as the chapters of my book, it would be more useful.
    When I double-click on the name of a chapter, it opens in what seems to be almost a random size and position, which is the cause of my original post.
    Thanks,
    Cheryl

  • InDesign forgets window size and position when opening

    PC with Windows 7, CS 2014.
    I set up Illustrator so that it does not open full screen (I have a 27" monitor) so that I can have panels permanently open around the edges. Close Illustrator and re-open it and it remembers the last set window position.
    InDesign remembers the position of the open panels but opens the main window full screen every time, and it's really annoying having to resize and reposition the main window every time I load InDesign.
    I upgraded from an earlier version of Adobe CS and that older version of InDesign remembered the window size and position. Why did this change?
    Can this be fixed please?

    From the InDesign top menu have you tried going to Window/Application Frame to put the application in it's own resizable frame? That will hold the window to the same size each time you open an InDesign file.

  • Cells size and position; Can they have parameters ?

    Hello,
    Currently I have an Object
    Start Date: 1 Jan 2008
    End Date: 30 feb 2008
    I want to set-up:
    - the position of the cell depending the start date
    - the wide of the cell depending the duration
    I'm working on Crystal Report XI R2
    Thanks in advance.
    Alex

    HI Alex
    Mentioned below are the stepsto conditionally change the X position of an object
    1. Right-click the field that you want to move conditionally, and select Size
    and Position.
    2. Click the Conditional Formula button next to the X position value field.
    3. In the Formula Workshop, enter your conditional X position formula text.
    For example, to move orders that were shipped late to a second column,
    enter formula text such as this:
    If (Orders.Ship Date) < CDateTime (2004, 01, 01, 02, 10,
    11) then 4320
    Note: The number 4320 represents the new position that you want to
    define as the second column. The position is measured in twips; there
    are 1440 twips in an inch.
    4. Click Save and close to return to your report.
    5. Click OK to save your position setting.
    Crystal Reports moves objects that meet your condition to a new position, but
    leaves those objects that donu2019t meet the condition where you originally placed
    them.
    Hope it will be helpful to you.
    Regards
    Asha

Maybe you are looking for