Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


CSS: align social icons one one line, not under each other

Posted on 2013-11-06
Medium Priority
Last Modified: 2013-11-08
Look at bottom right corner
There are some social icons

If i open this PHP page that control that module "Acymailing" in Frontpage 2003, the icons are alligned correctly.
It also worked on this page before, but have no idea why its not working anymore

I have added 2 tings:

In the php file for the module i added:
<div class="icons" >
<p align="center"><a href="">
<img border="0" src="" width="32" height="32" align="right"></a>
<a href="">
<img border="0" src="" width="32" height="32" align="right"></a>
<a href="">
<img border="0" src="" width="32" height="32" align="right"></a>
<a href="">
<img border="0" src="" width="32" height="32" align="right"></a></p>

Open in new window

Then in the template.css file i added:
.icons {
    padding-right: 49px;
    padding-top: 31px;

Open in new window

It has worked and I have not changed anything,so there has to be something else causing them to align under eachother instead of on one line

Anyone have an idea?
Kind Regards
Question by:morten444
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

rgranlund earned 2000 total points
ID: 39628729
Set the icons width.  Then set the height and width of sexythumb and float left.  Then yoiu should be cool.
.icons {
    padding-right: 49px;
    padding-top: 31px;

.sexythumb {

Open in new window


Author Closing Comment

ID: 39628738
Thanks alot :)

Expert Comment

ID: 39634052
Rock on!

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This article discusses how to implement server side field validation and display customized error messages to the client.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question