Title: Align coding to the left
Last modified: March 13, 2021

---

# Align coding to the left

 *  Resolved [talkingtree](https://wordpress.org/support/users/talkingtree/)
 * (@talkingtree)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/align-coding-to-the-left/)
 * Hi,
 * Making a _[ redundant link removed ]_ website and I’ve entered a Facebook code
   into the header.php, however the output is displaying the code in the centre 
   rather than the left. Perhaps it’s due to the CSS. I’ve tried to put in align
   =”left” but it didnt work. What is wrong?
 * Screenshot can be seen [HERE](https://i.imgur.com/pmiERIT.png)
 *     ```
       <!-- Facebook like inserted -->
   
       	<div id="fb-root"></div>
       <script>(function(d, s, id) {
         var js, fjs = d.getElementsByTagName(s)[0];
         if (d.getElementById(id)) return;
         js = d.createElement(s); js.id = id;
         js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2&appId=896873047023683&autoLogAppEvents=1';
         fjs.parentNode.insertBefore(js, fjs);
       }(document, 'script', 'facebook-jssdk'));</script>
   
       	<div class="fb-like" data-href="https://www.facebook.com/thatcomputerguy.tech/" data-layout="standard" data-action="like" data-size="small" data-show-faces="false" data-share="true"></div>
   
       	<!-- Facebook like ends -->
       ```
   
    -  This topic was modified 7 years, 6 months ago by [talkingtree](https://wordpress.org/support/users/talkingtree/).
    -  This topic was modified 5 years, 3 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Falign-coding-to-the-left%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [lisa](https://wordpress.org/support/users/contentiskey/)
 * (@contentiskey)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/align-coding-to-the-left/#post-10964009)
 * css resources:
    -https://css-tricks.com -https://www.w3schools.com/css/default.
   asp
 * –not sure if you are looking for “text-align”
    (if the area you are working with
   uses css grid or flex box — “align” will not likely work)
    -  This reply was modified 7 years, 6 months ago by [lisa](https://wordpress.org/support/users/contentiskey/).
    -  This reply was modified 7 years, 6 months ago by [lisa](https://wordpress.org/support/users/contentiskey/).
 *  Thread Starter [talkingtree](https://wordpress.org/support/users/talkingtree/)
 * (@talkingtree)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/align-coding-to-the-left/#post-10964029)
 * Thanks Lisa for the reply. Is there something that can overwrite the “text-align”
   on CSS?
 *  [Geoffrey Shilling](https://wordpress.org/support/users/geoffreyshilling/)
 * (@geoffreyshilling)
 * Volunteer Moderator
 * [7 years, 6 months ago](https://wordpress.org/support/topic/align-coding-to-the-left/#post-10964040)
 * What about changing the following line from your code:
    `<div class="fb-like"
   data-href="https://www.facebook.com/thatcomputerguy.tech/" data-layout="standard"
   data-action="like" data-size="small" data-show-faces="false" data-share="true"
   ></div>`
 * to something like this:
    `<div style="width: 100%; margin-top: 3px;" class="fb-
   like" data-href="https://www.facebook.com/thatcomputerguy.tech/" data-layout="
   standard" data-action="like" data-size="small" data-show-faces="false" data-share
   ="true"></div>`
    -  This reply was modified 7 years, 6 months ago by [Geoffrey Shilling](https://wordpress.org/support/users/geoffreyshilling/).
    -  This reply was modified 7 years, 6 months ago by [Geoffrey Shilling](https://wordpress.org/support/users/geoffreyshilling/).
 *  [lisa](https://wordpress.org/support/users/contentiskey/)
 * (@contentiskey)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/align-coding-to-the-left/#post-10964046)
 * I don’t know about “overwriting” but maybe margins + padding could impact too

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Align coding to the left’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 0 participants
 * Last reply from: [lisa](https://wordpress.org/support/users/contentiskey/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/align-coding-to-the-left/#post-10964046)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
