Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Align Text

  1. #1
    New Coder
    Join Date
    Aug 2011
    Posts
    29
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Align Text

    Hey Guys, I've made a ajax page, but I want to align it to the right of my page. Here is my script.

    Code:
    <a href="javascript:ajaxpage('AssociationofGeographicInformation.html','biopic');">
             <div class="mod">
              <div class="image"><img src="img/agi.jpg" alt="AssociationforGeographicalInformation logo" /><span>Association of Geographic Information</span>
               </div>
    Any Ideas???

  • #2
    New to the CF scene
    Join Date
    Feb 2011
    Location
    Saint Petersburg
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you can mentioned in class align="right" in class="mod".


    by this you div set at right side of the page.

    think so it is working

  • #3
    Regular Coder
    Join Date
    Aug 2011
    Location
    U.S.A.
    Posts
    233
    Thanks
    2
    Thanked 48 Times in 48 Posts
    The more effective way would be to use a float:
    Code:
    .mod {
      float: right;
    }

  • #4
    New Coder
    Join Date
    Aug 2011
    Posts
    29
    Thanks
    4
    Thanked 0 Times in 0 Posts
    I've tried...

    Code:
    <a href="javascript:ajaxpage('AssociationofGeographicInformation.html','biopic');">
             <div class="mod-align="right">
              <div class="image"><img src="img/agi.jpg" alt="AssociationforGeographicalInformation logo" align="right" /><span><p style="text-align:right;">Association of Geographic Information</p></span>
               </div>
    I've attached an image to show you what has happened...

    I basicly want it to the right as a rectangle rather than it stretched :P
    Attached Thumbnails Attached Thumbnails Align Text-ukgeo-issue.jpg  


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •