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

x
?
Solved

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

Posted on 2013-11-06
3
Medium Priority
?
518 Views
Last Modified: 2013-11-08
Hi
http://new.uffnorge.org/
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="http://www.facebook.dk">
<img border="0" src="http://new.uffnorge.org/modules/mod_acymailing/icons/facebook.png" width="32" height="32" align="right"></a>
<a href="http://www.twitter.com">
<img border="0" src="http://new.uffnorge.org/modules/mod_acymailing/icons/twitter.png" width="32" height="32" align="right"></a>
<a href="http://www.youtube.com">
<img border="0" src="http://new.uffnorge.org/modules/mod_acymailing/icons/youtube.png" width="32" height="32" align="right"></a>
<a href="http://www.linkedin.com">
<img border="0" src="http://.new.uffnorge.org/modules/mod_acymailing/icons/linkedin.png" width="32" height="32" align="right"></a></p>
</div>

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
0
Comment
Question by:morten444
[X]
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
3 Comments
 
LVL 7

Accepted Solution

by:
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;
width:200px;
}

.sexythumb {
width:35px;
height:35px;
float:left;
}

Open in new window

0
 

Author Closing Comment

by:morten444
ID: 39628738
Thanks alot :)
Regards
0
 
LVL 7

Expert Comment

by:rgranlund
ID: 39634052
Rock on!
0

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