NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page style select boxes

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-10-2006, 04:39 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
Something Vague's Avatar
Join Date: Mar 2006
Posts: 887
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-imageurl(images/entryfield.jpg);
    
border0px solid #184578;
    
width90%;
    
color#65782f;
    
font12px arialsans-serif;
    
font-weightbold;
????: NamePros.com http://www.namepros.com/programming/196035-style-select-boxes.html
    
text-aligncenter;
    
padding2px;

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, 04:42 PM   #2 (permalink)
Senior Member
 
Shorty's Avatar
Join Date: Sep 2005
Location: England
Posts: 1,034
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, 05:02 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
Something Vague's Avatar
Join Date: Mar 2006
Posts: 887
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, 05:08 PM   #4 (permalink)
Senior Member
 
Shorty's Avatar
Join Date: Sep 2005
Location: England
Posts: 1,034
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, 05:20 PM THREAD STARTER               #5 (permalink)
NamePros Regular
 
Something Vague's Avatar
Join Date: Mar 2006
Posts: 887
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, 05:37 PM   #6 (permalink)
Senior Member
 
Shorty's Avatar
Join Date: Sep 2005
Location: England
Posts: 1,034
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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:03 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger