UnleashedCreativity.net
Postings on Mondays, Wednesdays, and Fridays or When-I-Have-Time-days

Login

username:
password:

Last 10 entries


Tags

.net 3d art blog c# coding college computers editorial entertainment firefox food freeware gaming hardware hdtp hiking humor ide japan japan, javascript linux mac mailbox milestone misc. mods momoiwa, mono movie nintendo philosophy php politics rant rebun review science software technology test time ucr wakkanai windows work wormholeftp 日本


Affiliates

  • Narcissism Incorporated
  • Wolfram Studios
  • KaleNet Web Design
  • OffTopic Productions
  • Deus Ex: High Definition Texture Project
  • The Nameless Mod


Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

Go my minions, assist me!

Posted on: Fri Jul 21, 2006 04:47 AM
tags: javascript
I've come across a bit of a problem, and I need some help.

Here's the deal: I'm creating a button system that will allow for easy placement of BBCode tags. Obviously, I'm using
and elements to construct the buttons.

I found out that I can edit button labels through some simple CSS. I'm having a problem, though, with underlining text in one particular button.

Here's the code in question:

Quote:


Now, this code works correctly in IE (what a suprise :O), but FF fails to draw an underline under the button's text. I know its possible, because if you go onto any PHPBB-based forum you'll see two buttons that have underlined titles.

Any idea how I should go about fixing this problem? I tried to reverse-engineer some of PHPBB's code, but alas to no avail. Help me, if you can! :D

[EDIT] Fixed to in second paragraph

By EER @ Sat Jul 22, 2006 01:18 AM

Well, I copy pasted your quote text into a html page and it just works :?

However, in the rest of your post you claim to use input type="text", which is ofcourse quite a difference ;)

Anyway, my code that works:

<html>
<head></head>
<body>
<input type="button" value="Underline" style="text-decoration: underline;" accesskey="u" />
</body>
</html>

By Matt @ Sat Jul 22, 2006 11:59 AM

Ah, it appears as though the code for the button works when you don't declare a doctype. I forgot to mention that whenever I code a website, I ALWAYS use an XHTML Transitional Doctype.

My guess is that the code you tried out parsed as HTML 4.0, which has a lot looser standards than XTHML.

Anyway, I found a fix, I suppose I should update this entry with the fix ;)

By EER @ Sun Jul 23, 2006 04:54 AM

That's very well possible, I only place doctypes on websites that are in production. Since obviously they seem to be parsed differently, I should do that on every page ...

What's the fix btw?

Leave a Comment









EVERYTHING on this site is © Matthew Miller, 2005-2010, so don't friggin' touch