[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-10-2006, 03:39 PM   #1 (permalink)
NamePros Regular
 
Something Vague's Avatar
 
Join Date: Mar 2006
Posts: 878
0.00 NP$ (Donate)

Something Vague is a jewel in the roughSomething Vague is a jewel in the roughSomething Vague is a jewel in the rough


style select boxes

I have a css sheet;

PHP Code:
.textbox {
    
background-image: url(images/entryfield.jpg);
    
border: 0px solid #184578;
    
width: 90%;
    
color: #65782f;
    
font: 12px arial, sans-serif;
    
font-weight: bold;
    
text-align: center;
    
padding: 2px;
}
Using this style works in text fields perfectly! However, when I use it with select fields, only the background-image: does not appear to be working.

To see what I mean, mxtext.com!

thanks
Something Vague is offline  
Old 05-10-2006, 03:42 PM   #2 (permalink)
Senior Member
 
Shorty's Avatar
 
Join Date: Sep 2005
Location: England
Posts: 1,035
102.05 NP$ (Donate)

Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice


Sorry to disappoint you ChrisW, but i'm pretty sure background images on select boxes are impossible.
Shorty is offline  
Old 05-10-2006, 04:02 PM   #3 (permalink)
NamePros Regular
 
Something Vague's Avatar
 
Join Date: Mar 2006
Posts: 878
0.00 NP$ (Donate)

Something Vague is a jewel in the roughSomething Vague is a jewel in the roughSomething Vague is a jewel in the rough


Oh no! This is a disapointment actually!
Something Vague is offline  
Old 05-10-2006, 04:08 PM   #4 (permalink)
Senior Member
 
Shorty's Avatar
 
Join Date: Sep 2005
Location: England
Posts: 1,035
102.05 NP$ (Donate)

Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice


Never fear, for there is always a way around things. The alternative is to code a nifty CSS menu drop down type thing that mimics a select box. Or JavaScript equivalent, but as far as I remember they normally work in IE only.

Saying that, I looked at mxtext.com (again) and I think you could get away with just using a lightgreen background color, it would still fit in well enough.
Shorty is offline  
Old 05-10-2006, 04:20 PM   #5 (permalink)
NamePros Regular
 
Something Vague's Avatar
 
Join Date: Mar 2006
Posts: 878
0.00 NP$ (Donate)

Something Vague is a jewel in the roughSomething Vague is a jewel in the roughSomething Vague is a jewel in the rough


Cheers, Shorty!

I will try that! Will post results, and I think you're right, that should suffice!

Placing

.selectbox {
background-color:#009900
border: 0px solid #184578;
width: 90%;
color: #65782f;
font: 12px arial, sans-serif;
font-weight: bold;
text-align: center;
padding: 2px;

as my new css, I do not see the background-color either
Something Vague is offline  
Old 05-10-2006, 04:37 PM   #6 (permalink)
Senior Member
 
Shorty's Avatar
 
Join Date: Sep 2005
Location: England
Posts: 1,035
102.05 NP$ (Donate)

Shorty is just really niceShorty is just really niceShorty is just really niceShorty is just really nice


That would probably be because you omitted a ; after the background-color.

But good luck with the CSS menu thing, I find them a little tricky myself.
Shorty is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 03:26 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85