# How can i make this?

**URL:** <https://forum.obsidian.md/t/how-can-i-make-this/67310>\
**Category:** Help\
**Created:** [September 14, 2023, 11:19am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310 "2023-09-14T11:19:11Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ObbiGuy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/8dc957/32.png) [@ObbiGuy](https://forum.obsidian.md/u/ObbiGuy)\
**Post date:** [September 14, 2023, 11:19am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/1 "2023-09-14T11:19:11Z")

</div>

Hello! I started using obsidian and i know i can use [!tip] and similar but i wanna make something more like this than an entire block. Does anyone know how can i make this?  
(screenshot from the video of Christian Lempa on obsidian)

 ![Cattura](https://forum.obsidian.md/uploads/default/original/3X/6/a/6aa0ff982bf3e9e68564288ce93a4f04854516f2.png)

---

<div class="post-metadata">

**Author:** ![ariehen](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ariehen/32/46932_2.png) [@ariehen](https://forum.obsidian.md/u/ariehen)\
**Post date:** [September 14, 2023, 11:31am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/2 "2023-09-14T11:31:28Z")

</div>

It looks like a slightly customized [callout](https://help.obsidian.md/Editing+and+formatting/Callouts) with `Settings > Editor > Readable line length -> OFF` or a custom width set for the editor.

---

<div class="post-metadata">

**Author:** ![ObbiGuy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/8dc957/32.png) [@ObbiGuy](https://forum.obsidian.md/u/ObbiGuy)\
**Post date:** [September 14, 2023, 11:50am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/3 "2023-09-14T11:50:15Z")

</div>

I tried the readable line lenght but doesn’t seem to be that. How can i change the custom width set?

---

<div class="post-metadata">

**Author:** ![ariehen](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ariehen/32/46932_2.png) [@ariehen](https://forum.obsidian.md/u/ariehen)\
**Post date:** [September 14, 2023, 5:52pm UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/4 "2023-09-14T17:52:27Z")

</div>

There are a few different options for adjusting the editor width depending on what theme you are using or with a CSS snippet.

> [@Current way to update page width](https://forum.obsidian.md/t/current-way-to-update-page-width/57357/2):
>
> What theme do you use? You can do this with CSS, but the easiest way to do it would be using theme settings (which vary wildly theme by theme). For example, the Minimal theme has [custom block widths](https://minimal.guide/Features/Block+width) you can set on a note-by-note basis or for all notes using the Minimal Theme Settings plugin: The AnuPpuccin theme (using the Style Settings plugin) has a section to set the “Maximum Preview Width” for a note: Try out some d…

> [@How can I make editor width wider?](https://forum.obsidian.md/t/how-can-i-make-editor-width-wider/58157/2):
>
> Your theme may have options built-in for changing the editor line width. See → If not, you could use one of these CSS snippets → /\*- editor line width - default 700px -\*/ body { --file-line-width: 900px; } /\*- editor line width - fills entire editor -\*/ body { --file-line-width: 100%; }

---

<div class="post-metadata">

**Author:** ![ObbiGuy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/8dc957/32.png) [@ObbiGuy](https://forum.obsidian.md/u/ObbiGuy)\
**Post date:** [September 15, 2023, 9:19am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/5 "2023-09-15T09:19:37Z")

</div>

I see, i’m trying to make use of the css snippet as i saw online, but doesn’t seem like it works? Like for changing the !info one i should use  
`.callout[data-callout="info"] {}`  
But it doesn’t seem to affect it?

---

<div class="post-metadata">

**Author:** ![ariehen](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ariehen/32/46932_2.png) [@ariehen](https://forum.obsidian.md/u/ariehen)\
**Post date:** [September 15, 2023, 9:25am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/6 "2023-09-15T09:25:59Z")

</div>

There’s a default (built-in) `> [!info] Title` callout already. So if you want to change that, you need to override it.

Have a look at [Callouts - Obsidian Help](https://help.obsidian.md/Editing+and+formatting/Callouts) and

> [@Obsidian CSS Inspector Workflow](https://forum.obsidian.md/t/obsidian-css-quick-guide/58178):
>
> Obsidian CSS Inspector Workflow This was originally called “Obsidian CSS Quick Guide” but it ended up being more focused on the inspector. As a retrospective change to help people use this as a resource, it has been renamed. – FireIsGood Hi friends! CSS in Obsidian can be confusing to get into, so this is a guide to get you started with information on the tools, methods, and some background knowledge! Let’s get started by looking at how you can look behind the curtain of Obsidian’s visuals. …

---

<div class="post-metadata">

**Author:** ![ObbiGuy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/8dc957/32.png) [@ObbiGuy](https://forum.obsidian.md/u/ObbiGuy)\
**Post date:** [September 15, 2023, 9:36am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/7 "2023-09-15T09:36:15Z")

</div>

Yeah i wanted to override existing ones, and if later on i want to make new ones i’ll just edit this.  
I managed to understand a bit more of it but i found out some css variables don’t really work?  
like if i want to change the background of the whole thing is easy, just --callout-color and does the trick, but i want the title line to still have a color, but i can’t seem to find anything even in the css page on the obsidian wiki?  
also tried something like .callout-title[data-callout=“info”] but doesn’t seem to work.

---

<div class="post-metadata">

**Author:** ![Feralflora](https://forum.obsidian.md/user_avatar/forum.obsidian.md/feralflora/32/56208_2.png) [@Feralflora](https://forum.obsidian.md/u/Feralflora)\
**Post date:** [September 15, 2023, 9:41am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/8 "2023-09-15T09:41:53Z")

</div>

Try using the element picker in Obsidian’s console to see which class to target. `ctrl / cmd + shift + i`

---

<div class="post-metadata">

**Author:** ![ObbiGuy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/8dc957/32.png) [@ObbiGuy](https://forum.obsidian.md/u/ObbiGuy)\
**Post date:** [September 15, 2023, 9:49am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/9 "2023-09-15T09:49:43Z")

</div>

Yeah also tried that but the console doesn’t open, even in the sandbox

---

<div class="post-metadata">

**Author:** ![ush](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/8e7dd6/32.png) [@ush](https://forum.obsidian.md/u/ush)\
**Post date:** [September 15, 2023, 9:57am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/10 "2023-09-15T09:57:43Z")

</div>

I don’t know much about Windows, but in macOS dev console is opened by `Cmd`+`Opt`+`I` (not `shift`).  
Alternatively, you can just go `View > Toggle Developer Tools`

And here’s the complete (maybe) list of CSS classes related to callouts:

- `.callout`
  - `.callout > .callout-title`
    - `.callout > .callout-title > .callout-icon`: Icon
    - `.callout > .callout-title > .callout-title-inner`: title text, e.g. “Tips” or “Info”

  - `.callout > .callout-content`

You can use `.callout` to style all the callouts and `.callout[data-callout="tip"]` if you want to target only `> [!tip]`

Also use the variables `--callout-color` & `--callout-icon`

---

<div class="post-metadata">

**Author:** ![ObbiGuy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/8dc957/32.png) [@ObbiGuy](https://forum.obsidian.md/u/ObbiGuy)\
**Post date:** [September 15, 2023, 10:08am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/11 "2023-09-15T10:08:57Z")

</div>

Uhmm i don’t seem to have view - toggle developer tools anywhere? and also for the main problem, i went with:

```auto
.callout[data-callout="info"] {    
    border-left-width: 5px ;
    border-left-style: solid;
    border-left-color: #153c67;
    --callout-color: transparent;
}

.callout[data-callout="info"] .callout-title {
    background-color: #153c67;
}

```

But everything works as expected except for the .callout-title stuff, it makes like a marker effect (like when you use the marker in microsoft word and such) instead of applying the effect on all the top part until the body.

---

<div class="post-metadata">

**Author:** ![ush](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/8e7dd6/32.png) [@ush](https://forum.obsidian.md/u/ush)\
**Post date:** [September 15, 2023, 10:12am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/12 "2023-09-15T10:12:18Z")

</div>

> i don’t seem to have view - toggle developer tools anywhere

 ![image](https://forum.obsidian.md/uploads/default/original/3X/c/0/c0edcd3261dfc0aacca566d7f56f8439639a61e7.jpeg)

It’s here

---

<div class="post-metadata">

**Author:** ![ush](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/8e7dd6/32.png) [@ush](https://forum.obsidian.md/u/ush)\
**Post date:** [September 15, 2023, 10:16am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/13 "2023-09-15T10:16:07Z")

</div>

> [@ObbiGuy](#):
>
> ```auto
> .callout[data-callout="info"] {    
> border-left-width: 5px ;
> border-left-style: solid;
> border-left-color: #153c67;
> --callout-color: transparent;
> }
> 
> .callout[data-callout="info"] .callout-title {
> background-color: #153c67;
> }
> 
> ```

I think `--callout-color` must be RGB value like `0, 0, 0` (correct me if I’m wrong)

---

<div class="post-metadata">

**Author:** ![ush](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/8e7dd6/32.png) [@ush](https://forum.obsidian.md/u/ush)\
**Post date:** [September 15, 2023, 10:21am UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/14 "2023-09-15T10:21:08Z")

</div>

It’s far from the original, but maybe you can use this as a starting point

```auto
.callout[data-callout="info"] {
  padding: 0px;
  border-left: skyblue 5px solid;
  border-radius: 0px;
  font-family: Andale Mono; 
  --callout-color: 255, 255, 255;
  
  .callout-title {
    padding: 5px;
    background-color: #153c67;    
  }

  .callout-content {
    padding-left: 10px;
    background-color: black;
  }
}

```

 ![image](https://forum.obsidian.md/uploads/default/original/3X/0/d/0da748b4b772d6bb0edc94cc2e76b5b11e841de9.png)

---

<div class="post-metadata">

**Author:** ![ObbiGuy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/8dc957/32.png) [@ObbiGuy](https://forum.obsidian.md/u/ObbiGuy)\
**Post date:** [September 15, 2023, 7:04pm UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/15 "2023-09-15T19:04:09Z")

</div>

Don’t even have that in windows, my program just reaches the new tab upper part

---

<div class="post-metadata">

**Author:** ![ObbiGuy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/8dc957/32.png) [@ObbiGuy](https://forum.obsidian.md/u/ObbiGuy)\
**Post date:** [September 15, 2023, 7:05pm UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/16 "2023-09-15T19:05:04Z")

</div>

True, since as of now saying transparent actually makes it transparent, but with css values like#fffff and actual words work anyway

---

<div class="post-metadata">

**Author:** ![ObbiGuy](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/8dc957/32.png) [@ObbiGuy](https://forum.obsidian.md/u/ObbiGuy)\
**Post date:** [September 15, 2023, 7:21pm UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/17 "2023-09-15T19:21:55Z")

</div>

There it is, looking at this code i found out what was wrong with my original css, basically for some reason the area that makes the callout has a padding by default, and putting it to 0px makes so that all the other changes i had actually did what i intended them to.  
In the end, for everyone that would like to make something similar with my little extra details:

```auto
.callout[data-callout="info"] {    
    border-left-width: 5px ;
    border-left-style: solid;
    border-left-color: #0b2541;
    --callout-color: 255, 255, 255;
    padding:0px;
}

.callout[data-callout="info"] .callout-title {
    padding: 5px;
    background-color: #153c67;
}

.callout[data-callout="info"] .callout-content {
    padding-left: 10px;
    background-color: #17171a;
  }

```

Thanks for everyone that helped me in the replies!

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [September 22, 2023, 7:22pm UTC](https://forum.obsidian.md/t/how-can-i-make-this/67310/18 "2023-09-22T19:22:00Z")

</div>

Closed on September 22, 2023, 7:22pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
