Solved

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

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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

617 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