Web Analytics Made Easy -
StatCounter div or span not aligning to right - CodingForum

Announcement

Collapse
No announcement yet.

div or span not aligning to right

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • div or span not aligning to right

    i have this code for footer but span text is not aligning to right


    PHP Code:
    <div id="footer">
        
        <
    a href="" >Privacy | </a><a href="" Terms  |</a><a href="" Disclaimer  |</a><a href="" About Us  |
    </
    a><a href="" Join Mailing List | </a><a href="" Sitemap  </a>


    <
    span id="footspan ">
         
    ©     My Baby  2009 Website handcrafted by <img src="abc.png" />  </span>

        <
    br />
        
    </
    div>
    </
    div
    css is


    Code:
    #footer{
    	line-height:50px;
    	color:#FFFFFF;
    	font-size:10px;
    	background-position: center top;
    	background-repeat: no-repeat;
    	background-image: url(../../../images/shadbot.png);
    margin-left:6px;
    }
    
    
    #footspan{
    text-align:right;
    
    margin-top:500px;
    margin-left:100px;
    color:red;
    }
    
    #footer a{
    	color:#FFFFFF;
    	list-style:none ;
    	text-decoration:none;
    }
    text is just coming nect to each other . i want to align the span text on the right corner

  • #2
    Move text-align:right; from #footspan to #footer
    Digitalocean Cloud Hosting (Referral link - get $10 free credit) Fameco

    Comment


    • #3
      but i want the privacy and other link on left but only span on right

      Comment


      • #4
        Apply float:right; to your #footspan
        Digitalocean Cloud Hosting (Referral link - get $10 free credit) Fameco

        Comment

        Working...
        X