Title: Adding border around ONE widget
Last modified: August 21, 2016

---

# Adding border around ONE widget

 *  [chodelka](https://wordpress.org/support/users/chodelka/)
 * (@chodelka)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/adding-border-around-one-widget/)
 * Hi,
 * I have a widget with ratings on my website ([http://www.pozicka.sr/cetelem-pozicka-kompletne-informacie-o-pozicke/](http://www.pozicka.sr/cetelem-pozicka-kompletne-informacie-o-pozicke/))
   and I would like to put a solid border only around this widget. What do I have
   to change in CSS and source code? I managed to put a border around all widgets,
   thats not what I need.
 * Thanks

Viewing 1 replies (of 1 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/adding-border-around-one-widget/#post-4426560)
 * You should be able to target CSS to a specific widget by using the id for that
   widget in your CSS code – for example this one:
 *     ```
       <li id="text-7" class="widget widget-sidebar">
       ```
   
 * Include that id in the CSS:
 *     ```
       #text-7 {
          border: 1px solid red;
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Adding border around ONE widget’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/adding-border-around-one-widget/#post-4426560)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
