I'm having a small problem with positioning.
- Get link
- X
- Other Apps
so need position list of images 5 px right , 5 px top, within area of website. don't need 5px , 5 px depending on windows with, div (width) of website..
put relative position of div , absolute on image not working.. got far> pleasse
php:#headsocial {
position: absolute;
float: right;
top: -8px;
right: 11px;
}
#headsocial li{
display:inline;
}
#headsocial img {
float: right;
margin-left: 11px;
-webkit-transition: all .1s;
-moz-transition: all .1s;
-o-transition: all .1s;
transition: all .1s;
}
#headsocial img:hover {
-webkit-border-radius: 13px;
-moz-border-radius: 13px;
-o-border-radius: 13px;
border-radius: 13px;
}
, html
php:<menu>
<ul id="headsocial">
<li>
<a href="#">
<img src="/volumes/macintosh hd 1/applications/macview/images/facebook.png" alt="facebook" class="space" id="facebook" />
</a>
</li>
<li>
<a href="#">
<img src="/volumes/macintosh hd 1/applications/macview/images/stumbleupon.png" alt="stumbleupon" />
</a>
</li>
<li>
<a href="#">
<img src="/volumes/macintosh hd 1/applications/macview/images/twitter.png" alt="twitter" />
</a>
</li>
<li>
<a href="#">
<img src="/volumes/macintosh hd 1/applications/macview/images/32x32.png" alt="googleplus" />
</a>
</li>
<li>
<a href="#">
<img src="/volumes/macintosh hd 1/applications/macview/images/feed-icon_orange-32px.png" alt="rss" />
</a>
</li>
</ul>
</menu>
an element position:absolute; positioned in relation window or parent element position attribute. if trying keep positioned inside containing div set width want site be, set div position:relative;
couple other notes:
absolute positioning not best way achieve this, using float recommended way.
if using absolute positioning float:right; isn't doing anything.
Forums Special Interests Web Design and Development
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
- Get link
- X
- Other Apps
Comments
Post a Comment