Solved

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

Posted on 2013-11-06
3
501 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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

752 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