Title: Cannot apply styling
Last modified: August 30, 2016

---

# Cannot apply styling

 *  Resolved [darrepac](https://wordpress.org/support/users/darrepac/)
 * (@darrepac)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-apply-styling/)
 * Hi,
 * I am trying to apply some styling inside the widget. Basically I am trying to
   display a small left-aligned text and a right-aligned custom field. I cannot 
   make it right aligned!
    I tried the following (and tons of other things) without
   success:
 * echo “<b>Small left-aligned text:</b>”;
    echo “<span style=”float:right”>”; echo
   get_post_meta($postid, $MyKey, true).”</span>“;
 * thanks for your support
 * [https://wordpress.org/plugins/php-code-widget/](https://wordpress.org/plugins/php-code-widget/)

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

 *  Thread Starter [darrepac](https://wordpress.org/support/users/darrepac/)
 * (@darrepac)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-apply-styling/#post-6484837)
 * Issue was with the quotes:
    echo “<span style=\”float:right\”>”;
 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-apply-styling/#post-6484876)
 * Heh. Yeah. You can use single quotes on plain strings too.

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

The topic ‘Cannot apply styling’ is closed to new replies.

 * ![](https://ps.w.org/php-code-widget/assets/icon.svg?rev=992095)
 * [PHP Code Widget](https://wordpress.org/plugins/php-code-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-widget/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-apply-styling/#post-6484876)
 * Status: resolved