Skip to main content
0 online

HTML double-underlines?

deanh77 by deanh77Founder · Oct 16, 2003 · 101 views · ·

Well, our html guy got canned, so i have to figure out a lot of the stuff I'd just ask him to do.

I need to double underline some text in HTML, and I'm having trouble, because I don't think its possible. there's no tag that I know of. Does anyone (ahemm.. Ian) know of a way to do this.

To contribute to the discussion, please log in.

16 Comments

deanh77 deanh77Founder ·

http://www.w3schools.com/css/

Has some cool stuff on CSS, including an interactive tool that lets you try out code and see the results

iwz iwz ·

dude, why do you need double-underlines anyway?

deanh77 deanh77Founder ·

It's part of one of our specs, to notify the user of something. like to get their attention or something. like I said before, usually I wouldn't have to worry about this stuff, but our HTML producer got fired. ughg.

deanh77 deanh77Founder ·

well, anyway, I guess its sort-of interesting. learned a little about CSS.

deanh77 deanh77Founder ·

ok, so my way of doing it (underline + a border) doesn't work when the font-size is small (the two lines become one fat one) so I went with the double-border:
testing

for smaller ones:
testing

deanh77 deanh77Founder ·

this doesn't work for some reason her on ezabel, but if size of border is 5px it makes two thick lines, if its 3px it makes two thin lines.

deanh77 deanh77Founder ·

wow. that was driving me crazy. I don't know anything about CSS

deanh77 deanh77Founder ·

I just figured it out sweet.

<span style="text-decoration: underline; border-bottom: 1px solid
black">underlined
text</span>

underlined
text

iwz iwz ·

that looks better than what i came up with

deanh77 deanh77Founder ·

I stole it from google groups.

iwz iwz ·

sweet!

iwz iwz ·

You're gonna have to use some stylesheets to do that. experimenting

iwz iwz ·

This is the best I can come up with. Works in IE (looks ugly tho) and Mozilla.
<span style="border-bottom-style: double;">lakjshdlkhasd</span>

lakjshdlkhasd

skaorsk8 skaorsk8OG 2002 ·

why is dean's code so much neater than yours?

deanh77 deanh77Founder ·

that looks like a single underline to me. (I'm using IE 5.5)

iwz iwz ·

yeah, it must be eZabel's stylesheet conflicting. It works locally.

Welcome Back to eZabel

It's been a while. Here's what's new.

eZabel Lore

A complete history of our community — stats, Hall of Fame, legendary threads, and more.

View the Lore →

Everything Preserved

All 225,969 pieces of content from 2000–2014 are here — forums, messages, journals, photos, polls, and events.

💎

Gems

Spot something you love — a legendary comment, a classic thread, a great photo? Log in and click the diamond icon to mark it as a Gem. Add a note about why it's special. The best stuff surfaces on the Gems page.