Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 how to dynamically set the form action using jQuery.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now