![Word 2011 for mac underline thickness](https://kumkoniak.com/31.jpg)
You can also use borders if you want finer control over colour, positioning, etc but these require you to add a span element unless you have a fixed width.įor example, I'm currently working on a site which requires h3 elements to have 2px letter spacing, centred text and an underline with added space between the text and the underline. * this is the magic part - pull the mask off the left and hide the underline beneath */ * hide the dynamic text you've just added off the screen somewhere */ * give the browser some text to render (if you're familiar with clearing floats like this, you should understand why this is important) */ I've used a red box here so you can see it on your page before you change the colour ) */ * set the background colour to the same as whatever the background colour is behind your element. For my own purpose 200% was enough, but you can play and see what suits you */ * we need to make sure our 'mask' is tall enough to hide the underline. * the same width as our letter-spacing property on the h1 element */ Press Ctrl+U on Windows or Control+U on Mac. Select the text and then apply the underline one of these ways: Click the Underline button in the Font section of the Home tab. You may have a phrase, sentence, or paragraph you want to underline. * absolute positioning keeps it within h1's relative positioned box, takes it out of the document flow and forces a block-style display */ The most uncomplicated way to underline in Word is words with spaces. * centring text throws up another issue, which we'll address in a moment */ Comments: In word 2011 I added the image via insert > photo.
![word 2011 for mac underline thickness word 2011 for mac underline thickness](https://support.content.office.net/en-us/media/546e603d-0faa-4448-b2e6-be1dbf8214a7.png)
It doesnt show when I convert the word document to html. * we need relative positioning here so our pseudo element stays within h1's box */ I added a photo to word 2011 mac edition. * A nice big spacing so you can see the effect */
![word 2011 for mac underline thickness word 2011 for mac underline thickness](https://i.stack.imgur.com/Iw8El.jpg)
This way there's no need for extra elements throughout your text. Thanks.It's not perfect, but the best solution I have come up with so far is to mask it with a :after pseudo element.
![word 2011 for mac underline thickness word 2011 for mac underline thickness](https://i1.wp.com/lowendmac.com/wp-content/uploads/about.png)
Hi, anyone has a solution for this? :( Please help me. How can make the underline the same length as the word (similar to text-decoration: underline) and also a small gap.īelow is my code and an image of the outcome. But I noticed that the underline is much longer than the word & there's huge gap between the word and the underline. I'm trying to create a thick underline when the mouse hover over the word (For Navigation Bar).
![Word 2011 for mac underline thickness](https://kumkoniak.com/31.jpg)