Title: Html widget keeps adding line breaks
Last modified: July 30, 2019

---

# Html widget keeps adding line breaks

 *  [kasoares](https://wordpress.org/support/users/kasoares/)
 * (@kasoares)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/html-widget-keeps-adding-line-breaks/)
 * Hi, folks.
 * I am having a hard time with my widgets. It doesn’t matter if I use the text 
   widget or the html widget, the problem is always the same: WordPress keeps adding
   paragraphs or line breaks between my images.
 * This is what i’m trying to do:
    [http://www.karensoarele.com.br/wp-content/uploads/2019/07/right.png](http://www.karensoarele.com.br/wp-content/uploads/2019/07/right.png)
 * This is what i’m getting:
    [http://www.karensoarele.com.br/wp-content/uploads/2019/07/wrong.png](http://www.karensoarele.com.br/wp-content/uploads/2019/07/wrong.png)
 * This is the code I am using:
    `<a href="https://www.facebook.com/karen.soarele"
   ><img src="http://www.karensoarele.com.br/wp-content/uploads/2019/02/facebook-
   icon.png" alt="Facebook" /></a><a href="http://karensoarele.com.br/youtube"><
   img src="http://www.karensoarele.com.br/wp-content/uploads/2019/02/youtube-icon.
   png" alt="Youtube" /></a><a href="https://twitter.com/karensoarele"><img src="
   http://www.karensoarele.com.br/wp-content/uploads/2019/02/twitter-icon.png" alt
   ="Twitter" /></a> <a href="https://www.instagram.com/karensoarele/"><img src="
   http://www.karensoarele.com.br/wp-content/uploads/2019/02/instagram-icon.png"
   alt="Instagram" /></a><a href="https://www.linkedin.com/in/karensoarele/"><img
   src="http://www.karensoarele.com.br/wp-content/uploads/2019/02/linkedin-icon.
   png" alt="LinkedIn" /></a><a href="https://www.skoob.com.br/autor/6399-karen-
   soarele"><img src="http://www.karensoarele.com.br/wp-content/uploads/2019/02/
   skoob-icon.png" alt="Skoob" /></a>`
 * Any ideas on how to solve this?
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtml-widget-keeps-adding-line-breaks%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/html-widget-keeps-adding-line-breaks/#post-11782772)
 * It is not the widgets. And it is not WordPress.
    There is a CSS rule in wpfc-
   minified/adyzs.css that says `img {display: block}` If I disable that rule, the
   images look like you prefer.
 *  [CrouchingBruin](https://wordpress.org/support/users/crouchingbruin/)
 * (@crouchingbruin)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/html-widget-keeps-adding-line-breaks/#post-11783003)
 * Yes, Joy is correct. To fix it, you can add the following rule to your custom
   CSS (**Appearance → Customize → Additional CSS**):
 *     ```
       .sidebar #text-29 img,
       .sidebar #text-30 img {
          display: inline-block;
       }
       ```
   
 * By the way, I see two text widgets in the sidebar, one with links that work and
   the other with ones that don’t. The rule above includes selectors for both of
   those widgets.

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

The topic ‘Html widget keeps adding line breaks’ is closed to new replies.

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)
 * [line-break](https://wordpress.org/support/topic-tag/line-break/)
 * [paragraphs](https://wordpress.org/support/topic-tag/paragraphs/)
 * [text widget](https://wordpress.org/support/topic-tag/text-widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [CrouchingBruin](https://wordpress.org/support/users/crouchingbruin/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/html-widget-keeps-adding-line-breaks/#post-11783003)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
