I'm having a small problem with positioning.


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 {
positionabsolute;
    
floatright;
    
top: -8px;
    
right11px;
}

#headsocial li{
    
display:inline;
}

        
#headsocial img { 
        
floatright;
        
margin-left11px;
        -
webkit-transitionall .1s;
        -
moz-transitionall .1s;
        -
o-transitionall .1s;
        
transitionall .1s;
        }
                    
                    
                        
#headsocial img:hover {
                            
-webkit-border-radius13px;
                            -
moz-border-radius13px;
                            -
o-border-radius13px;
                            
border-radius13px;
                        }


, 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

Comments

Popular posts from this blog

Mac OS X Server as File Server for 50/50 Mac & PC Workgroup

Permissions Problem?

iPhone won't sync with iTunes