# Widgets basics

> How simple and combined widgets differ, and how to reach a subwidget through breadcrumbs to edit its settings in the sidebar.

Source: https://n1ed.com/how-to/widgets-basics  
Section: Widgets and media > Widgets basics  
Updated: 2026-09-20  
Every page of n1ed.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://n1ed.com/llms-full.txt

Widgets are components your content is built from, just like a house is built from bricks.

Every widget can function independently (like Image, YouTube video, etc.) or contain subwidgets that cannot be used without the main widget (combined widgets such as Tabs, Gallery, Table, etc. have such structure).

The widgets can be inserted into a document or removed from it. You can also edit settings of widgets or their subwidgets.

Non-combined widgets are very simple: you insert a widget to the document, and when you need to change it, you select it with the mouse and edit on the sidebar (if your N1ED is working in the no-sidebar mode, click the **Edit widget** button on the toolbar). Read more about [editor settings](https://n1ed.com/docs/configuration/ui-and-widgets).

Combined widgets work the same way, but when you select an element in the document you can use breadcrumbs to select which part of it, a subwidget, you want to edit, and move up and down through the hierarchy of subwidgets. Some widgets can only be selected if you select a subwidget in the document area with the mouse and then select the wrapping widget on breadcrumbs.

Let's take [Image Gallery](https://n1ed.com/how-to/image-widgets#image-gallery) as an example. This is a combined component, it consists of a wrapping element **Image Gallery** and **Gallery Image Preview**.

![Edit image gallery screenshot](https://n1ed.com/img/screenshots/docs/widgets/image-gallery/edit-gallery.jpg)

*Edit Image Gallery*

On the above screenshot you can see the editor with the inserted Image Gallery widget. The active editing aread of the **Image Gallery** is surrounded by the peculiar blue border. To the left of the editor, there is a sidebar with settings of the current element.

You can assign a certain background to the gallery, as well as width and height of preview thumbnails in the gallery.

Every element of the widget can be customized by changing its styles. You probably won't need this too often, but such fine tunning is available. [HTML styles](https://n1ed.com/how-to/custom-styling) can be modified on the sidebar using the **Tag options** section: Class name, Styles (CSS notation), Attributes.

For each widget and subwidget there are its own **Actions**. Actions for **Image Gallery** are:

- Insert text before/after — addresses the problem of positioning the cursor above or below the media object
- Save as custom template — allows [creating a template](https://n1ed.com/how-to/custom-widgets) for easy reusing
- Delete Image Gallery — deletes the gallery completely

Actions for **Gallery Image Preview:**

- Move left/right — allows changing the order of images in the gallery by moving the selected image
- Delete Gallery Image Preview — removes the selected image only
