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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Align text worpdress

    Hi everyone !

    I am very new at any form of coding and I have been working in a Wordpress theme. I am trying to align my "Contact" text with the rest of the text on the left.

    Align text worpdress-screen-shot-2012-05-27-1.29.44-pm.png

    Here is my code :

    <aside id="text-3" class="widget widget_text col-3">
    <h2 class="widget-title">
    <cufon class="cufon cufon-canvas" alt="contact" style="width: 81px; height: 18px;">
    </h2>
    <div class="textwidget">
    <aside id="text-2" class="widget widget_text col-3">
    <h2 class="widget-title">
    <div class="textwidget">
    <div>
    <img style="float: left;" src="http://beta.ait-themes.com/magazine/wp-content/uploads/home.png" alt="home">
    <p style="margin-bottom:10px; margin-left: 30px; ">550 Rue du Parc #120 Saint-Eustache, QC J7R 7G6</p>
    </div>
    <div style="margin-bottom:10px;">
    <img style="float: left;" src="http://beta.ait-themes.com/magazine/wp-content/uploads/mail.png" alt="email">
    <span style="margin-left: 9px;">
    <a href="mailto:info@allardfitness.com">info@allardfitness.com</a>
    </span>
    </div>
    <div>
    <img style="float: left;" src="http://beta.ait-themes.com/magazine/wp-content/uploads/phone.png" alt="phone">
    <span style="margin-left: 9px;">514-248-4540</span>
    </div>
    </div>
    </aside>
    </div>
    </aside>

    How can I align my "Contact" part with the rest of the text on the left ??

    Thanks for your time

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Posts
    165
    Thanks
    1
    Thanked 39 Times in 39 Posts
    I'm not sure quite what you are asking. Did you want the Contact info to appear under the Twitter header? Or under the Recent Article header? Or somwhere else. It appears the theme you are using is a 3-column layout, so the Contact is simply the 3rd column and the info beneath it is, in fact, left aligned.

    I apologize if I've misunderstood your question. If you can clarify, I'd be happy to help

  • #3
    New Coder
    Join Date
    Nov 2010
    Location
    Virginia,USA
    Posts
    36
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Well some of your code is jacked. Your 2nd H2 tag isnt closed and none of your image tags are. Wonder why WordPress does that? I dont think either one of those thing have anything to do with your alignment issue. But I would at the very least close the H2 tag. It could fix it.


  •  

    Posting Permissions

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