SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 20th, 2003, 12:41 PM
RockyMtnSteve RockyMtnSteve is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 2 RockyMtnSteve User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Underline Submit Buttons with CSS in Mozilla

I'm trying to use CSS to make Submit buttons that look like text links (so they match other text links on the page). Background color is the same as the page, no borders, etc. It works great in IE, and everything works in Mozilla except for underlining. Am I doing something wrong, or does Mozilla not support underlining for form buttons? I've searched the Web and haven't found any info on this.

CSS definition:
input.add {
font-size: 9pt;
text-decoration: underline;
color: #000000;
background-color: #FFFFFF;
border-width: 0px;
border-style: none;
cursor: pointer;
}

HTML:
<input class="add" type=submit value="Submit">

I really appreciate any suggestions or insights on this!

Reply With Quote
  #2  
Old November 20th, 2003, 12:50 PM
Dusk's Avatar
Dusk Dusk is offline
Twilight Thinking
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2003
Location: Oxford UK
Posts: 656 Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level)Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level)Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level)Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level)Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level)Dusk User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 23 h 2 m 27 sec
Reputation Power: 32
You could just use an ordinary blank link, and use javascript to submit the form:

ie:
<a href="#" onclick="document.getElemntById('form').submit();">submit</a>

Any use?
__________________
Cheers,
Dusk

My portfolio

Reply With Quote
  #3  
Old November 20th, 2003, 12:54 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,620 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 1 h 17 m 41 sec
Reputation Power: 532
you could set a color to border-bottom instead,

input.add {
font-size: 9pt;
color: #000000;
background-color: #FFFFFF;
border-width: 0px;
border-style: none;
border-bottom:1px solid #15f;
cursor: pointer;
}

Reply With Quote
  #4  
Old November 20th, 2003, 11:03 PM
RockyMtnSteve RockyMtnSteve is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 2 RockyMtnSteve User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you for both tips. I tried the JavaScript idea, but I can't assume that the people who use the site with have JavaScript enabled. I ended up with setting the border-bottom, and that looked good in Mozilla, but not quite right in IE. So I had to use some CSS hacks to get the right stuff to each browser. Thank you!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Underline Submit Buttons with CSS in Mozilla


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway