Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

792 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