Css underline distance. The font-style property specifies the font style for a text. Css underline distance

 
 The font-style property specifies the font style for a textCss underline distance  Can someone please help me with this, I want to underline to stay on the link that I've clickedDefinition and Usage

It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style, and the newer text-decoration-thickness property. Show demo . It seems like css is not giving me a lot of alternatives like text-decoration-underline-height or something similar. This tag requires a starting as well as ending tag. Monospace fonts - here all the letters have the same fixed width. The space between an element and its outline is transparent. One alternative is to use display:table. h1 {. You can control the gap between text and its underlining by adding a drop shadow and making the original text transparent. IE 9+. underlined { text-decoration: underline dotted red; } Currently only Firefox supports this unprefixed. Exemple interactif Note : text-underline-offset n'est pas une propriété détaillée de text-decoration . 9; // the distance border-bottom: 1px solid; } Drawback of this. The box-sizing property can be used to adjust this behavior: content-box gives you the default CSS box-sizing behavior. We set the line height to 1. – Brian Ray. À l'heure où nous écrivons ces lignes, il s'agit d'une version. It is recommended to use em units so the offset scales with the font size. 1. You may have difficulty when trying to increase the gap between a text and. W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Of course, the standard monochromatic blue underline was. 3 Style One – Growing line underneath. Overview. El subrayado y el suprarrayado son posicionados bajo el texto, mientras la línea a través de éste se posiciona por encima. how to remove underline on link? 0. It stands for underline and it is used to underline the text enclosed within the <u> tag. Start with the free Agency Accelerator today. The :hover selector is used to select elements when you mouse over them. If this rule isn't supported by an older browser, you can use the following solution: a:link { color: red; text-decoration: none; border-bottom: 1px solid blue; } a:hover { border-bottom-color: green; } Actually, the line will be lower than the real underline. The <length> data type consists of a <number> followed by one of the units listed below. Offset is set in em units to automatically scale with the element’s current font-size. link CSS below. Firefox: Safari: text-decoration-skip. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. Simple method to create custom underline for text. decoration-dashed: The line will display as a dashed line. Not only that, but it moves across the nav dynamically to give the illusion that it’s one singular block. A propriedade text-decoration desenha em elementos descendentes. The “rem” unit of measurement we used with the line-height property sets a line height relative to the font-size of the root element. 8; } p. 1 100 underline/overlay animations | The ultimate CSS collection 🥇 2 Another 100 underline/overlay animations | The extended CSS collection 🥇🥈 3 100 more underline/overlay animations | The upgraded CSS collection 🥇🥈🥉 4 Still 100 underline/overlay animations | The advanced CSS collection 🚀 5 Adding 100 underline/overlay animations |. 3rem the distance to the top. text-decoration-line: overline; } h2 {. 2rem; text-decoration-style: double; /* default is solid */ text. And then add borderBottomWidth to View and adjust the distance of underline from Text paddingBottom. When position is set to absolute or fixed, the right property specifies the distance between the element's outer margin of right edge and the inner border of the right edge of its containing block. I want to have underline lines in my table, where people can write-in notes. text-decoration underline styling HTML CSS text style. The items it contains — the links, in this case — will be flex items. I want to add some space between the text and the underline. Usually I use these three CSS properties to style the underline. No, but you could go with something like border-bottom: 1px solid #000 and padding-bottom: 3px. . Quarto has native support for embedding Mermaid and Graphviz diagrams. hover li CSS. The text-decoration-style CSS property sets the style of the lines specified by text-decoration-line. Links css underline. offset-path. Specifies how to handle white-space inside an element. The text-underline-position property can accept the following values: Value. letter-spacing. And (as mentioned above) it allows a different color for the underline (although I don't see a reason why you'll want to do that). Orion stars distance from EarthI'm a beginner/learner with HTML & CSS. I presently do not know of any method. Useful Links. All of them offer things like variables and mixins to. The browser determines the underline position based on font metrics (default value). b { text-decoration: underline; text-underline-offset: 10px;}text-decoration. body { font-family: Verdana; } span { color: #FF0033; font-size: 2rem; text-decoration: #FF0033 underline 0. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself. 5; } Before we can create the custom underline for our links, we need to remove. Inherited: yes. Viewed 5k times. Negative values are not allowed. Narrower underline on hovering. Note: Some properties allow negative <length> values, while others do not. Improve this answer. Learn how to use the text-decoration CSS property to underline text on your page. 2 Answers. Is there a simpler way to achieve this by means. Improve this answer. Set it to the desired color value. UA consideration of descendant content will therefore result in better typography. The following example specifies an outline 15px outside the border edge: This paragraph has an outline 15px outside the border edge. When underline is specified for the text-decoration-style property, you can use text-underline-offset to offset the distance of the line from its original position. 5rem; font-weight: 700; margin-top: 5rem; text-decoration: underline; } The text-decoration-line property is used to add a decoration line to text. This property allows web developers to specify whether the underline should be positioned below the text (the default behavior) or above it. h3 { text-decoration: underline; } Values. When both top and bottom are specified, position. The beauty of web design lies in its flexibility, and underlines are no exception. The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position. We can wrap our text in the <textPath> tag and set it to follow the lines of our curved path by calling the path ID we set earlier. You can also use variant modifiers to target media queries like responsive breakpoints, dark mode, prefers-reduced-motion, and more. CSS text-underline-offset Property. 5em; } Once you apply an underline for an element using text-decoration with the value of underline, you can say how far that line should be from your text using the text-underline-offset property. On non- replaced inline elements, it specifies the height that is used to calculate line box height. Definition and Usage. Tip: Also look at the text-decoration property, which is a short-hand property for text-decoration-line, text-decoration-style, text-decoration-color, and text-decoration-thickness. It’s difficult to create a workaround using a line or shape when creating a. The distance between the text and its underline can be adjusted using the text-underline-offset. By default "Total Users" is underlined but when I click on "Users Information" the underline moves to that clicked link and then comes back to its default position ie "Total Users". Simple method to create custom underline for text. 👩‍💻 Technical question Asked 5 months ago in CSS by Jacinda how to underline on css. . I thought of writing a template that would split the text into lines with XSL and print each line as a different paragraph <p> with border-bottom set. The way to do this is by adding text-decoration: underline; to the hover state of the element you want to add this effect to. 👩‍💻 Technical question Asked 8 months ago in CSS by Jenni how to underline on css. If you don't plan to use the text decoration utilities in your project, you can disable them entirely by setting the textDecoration property to false in the corePlugins section of your config file: // tailwind. Using CSS I made the word "about" which has an 'id' of '#title4' have an underline and I was wondering how I can change the distance of the height from the underline to the word so there is a bigger gap between both? Example of what I'm looking for . The image is made to repeat on the x axis but not on the y axis. W3Schools offers free online tutorials, references and exercises in all the major languages of the web. For a given application of this property, the offset is constant across the whole box that the underline is applied to, even if there are child elements with different. Has ability to increase space between dots, change dash length or distance between strokes. What you need is an addition of min-width property added to your <a> styles. For example, if you need to create a short underline to mark the beginning of a sentence or a title, use the ::after pseudo-element with the border-bottom property:If you ever feel that your line is too close, we actually have a text-underline-offset feature that allows you to control the distance between the underline and the text. Although this tag was deprecated in HTML 4. The second rule says: The container is a flexbox. text-indent. The distance values shall be clickable and lead to the Google Maps Route Planner, destination already filled in, and start point taken from the current location. How can I make a fade in and out underline when I hover onto my links? I can't use border-bottom property, because some of my links are tabs, so if I use border-bottom, the div gets underline and not the text. Need to display multiline text with underlining lines of equal length. active a:after { content: ''; height: 2px; background: black; display:block; margin-top: 2px; } This is great, except I am noticing it ruins the horizontally centered alignment with flexbox because it adds height to the item. If not, behave as auto. css. text { text-decoration-line: underline; text-decoration-thickness: 2px; }Sorted by: 8. An example of this would be: h4 {border-bottom: 10px solid #000;} I found this from another stack exchange question found here: Edit line thickness of CSS 'underline' attibute. To accomplish the fade-in effect, you can take the following steps: Create keyframe and set opacity values at 0% and 100%: This is the first step towards creating the fadeinUp effect. A line height in percent of the current font size. When the opacity is set to 0, the element becomes hidden at 0%, and when it is set to 1, the element becomes visible at 100%. You can also link to another Pen here (use the . Check how your content responds to enlarged. The computed value of the line width is 0 even if a width value is specified. We would like to show you a description here but the site won’t allow us. Our rule uses two CSS properties. Specifies the space between characters in a text. 13. This example shows an ellipse with an x radius of 40%, a y radius of 50% and the position being left. Connect and share knowledge within a single location that is structured and easy to search. You can also underline text with the <u> element, but this should generally not be used. The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position. <html> <head> <title> How to Set the Gap Between Text and Underlining using CSS ? </title> <style> . "border-b px-6" added in codepen example but it's not working. If you move your cursor between these links you’ll notice something kinda funny. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value. ' the first sample with green text, blue text, red text, etc. Let me demonstrate the usefulness of text-decoration-thickness on a simple example. Modifying jQuery sliding underline in navigation. 👩‍💻 Technical question Asked 4 months ago in CSS by GinetteI have this code (CSS) and I want to underline specific text (from middle to out) after about 8 seconds after the page load, I can only figure out the :hover part (I want the underline to appear 8s after the page has loaded in, without having to hover over the element): #sec { display: inline-block; position: relative; padding-bottom: 3px; } #. thick {text-decoration-line:. wavy. 1. Should the following line of CSS work for adding padding to regular underlines? Not links, just when I underline one or more words for emphasis. text-decoration-skip toggles skipping descenders in underlined text. It is used with an underlined text but it’s not part of it. The text-underline-offset CSS property is used to control the positioning of the underline that is applied to text using the text-decoration: underline; property. font-family must be the last value specified. Demo . The offset-distance property accepts the following values: length; percentage; In both cases, the value is specifying the length of distance from the starting point of the path (default is 0px or 0%) to the end point of the path. That should do the magic for you. The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position. I am using TCPDF to display some table data. i am using text-decoration:underline; but text and underline are touching each other. Show demo . This does not change the color of the link line, but instead. I viewed the source and it looks like nothing more than standard CSS 'text-decoration: underline', which leads me to believe the distance is either a product of my browser (ie6) or the type of font used. You can specify the style of text decoration by using the following utility classes: decoration-solid: The line will display as a single line. The underline position is expressed in the font's coordinate system. But Fabian helped alot with the placement and understanding of the code. "border-b px-6" added in codepen example but it's not working. underline { text-decoration-color: red; text-decoration: underline; } Extend the underline using the tailwind. But, these languages have different rules. Under section '2. right. Verdana is the default font used in W3. Next, return to styles. Basic ellipse () example. When making a website, you don’t necessarily need to style your text; HTML actually has some pretty reasonable default styling. Chapter 2CSS. Is there a way to do that using CSS, or JS. – MRRaja. When position is set to relative, the top property specifies the distance the element's top edge is moved below its normal position. In this article, we are going to learn how to change the underline color in CSS, To change the underline color in CSS, use the text-decoration-color property. const styles =. The. Default value: auto. underlined { text-decoration: underline dotted red; } Currently only Firefox supports this unprefixed. Make underline CSS transition change direction. The browser will decide between placing the underline at the text’s baseline or under it. If two values are specified, the first sets the horizontal spacing and the second sets the vertical spacing. e. 2. 44) Which of the following CSS property is used to set the horizontal alignment of a table-cell box or the block element? 45) The CSS property which is used to set the text wider or narrower compare to the default width of the font is -. The text-decoration-line property sets the kind of text decoration to use (like underline, overline, line-through). Learn more about TeamsA short inspect shows that the line is moved back, which causes the problem. Here’s an example of how to use the text-underline-offset property:First thing first - if you need quick, plain, regular underline, there is always HTML element for it. body { font-family: Verdana; } span { color: #FF0033; font-size: 2rem; text-decoration: #FF0033 underline 0. Note: Padding creates extra space within an element, while margin creates extra space around an element. Here's what I want to happen (the __ marks the where the text should be underlined): A line of text that is long enough so that it wraps to another line. You change, add, or remove these by customizing the lineHeight section of your Tailwind theme config. The outline-offset property adds space between an outline and the edge/border of an element. The best approach is to use the text-decoration-thickness css property. Sets this property to. line-height. 2 Implementation. . 5px; } You’ll notice I’m using the em unit in my example code. Break text using the most stringent line break rule. Hot Network Questions Can you bake multiple rigid body simulations in a single file?The text-decoration-color property specifies the color of the text-decoration (underlines, overlines, linethroughs). <length> Specifies the offset of underlines as a <length>, overriding the font file suggestion and the browser default. Here’s one example: a { text-decoration-skip: ink; } Heads up!In my recent article about CSS underline bugs in Chrome, I discussed text-decoration-thickness and text-underline-offset, two relatively new and widely-supported CSS properties that give us more control over the styling of underlines. Show demo . The CSS: . You should never use the <u> tag for styling purposes. ; underline: draws a 1px line across the text at its baseline. CSS styles are applied to nodes in the JavaFX scene graph in a way similar to the way CSS styles are applied to elements in the HTML DOM. Change the a:before bottom to -5px or whatever negative value fits the distance that you want:AFAIK, you can't change the width of the underline, my best idea would be to use wrap the text with a view with borderBottom instead. The text-underline-offset property specifies the offset distance of underline text decorations. Don't select anything after the text, including a paragraph mark that may be there. need to create a transparent . Specifying the length unit is optional if the number is 0. In determining the thickness of text decoration lines, user agents may consider the font sizes, faces, and weights of descendants to provide an appropriately averaged thickness. thanks alot though. Just add the following CSS style: text-decoration: underline; That’s the shorthand version; the longer version would look something like: /* "Solid" is the default value for the style */. Link hover effects that fill a link with an underline or line-through using CSS transitions and the clip-path property. css - On hover text, empty space in underline. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its. /* Avec un mot-clé */ text-underline-position: auto; text-underline-position: under; text-underline-position: left; text-underline-position: right; /* Avec plusieurs mots-clés */ text. The text-decoration-thickness property in CSS sets the stroke thickness of the decoration line that is used on text in an element. 🙃. Flexbox, Grid & Sass)text-underline-offset: Specifies the offset distance of the underline text decoration: text-underline-position: Specifies the position of the underline text decoration: top: Specifies the top position of a positioned element: transform: Applies a 2D or 3D transformation to an element: transform-origin: Allows you to change the position on. h1 { display: inline-block; padding-right: 50px; border-bottom: 1px dotted #888; } Inline or floating methods can be problematic if you're unable to compensate for them in other rules. 2. For example, use md:decoration-4 to apply the decoration-4 utility at only medium screen sizes and above. <style type="text/css"> u { border-bottom: 1px dashed #999; text-decoration: none; } </style> I want a function that will find elements. This property is non-standard and works only in Safari right now, so you need the -webkit- prefix to use it. If you move your cursor between these links you’ll notice something kinda funny. To underline text in HTML and CSS, use the CSS text-decoration property set to underline. The text-decoration-line value needs to be either underline, line-through, or overline to reflect the thickness property. Is it possible with CSS to make the underline of a headline less wide than the headline text? I have the following style for an H1 headline: h1 { font-weight: 300; display: inline-block; padding-bottom: 5px; border-bottom: 1px #d2202f solid; } This produces a thin red underline below my H1 headlines. Values. I want to have a thick underline when hovering my a tags, but I use a custom font with big descenders, so if I use the common trick for this: a:hover { text-decoration: none; border-bottom: 2px solid; padding: 0; margin: 0; } The underline is far below the base line: But I want it to look like this: I tried to do it like this:Is there anyway to don't underline link in html? I can't use style and css. You can use line-height for decrease distance. As decorações underline e overline são posicionadas abaixo e acima do texto (respectivamente), e line-through cortando-o. tho this answer works. A common use case for underlining text in CSS is to underline a text when a user hovers over it. Definition and Usage. length / percentage. A percentage inherits as a relative value, and so therefore scales with changes in the font. The text-decoration shorthand CSS property sets the appearance of decorative lines on text. So, you can have several dotted borders using multiple backgrounds. In our CSS file, we defined one rule. . Displays no line. 1. It is a shorthand for animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, animation-play-state, and animation-timeline. Likewise, if I replace the p with a span it doesn't get the memo that it should extend the border all the way:You will first need to remove the default text-under line from HTML anchors, this is done in the a. Add the highlighted CSS from the following code block to. Follow. For example, use hover:decoration-dashed to only apply the decoration-dashed utility on hover. When position is set to sticky, the top property is used to compute the sticky-constraint rectangle. How to increase the space between the text and underline under a hyperlink in CSS? [duplicate] Ask Question Asked 2 years ago. Korpela Sep 17, 2013 at 19:57Collection of 55+ CSS Link Hover Effects. This CSS. text-underline-position. 0. This. There are 2 ways to override the underline color: Using simple CSS on your global CSS file. h2 {border-bottom:1px dotted #999; padding-bottom:5px;} now, the problem is, when the heading (or paragraph, or whatever element) text takes 2 lines or. 0. As an aside, it's usually a bad idea to underline text, as most people assume underlined text are links. CSS preprocessors help make authoring CSS easier. For instance, I might type " Allen Wyatt" with the leading space. Here is a fiddle. can i increase space between text and underline? You can apply CSS to your Pen from any stylesheet on the web. Building The Gradient Underlines. Usage % of. Example 3: Adding some Space between Text and Underline. Start with the free Agency Accelerator today. thin_hr { margin-top:0; margin-bottom:0; border:0; height:1px; background-color:black; }The browser chooses the appropriate offset for underlines. We now have control of how they look, via text-decoration-style; there are 5 options: dashed. The vertical distance to the baseline of the text depends on the browser and usually can't be changed. Often times people will use border-bottom: 1px solid in favor of text-decoration: underline to give their links some breathing room. The CSS code which I have included in the fiddle are:. <percentage> Specifies the offset of underlines as a <percentage> of 1 em in the element's. h1 { display:table; border-bottom:1px solid black; padding-right:50px; } { text-decoration: underline; text-underline-offset: 2px; } Here, text-underline-offset: 2px; is used to define the distance of the underline from the text, where "2px" is the distance. Readability is reduced with all caps because all words have a uniform rectangular shape, meaning readers can't identify words by their shape. CSS underline can be of any width or height — even shorter than the word or the link. and the top of the next: p { line-height: 1. 现在宣布:春天来了:text-underline-offsetem { text-decoration:underline; } The <em/> stands for emphasized text. underline { position: relative; padding-bottom: 1px; border-bottom: 1px solid #ffc04d; }CSS text-underline-position Property. The text-underline-offset property in CSS sets the distance of text underlines from their initial position. Firefox: Safari: text-decoration-skip. The CSS includes the styling for the container and the links it contains. A custom highlight is a collection of Range objects and is registered on a webpage using the HighlightRegistry. 0. h1 { font-size:3. Syntax:My simple solution is to style hr with css to have zero top & bottom margins, zero border, 1 pixel height and contrasting background color. Underline links in navbar in CSS/HTML. This value is added to the natural spacing between characters while rendering the text. You can apply CSS to your Pen from any stylesheet on the web. Ie8 ==> z-index not respected, must use a doctype, must declare a :hover state if you use :ho. One alternative is to use display:table. CSS text-decoration underline selectors. c { text-decoration: underline wavy blue; } div. Learn how to use the order property of CSS Flexbox to change the position of elements within a container. With CSS, you can tailor the appearance of underlines to fit your design needs, making them more than just a simple line beneath the text. . check the demo. Definition and Usage. Offset 1 link. I have text that needs to be underlined only under the middle part of the word. Syntax. config. To make the background of a webpage only half of the page, you can use CSS (Cascading Style Sheets) and set the background property of the body element to the desired color or image, and then use the height property to set the height of the background. { text-decoration: underline; text-underline-offset: 2px; } Here, text-underline-offset: 2px; is used to define the distance of the underline from the text, where "2px" is the distance. We really want to see that text. css URL Extension ). For multiline, you can wrap you multiline texts in a span inside the element. 1. QPlainTextEdit is a thin class, implemented by using most of the technology that is. e. It's commonly used to set the distance between lines of text. Underline a menu's element on hover with a smooth animation. La propriété text-underline-position définit la position du soulignement utilisé lorsque la propriété text-decoration prend la valeur underline. 有时候UI设计的时候文字下方会有一个下划线,所以我们经常用text-decoration:underline来设置一个下划线,但是呢,发现这个下划线和文字特么的重合了,来没法设置,只能用别的方法代替了,啪啪啪的写一大堆css. initial. The underline effect in the nav menu actually changes styles between links. I want to underline the final line of multi-line text, or at least create the allusion of it. There seems to about a 10px gap between the text and the bottom-border at the moment and I don't want to have any. no-underline with source code and live preview. In case you want the underline to start from middle of the text to the end of the line, you can use ul and li to position two. Step 2 - Hidding The Text Underline By Default. Specifies the indentation of the first line in a text-block. CSS - Underline text but ignore the spaces. For a complete list of all available state modifiers, check out the. The new editor includes templates for Tailwind CSS, Bootstrap, Bulma, and Material-UI. You can also link to another Pen here (use the . line-height must immediately follow font-size, preceded by "/", like this: " 16px/3 ". Sir, I may add, that you forgot to add units to your numbers. It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style, and the newer text-decoration-thickness property. This property can have from one to four values. Text-underline-offset: This is not a sub-property of the text-decoration property. CSS . You can also use the box-shadow property to simulate an underline. For example: . You don’t need that part of the code if you only have one level of sub-menu items. Set the offset distance of underline text decorations: div. The browser chooses the appropriate offset for underlines. tho this answer works. Then go to the advanced tab > custom CSS of Elementor and add the code below. This is chapter 2 of the book Cascading Style Sheets, designing for the Web, by Håkon Wium Lie and Bert Bos (2nd edition, 1999, Addison Wesley, ISBN 0-201-59625-3) As we explained in the previous chapter, HTML elements enable Web page designers to mark up a document as to its structure. 3. CSS underlining. Snap position is the position on the child element where it snaps into place in the container when you stop scrolling. text { text-decoration: underline; } The “text-decoration” property offers some customization options to fine-tune your underlines: text-decoration-line. Aug 9, 2017 at 6:34. Syntax. div { width: 10em; /* or whatever. A medium outline. See the Pen Remove Underline From Link With CSS 1 by Christina Perricone on CodePen. import css underlined_text = css. 9; // the distance border-bottom: 1px solid; } Drawback of this method -- because we use block display it works only for single line of the text. Read about animatable Try it. Likewise, if I replace the p with a span it doesn't get the memo that it should extend the border all the way: You will first need to remove the default text-under line from HTML anchors, this is done in the a. white-space. In the text with a vertical writing-mode set, we can then use values of left or right to make the underline appear on the left or right of the text as required. Place it at the bottom left position of the element with background-position css property. The underline effect in the nav menu actually changes styles between links. Prev Next . Previous Next . This happens on the left side as well, but by moving the line out of the container, it is no longer visible. footer p { width: 50%; border-bottom: 1px solid #f51c40; }Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java and XML. Start with the free Agency Accelerator today. If a font file contains information about a preferred thickness, use that value. css in your text editor and go to the . Segoe UI has a more narrow letter spacing. The <u> element is meant for specific use cases like marking up misspelled words, denoting proper names in Chinese text, or indicating family names. I have this form and I want the placeholder and the input to be underlined. ; When position is set to relative, the right. Distance of the Crab nebula and the. With Firefox is an easy thing, just applying: input { text-decoration: underline; } even though I am not sure if there is a way to style the line. Creating HyperLinks without being underlined. For example, here we embed a flowchart created using Mermaid: ``` {mermaid} flowchart LR A [Hard edge] --> B (Round. underline { background-image: linear-gradient (#5fca66 0 0); background-position: bottom center; /*Adjust the background-position to move the line*/ background-size: 80% 2px; /*Adjust the background size to control length and height*/ background-repeat: no-repeat; padding. Thick underline when hover AND when active. exports = { theme: { extend: { lineHeight: { 'extra-loose': '2. You can also control the offset (the distance between text and the line) of a text underline by using underline-offset- {option} classes. , the value of the position property):. Segoe UI is the default font for headings. DemoThe text-underline-position CSS property is used to control the vertical positioning of underlines applied to text within an HTML element.